Forum

How to read SHIFT from inside indicator code?

Hello to everyone. I'm trying to retrieve the SHIFT value from inside the indicator source code. Is there any manner to do that? I explain my need: when the indicator is called by the EA using iCustom, we have MODE & SHIFT parameters . From inside the source code of the Indicator, I need to know

Possible dangerous BUG in offline charts

Hello to everyone. I'm experiencing an issue on EA made by myself that works on Renko (using offline charts). Inside the routine OnInit() I've calculated PipValue of the pair in this way: double PipValue; int OnInit() { double LotSize = 1; PipValue