Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, dr_panther, Ayumi, Quad, AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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