Orlando FL
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 95 since May 2019
Thanks Given: 8
Thanks Received: 11
|
I have some code in my strategy that calculates a pace that is should be at based on the number of signals it generates. Problem I'm having is that if I turn on automation, if there were any trade signals on the chart prior to it firing off the first trade in automation, the strat will have this crazy base line of what it thinks the account should be at and then tries to make it up by calculating a high amount to buy or sellshort. I would like the strat to be able to know that when it's not placing live trades, it doesn't continue to calculate that pace.
Is there a function or reserve word that would help me with this issue?
SOLVED.... looks like I found it. GetAppInfo(aiRealTimeCalc)
Looks like that only identifies when you are in real time at the end of the chart and new candles are forming.
|