Afl needed for PANIC SELLING METASTOCK CODE

rvlv

Active Member
#1
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
http://www.traderji.com/amibroker/86819-combination-indicators-helps-detect-impnding-upmove-downmove-reliably.html

http://www.traderji.com/amibroker/86819-combination-indicators-helps-detect-impnding-upmove-downmove-reliably-6.html

HTML:
Panic Selling

sqrt(((buyp()/sellp())/rsi(2))) > ref(((buyp()/sellp())/rsi(2)),-1)
thanks in advance
rvlv
 

mastermind007

Well-Known Member
#2
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
http://www.traderji.com/amibroker/86819-combination-indicators-helps-detect-impnding-upmove-downmove-reliably.html

http://www.traderji.com/amibroker/86819-combination-indicators-helps-detect-impnding-upmove-downmove-reliably-6.html

HTML:
Panic Selling

sqrt(((buyp()/sellp())/rsi(2))) > ref(((buyp()/sellp())/rsi(2)),-1)
thanks in advance
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);
 
#3
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
#4
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
#5
hi friend

Thank you for the idea.

just add the bands.
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
 

Similar threads