Gamestudio Links
Zorro Links
Newest Posts
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/16/26 11:13
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Lapsa, Martin_HH, 1 invisible), 1,168 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Marking Exit trades #488764
06/02/25 22:41
06/02/25 22:41
Joined: Sep 2024
Posts: 11
robbinsville, nj USA
W
walt_Schwarz Offline OP
Newbie
walt_Schwarz  Offline OP
Newbie
W

Joined: Sep 2024
Posts: 11
robbinsville, nj USA

I see where the entry function can pass a variable (which can be a string) with the TMF function BUT when I "ExitLong" or "ExitShort" ,

I do not see any way that the exit can be labeled so when I look at the trades, I cannot tell what exit code was used.

>> I have various exit codes and I need to see which exit code was used to exit.

The only way would be to log the exit date & code to a file and then merge file with the trade stat file...

Is there a better way?

Re: Marking Exit trades [Re: walt_Schwarz] #488770
06/11/25 14:02
06/11/25 14:02
Joined: Jul 2000
Posts: 28,106
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,106
Frankfurt
Right before exiting, store the exit code in a global variable, and let the TMF copy that variable into a TradeVar.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1