Скрипт выставляет стоп ордер на то место куда его бросили или на расстояние Delta от цены, если Delta указана больше ноля.

BuyStop, если кинули выше цены и SellStop если ниже.

Далее скрипт будет тралить этот ордер за ценой вплоть до срабатывания, после чего закончит свою работу.

Если не указан лот в параметре Lot, то скрипт сам вычисляет лот как разницу суммы лотов направлений (лок)

Настройки скрипта:

extern int TakeProfit = 0; //level, at which a take-profit is set; if 0, then the take-profit will not be set
extern int StopLoss = 0; //level, at which a stop-loss is set; if 0, then the stop-loss will not be set
extern int Delta = 0; //distance from the price to order; if 0, then the order will be opened at the price level, to which you have drag-and-dropped the script by holding the left mouse button
extern int StepMove = 1; //step (in points), at which order moves
extern double Lot = 0.1; //lot size; if 0, then the Script will calculate the lot size by itself
extern int Magic = 100; //unique order number
Trail Lock Stop Order
Trail Lock Stop Order
Trail-Lock-Stop-Order.zip
1.7 KiB
851 Downloads
Детали