I was wondering if anyone knows about coding minimum size of a candlestick body in a relation to the previous one.
So far what I think it would be is
1
2
3
4
5
MyRange=Range
Minimum=(MyRange/MyRange[1]-1)*100
IFminimum>20THEN
Buycondition....
By doing this I am saying that I want to enter only if the bar is greater than 20% the size of the previous bar, but the program doesn’t seem to be following that.
I was wondering if anyone else has something similar?
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue