Hello,
I am interested in writing a code that would gather the MA20 for DJI.
I am using a short time frame (currently 30 min) and would want something like this:
At the end of the day (16:00 New York Time – not midnight! so can’t use Dclose), get the MA20 (or the close at 16:00 for 20 previous days divided by 20)
Is there an easy way to do this, as the MTF doesn’t seem to be ready yet for live IG accounts
Thanks!
P.S – I found a few threads like this below but they are using midnight time with DCLOSE
https://www.prorealcode.com/topic/daily-moving-average-on-any-timeframe/