Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Baklazhan, AndrewAMD, Ayumi, Hanky27), 1,277 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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