- Sākumlapa
- Kopiena
- Programmēšana
- EA to place the opposite trade for a fulfilled order
Edit Your Comment
EA to place the opposite trade for a fulfilled order
Biedrs kopš
11 ieraksti
Jul 18, 2013 at 06:15
Biedrs kopš
11 ieraksti
I use the attached script to place buy and sell pending orders (see chart). and i would like to have an ea that replace every closed order( pending order triggered and TP profit reached) by the opposite trade.
say for example that i had a EU pending buy order at 1.30 and take profit at 1.302, if this order is triggered and the TP hit the EA will place a pending sell order at 1.30 and TP at 1.298 .
the other side is when i have a pending sell order at say 1.296 that got triggered and TP hit at 1.294 , the EA will place an order with a buy at 1.296 and TP at 1.298.
the script can place unlimited buy and sell pending order with predefined TP and distance between orders.
please let me know of any question or concern.
thanks.
say for example that i had a EU pending buy order at 1.30 and take profit at 1.302, if this order is triggered and the TP hit the EA will place a pending sell order at 1.30 and TP at 1.298 .
the other side is when i have a pending sell order at say 1.296 that got triggered and TP hit at 1.294 , the EA will place an order with a buy at 1.296 and TP at 1.298.
the script can place unlimited buy and sell pending order with predefined TP and distance between orders.
please let me know of any question or concern.
thanks.
Biedrs kopš
1718 ieraksti
Jul 28, 2013 at 16:34
Biedrs kopš
1718 ieraksti
What happen if pending is trigerred and SL is hit?
Biedrs kopš
11 ieraksti
Jul 28, 2013 at 20:26
Biedrs kopš
11 ieraksti
the same thing if TP is hit . we should place the opposite trade again . say that a buy is trigered @ 1.3 and it`s SL @ 1.299 was hit, we should place a sell @ 1.299 with same pips for TP and SL .
Biedrs kopš
1718 ieraksti
Jul 28, 2013 at 21:25
Biedrs kopš
1718 ieraksti
Forget about your sript... build an EA.
Also, what about previous pending orders? do you delete them?
Also, what about previous pending orders? do you delete them?
Biedrs kopš
11 ieraksti
Jul 29, 2013 at 06:02
Biedrs kopš
11 ieraksti
no the EA keep adding opposite orders whenever TP or SL is hit ....you can close all orders after a profit/loss is reached using another script or EA
*Spams netiks pieļauts, un tā rezultātā var slēgt kontu.
Tip: Posting an image/youtube url will automatically embed it in your post!
Tip: Type the @ sign to auto complete a username participating in this discussion.