Hi,
I used this script last year, and it worked perfectly.
It allows me to access the average price of the day at the closing (390 1 minute candles).
Now the only things it returns is null values for the first candle of the day (ex: 09:31).
Same database, same script, same ticker.
If I change the database settings, it will still be the first candle of the day (ex: 04:01).
However if I can still plot the WP or WP_C on a chart without any problem.
Filter=1;
WP = MA(C,390);
WP_C=IIf(Hour()==16 AND Minute()==00, WP, Null);
AddColumn(WP_C,"WCP_C");
Any idea?
Best regards,