panic selling (original )

amibrokerfans

Well-Known Member
#1
its the time to share it

Code:
_SECTION_BEGIN("BuyP_SellP_ORGINAL!");

SetChartBkColor(ParamColor("Outer panel",colorLightGrey));

N=10;
K=(H+L+C+C)/4;
TR=Wilders(HHV(H,2)-LLV(L,2),N);
VR=V/Ref(Wilders(V,N),-1);
WR=(K-Ref(K,-1))/Min(K,Ref(K,-1));
CN=abs(WR)*K*3/TR;
sp=IIf(WR<=0,VR,VR/exp(CN)); 
bp=IIf(WR>=0,VR,VR/exp(CN)); 
zz=sqrt(((bp/sp)/RSI(2))) > Ref(((bp/sp)/RSI(2)),-1);
Plot(zz, "", colorBlack);
_SECTION_END();
 

extremist

Well-Known Member
#2
wht about this one.......



len = Param( "Periods", 10, 1, 2000, 1 );

A=(H+L+2*C);
B=EMA((HHV(H,2)-LLV(L,2)),len );
BuyP= V/EMA(V,len)*((A>=Ref(A,-1))+(A<Ref(A,-1))/exp((0.375*(A+Ref(A,-1))/B)*(Ref(A,-1)-A)/A));
SellP= V/EMA(V,len)*((A<=Ref(A,-1))+(A>Ref(A,-1))/exp((0.375*(A+Ref(A,-1))/B)*(A-Ref(A,-1))/Ref(A,-1)));
v3 = (BuyP/SellP)/RSI(2);
Plot(sqrt(v3) > Ref(v3,-1), "Panic", colorRed);

Ur one look like same Brother with lill difference but tht was nothing new....
 
Last edited:

Similar threads