Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, Ayumi, VHX, monarch), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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