For example, this morning I turned off Global Simulation Mode so I could create an ATM in Charttrader to trade in my cash account. The ATM specifies my cash account and I tested the ATM by placing an order in Charttrader below the market and the order placed and cancelled fine....meaning in the Orders tab it used the cash account
I then specified the same ATM in my cs and a trade was triggered. The trade however was placed in Sim101 instead of the cash account. Same ATM as my manual test...with different results.
The Log showed no errors....such as, not being able to find the ATM template...so I know it executed the same ATM. In fact, my cs plots the name of the ATM template right on the chart.
I then tested the ATM again manually by placing an order in Charttrader above the market and it placed and cancelled fine again in the cash account.
How can this be? My cs uses AtmStrategyCreate which does not specify an account...just calls the ATM....which in this case is the cash ATM. Somehow it defaulted to Sim101 even though Global Simulation Mode is still turned off.
Thanks.
Comment