Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 972 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Updating pending trades with MaxLong/MaxShort #484525
11/07/21 17:17
11/07/21 17:17
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
enterLong/enterShort calls are supposed to update pending trades when the limit of MaxLong/MaxShort (both = 1 in my script) is reached but it doesn't seem to work for me unless EntryTime is at the default of 1. But in that case, entries are missed after one bar and the following enter call doesn't really update the existing trade, it rather replaces the trade that just expired, so it only looks as though it is updating the trade. When I set EntryTime to something higher so that the trade is actually still alive upon the next enter call, the trade is not updated. I checked using the STEPWISE feature where the pending trade is shown in a window. I am printing the Entry value before the enter call with a watch statement to confirm that this is indeed changing as desired, but the following enter call doesn't change the pending trade's Entry to the new Entry even though it is different. (Same for the take profit)

Am I missing something?

Re: Updating pending trades with MaxLong/MaxShort [Re: MegaTanker] #484526
11/07/21 17:26
11/07/21 17:26
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
MaxLong,Short updates pending trades? I think not.

Re: Updating pending trades with MaxLong/MaxShort [Re: MegaTanker] #484527
11/07/21 17:33
11/07/21 17:33
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Yeah now I see the manual only mentions open trades so that explains it


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1