- หน้าหลัก
- ชุมชน
- การเขียนโปรแกรม
- EA to place the opposite trade for a fulfilled order
Advertisement
Edit Your Comment
EA to place the opposite trade for a fulfilled order
Jul 18, 2013 at 06:15
เป็นสมาชิกตั้งแต่ Dec 30, 2011
11 โพสต์
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.
เป็นสมาชิกตั้งแต่ Nov 21, 2011
1601 โพสต์
Jul 28, 2013 at 16:34
เป็นสมาชิกตั้งแต่ Nov 21, 2011
1601 โพสต์
What happen if pending is trigerred and SL is hit?
เป็นสมาชิกตั้งแต่ Nov 21, 2011
1601 โพสต์
Jul 28, 2013 at 21:25
เป็นสมาชิกตั้งแต่ Nov 21, 2011
1601 โพสต์
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?

*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ