Hi, need some help understanding this code:
Input: entry6_xr(5), entry6_daysback(10);
Var: entry6_rrange(0);
entry6_rrange=high-low;
if entry6_rrange>2*stddev(entry6_rrange, entry6_xr)+average(entry6_rrange, entry6_xr) and close>close[entry6_daysback] then buy next bar at market;
if entry6_rrange>2*stddev(entry6_rrange, entry6_xr)+average(entry6_rrange, entry6_xr) and close<close[entry6_daysback] then sellshort next bar at market;
Exactly how does this one work?
It is a kind of volatility test, as a simple test if candlestick range is above/below bollinger bands of 2 standard deviation (average & std dev are calculated also with candlesticks ranges instead of the usual Close) and if actual Close is above/below Close “entry6_daysback” ago.
Im gonna have to see the (prt)code to undertsand this i think, if you dont mind Nicolas.
Are you saying that instead of saying “Close > bollingerup”, this is saying “Range(high-low) > bollingerup”?
Cant you do the same with just “high > bollingerup”?