old time user here, I have made a copy of "Pivots" Indicator I am wanting to Create my own pivots basing the closing candle to define my pivot to be the 3:15pm candle Chicago time.
I believe this code will define my closing candle
protected override void OnbarUpdate()
if (CurrentBar < 1) return;
if (ToTime(Time[0]) == ToTime(new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 4, 15, 0)))
{
// 4:15 AM candle closing price
double closingPrice = Close[0];
how do input this to configure my new closing position if it is possible?
thankyou for your time reading this
Comment