myTMF - how to organize

Posted By: Grat

myTMF - how to organize - 01/23/21 17:57

Hi,


how is timing call IF I open order by enterLong(myTMF)?

1. enterLong(myTMS)
2. myTMS ( )
2.1. TradeID during first time is 0
2.2. enter ORDER

second question:
TradeVar[0] ... during first call is 0, I store any value during live TRADE. After close Trade, is still acessible and if I open new trade with myTMS, I can get value from this variable?

Thanks
Posted By: jcl

Re: myTMF - how to organize - 01/25/21 14:43

The ID is 0 when the trade was not yet opened, f.i.with a pending trade. The tradeVars are all 0 on the first TMF run, but keep their last value when the trade was closed.
© 2024 lite-C Forums