Dallas, TX/USA
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9
|
Hello,
NT8 coding help.
I would like to use the Chaikin Money Flow indicator based on start time rather than period. Meaning- I would like the calculations to run from session open until end of day... not just the last 21 bars.
Current code:
else if (State == State.DataLoaded)
{
moneyFlow = new Series<double>(this);
sumMoneyFlow = SUM(moneyFlow, Period);
sumVolume = SUM(Volume, Period);
}
Any ideas how to get from Period to start time??
Thank you in advance.
Difference between discomfort and pain = 1 tick |
|