Afl needed for PANIC SELLING METASTOCK CODE

rvlv

Active Member
Hi friends

Here is a simple code of metastock I am intersted to convert into Afl.
It is not clear what is buyp and sellp in metastock code.
I want to plot it on chart.
where I found it?
I found it under post of ford-Amibrokerfans titled which combination of indicators

HTML:
``````Panic Selling

rvlv

mastermind007

Well-Known Member
Hi friends

Here is a simple code of metastock I am intersted to convert into Afl.
It is not clear what is buyp and sellp in metastock code.
I want to plot it on chart.
where I found it?
I found it under post of ford-Amibrokerfans titled which combination of indicators

HTML:
``````Panic Selling

rvlv
Code:
``````n = 15;
v1 = (HHV(High,n) - LLV(High,n))/2 + LLV(High,n);
v2 = (HHV(Low, n) - LLV(Low ,n))/2 + LLV(Low, n);
v3 = (v1/v2)/RSI(2);
Plot(sqrt(v3) > ref(v3,-1), "Panic", colorBlack);``````

Happy_Singh

Happy
Code:
``````n = 15;
v1 = (HHV(High,n) - LLV(High,n))/2 + LLV(High,n);
v2 = (HHV(Low, n) - LLV(Low ,n))/2 + LLV(Low, n);
v3 = (v1/v2)/RSI(2);
Plot(sqrt(v3) > ref(v3,-1), "Panic", colorBlack);``````

Try these on the price chart . . .

Code:
``Plot((sqrt(v3) < Ref(v3,-1)), "Panic", colorRed,styleOwnScale|styleNoLabel,-0.2,15,0,0,2);``
or

Code:
``Plot((sqrt(v3) < Ref(v3,-1)), "Panic", colorRed,styleOwnScale|styleNoLabel|styleStaircase,-0.2,15,0,0,2);``
or

Code:
``Plot((sqrt(v3) < Ref(v3,-1)), "Panic", colorRed,styleOwnScale|styleNoLabel|styleHistogram,-0.2,15,0,0,8);``
Happy

Last edited:

extremist

Well-Known Member
may be this is better than above.

used bollinger bands to determine Sell p and buy p

plz let me know ur thoughts.

v1 = MA(C,15) + (1.3185*StDev(C,15));
v2 = MA(C,15) - (1.3185*StDev(C,15));
v3 = (v1/v2)/RSI(4);
Plot(sqrt(v3) > Ref(v3,-1), "Panic", colorBlack);

Last edited:

rvlv

Active Member
hi friend

Thank you for the idea.

When the bands go too close,wait for breakout or reversal

The other thing
I am not feeling comfortable with the reversal pointer red lines-short and at bottom.
may be a thickline or an arrow can do better.
HTML:
``````Plot(V1,"v1 ub ",colorRed,styleThick);
Plot(V2,"v2-lb",colorBlue,styleThick);``````
regards