Because of a fatal error in a custom indicator I use on an EA, I'd like to rewrite directly the algorithms of pivot point inside the EA. It may save some memory. So here's a piece of code from the indicator :
EA :
PivotP=(price[1].high + price[1].low + price[0].close) / 3 ; <--- current high, current low, previous close
Indicator :
P=(BufHigh[i]+BufLow[i]+close[i-1])/3; <--- current high, current low, previous close
with ...
BufHigh[i]=high[i];
BufLow[i]=low[i];
Hi,
Because of a fatal error in a custom indicator I use on an EA, I'd like to rewrite directly the algorithms of pivot point inside the EA. It may save some memory. So here's a piece of code from the indicator :
And here's the code in the indicator, that provide QUITE similar results, I'd like exactly the same results since the indicator is very good :
As you can see the results are quite similar, but not exactly the same :
Even if the formula is the same one :
Anyone may help please ?