i have the following code in an indicator:
however, when i run the code and i put a linearly weighted moving average with the specified period applied at the high price, my indicator completely ignores this and processes the code even if the high is below the moving average.
Inserted Code
if (High[i] > iMA(Symbol(),0,period,0,MODE_LWMA,PRICE_HIGH,0)) { //... }
however, when i run the code and i put a linearly weighted moving average with the specified period applied at the high price, my indicator completely ignores this and processes the code even if the high is below the moving average.