Obviously if your indicator is set to Calculate = Calculate.OnPriceChange;
Then Close[0] will not just refer to the Close of the current bar, but the current price.
Without changing Calculate to Calculate.OnBarClose or using Close[1]
Is there another way to write "wait until the very last second of the bar, then print the Close[0] price?"
Thank you.
Comment