I would like to know in a 1-minute chart the total of the three previous candles at 15:33 and that at 22:00 that data will be erased.
I have tried with an "if" but it takes a long time to load the chart and it crashes....
Can you help me how it could be programmed in another way so as not to use so many resources?
Thank you
if (ToTime(Time[1]) == 153300)
{
vol= VOL()[1]+VOL()[2]+VOL()[3];
}
else if (ToTime(Time[1]) == 220000)
{
vol= 0;
}
Comment