//x=0 ///default 12
CHANGE=ROC[x](close)
If change > 0 then
Price=low[0]
elsif change < 0 then
price=high[0]
endif
return average[4](price)
Thanks Robert, I think that you want to share with us that code you made? If so, how would you use it and how does it looks?
It is quite interesting to adapt the idea to other indicators. Here is a similar code but for the RSI[2]:
x = 2
CHANGE = rsi[x](close)
If change >= 50 then
Price = low
elsif change < 50 then
price = high
endif
return average[4](price)
[attachment file=90260]
Thanks Vonasi for uploading an image, I didn’t have time yesterday.
It works well on all time frames. If the lower are messy look towards the higher….
RR