Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/29/25 14:06
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Quad, AndrewAMD, vicknick), 8,212 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 trades, 2 TP, 2 SL #461874
08/26/16 19:33
08/26/16 19:33
Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
F
Finstratech Offline OP
Junior Member
Finstratech  Offline OP
Junior Member
F

Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
Hi,

I'm trying to elegantly write a piece of code for:

Enter a buy and a sell at the same time, but have different TP and SL for both.
How would you go about it?
Thanks laugh

Last edited by Finstratech; 08/26/16 19:35.
Re: 2 trades, 2 TP, 2 SL [Re: Finstratech] #461876
08/27/16 07:24
08/27/16 07:24
Joined: Apr 2008
Posts: 598
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 598
Austria
Set them before the trade, or use function parameters.

enterLong (0,0,Stop1,TP1);
enterShort (0,0,Stop2,TP2);

Re: 2 trades, 2 TP, 2 SL [Re: Petra] #461908
08/28/16 22:15
08/28/16 22:15
Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
F
Finstratech Offline OP
Junior Member
Finstratech  Offline OP
Junior Member
F

Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
This is short and sweet.

Thank you.

Last edited by Finstratech; 08/28/16 22:15.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1