if (BarsInProgress == 1)
{
double myCustomIndicator1 = myCustomIndicator();
}
else if (BarsInProgress == 2)
{
double myCustomIndicator2 = myCustomIndicator();
}
Now myCustomIndicator uses the Open, High and low to perform some calculation and returns that value via Plots.
Let's say that BarsInProgress == 1 is a 5 minute bar. When myCustomIndicator is called, when BarsInProgress == 1, are the Open, High and Low that myCustomeIndicator sees for the 5 minute bars?
Thanks
Comment