Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 2.35
by jcl. 02/24/21 14:40
findContract not finding a contract
by strimp099. 02/24/21 07:33
Zorro - import diff time zones csv
by AndrewAMD. 02/23/21 17:52
Using stablecoin as CCY on binance
by marr. 02/23/21 03:08
dataNew broken?
by DdlV. 02/23/21 00:55
Stop and profit/loss targets
by jpslvie. 02/22/21 19:08
Higher for at least N days in a row
by strimp099. 02/22/21 07:53
general questions about multitasking
by faustf. 02/21/21 23:36
AUM Magazine
Latest Screens
Scheherazade's Journey
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Who's Online Now
10 registered members (AndrewAMD, dpn, Quad, Dooley, 3run, MooseMannequin, marr, FLD, TedMar, 1 invisible), 456 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LorraineJones, SkNiX, wongkrezi, Wolf19, traderlivy
18599 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
myTMF - how to organize #482277
01/23/21 17:57
01/23/21 17:57
Joined: May 2015
Posts: 363
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 363
Czech Republic
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

Re: myTMF - how to organize [Re: Grat] #482282
01/25/21 14:43
01/25/21 14:43
Joined: Jul 2000
Posts: 27,450
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,450
Frankfurt
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1