Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hi, I want a script which can automatically open limit order buy & sell with distance (pips/points)
1-setting panel -
DISTANCE FOR EVERY LIMIT ORDER : E.g. 50 PIPS/POINTS
SL DISTANCE :E.g. 50 PIPS/POINTS
TP INSURANCE
INSURANCE TP PIPS : E.g. 50 pips/points (NOT TP , IT JUST A GUIDELINE FOR CONDITION)
INSURANCE % : 25 % 50% 75% IT can be any percentage.
*INSURANCE TP IS SIMILAR WITH TP - TRIGGER ONLY WHEN MEET THE CONDITION , GOING TO EXPLAIN AT BOTTOM .
LOT SIZE: E.g. 0.1
PLAY AND STOP BUTTON , (when you click play everything will go according to the data above.)
this is how it works :
( E.g. CURRENT PRICE -1350 BUY STOP -1400) we name it BUY1
( E.g. CURRENT PRICE -1350 SELL STOP-1300) we name it SELL1
-when BUY1-1400 is open , on top of this BUY1-1400 order (distance 50pips ) will generate a new BUY STOP (BUY 2)-1450
-only when two same direction order is OPENED (BUY1-1400 BUY2-1450), a new sell stop order will generate ,(SELL 2) -1350 (50pips away from SELL1)
So, in between SELL 2 AND BUY1 IS 100 pips - SAME GOES TO SELL SIDE
-TP INSURANCE
WHEN PRICE REACH INSURANCE PIPS E.g. 50 PIPS , SL WILL AUTOMATICALLY CHANGE FROM SL LOSE TO THE PERCENTAGE THAT YOU KEY ABOUVE.
IF WITHOUT SL STILL FUNCTION.
REMARK
-HEDGING ORDER ARE NOT AFFECT THE EA RUNNING (WHEN BUY1 DIDN'T HITS BUY2 AND BACK TO SELL 1 BECOME LOCK ORDER)
-IF SL DISTANCE IS 0 TP INSURANCE STILL WORKING .
THIS IS ALL I HAD RIGHT NOW , IF THERE IS SOMETHING THAT I MISS OUT KINDLY LET ME KNOW , WE CAN FURTHER DISCUSS , THANK YOU.