PureBytes Links
Trading Reference Links
|
Hello,
after many backtests, I have found that volume indicators (mfi and
cmf) gives me the best results
1/I want to code the demand index in a plugin to easily create a
composite
I have this code below, are you OK with it ??
2/ I would like to know how is coded the Bull bear pressure dll
( hard to find it in the old prev mail if you had not save it))
Thanks
Stephane
Av=(H+L+2*C);
B=EMA((HHV(H,2)-LLV(L,2)),19);
Buy= /*{BuyPressure}*/
V/EMA(V,19) * ((Av>=Ref(Av,-1)) +
(Av<Ref(Av,-1)) /
exp((0.375 * (Av+Ref(Av,-1)) /B ) *
(Ref(Av,-1)-Av) / Av));
Sell=/*{SellPressure}*/
V/EMA(V,19) * ((Av<=Ref(Av,-1)) +
(Av>Ref(Av,-1)) /
exp((0.375 * (Av+Ref(Av,-1)) / B ) *
(Av-Ref(Av,-1)) / Ref(Av,-1)));
bp=EMA(Buy,19);
sp=EMA(Sell,19);
di=((bp<=sp)*(bp/sp-1)+(bp>sp)*(1-(sp/bp)))*100;
Graph0=di;
|