Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Petra, AndrewAMD, Quad, VoroneTZ, 1 invisible), 488 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Modifying a pending order with a buy stop or sell stop #461823
08/23/16 17:15
08/23/16 17:15
Joined: Jun 2016
Posts: 7
CA
M
Murmurs Offline OP
Newbie
Murmurs  Offline OP
Newbie
M

Joined: Jun 2016
Posts: 7
CA
How do I:

- Cancel a pending trade
- Modify the buy stop (or sell stop) for a pending trade

For exitTrade() and cancelTrade(), the manual doesn't seem to provide explicit examples.

For exitLong() or exitShort(), apparently you can't target a particular trade.

Re: Modifying a pending order with a buy stop or sell stop [Re: Murmurs] #461837
08/24/16 09:23
08/24/16 09:23
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
If many trades are open at the same time, the easiest way is a for(open_trades) loop that identifies your pending trade and closes it or changes its entry price.

Re: Modifying a pending order with a buy stop or sell stop [Re: jcl] #461846
08/24/16 16:37
08/24/16 16:37
Joined: Jun 2016
Posts: 7
CA
M
Murmurs Offline OP
Newbie
Murmurs  Offline OP
Newbie
M

Joined: Jun 2016
Posts: 7
CA
Actually, through testing, I verified that calling exitTrade() with the TRADE* pointer will cancel the pending order.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1