Trabalho concluído
Termos de Referência
once attach to chart It opens buy stop and sell stop orders based on 1.2 times the spread from the current price. Buy stop = ask + (spread x 1.2), sell stop = bid - (spread *1.2).
Initial order stop loss
buy stop = Sell stop price + spread
sell stop = buy stop order price + spread
If a buy stop or sell stop order is triggered and the price moves in the same direction, the stop loss will be moved to the breakeven point and a new order will be created base on logic above at the current price. This process will continue limitless, with previous triggered orders' stop loss moving to match the breakeven point of the newest triggered order.
Example :-
Additional Order -
if buy stop is triggered, price goes in the same direction larger than current spread, move sl to breakeven(price + spread), create new order will be trigger with the same logic for buy stop with SL same with the first order breakeven and sell stop order price will me move to new price base on current price.
Continuation
New buy stop triggered (have 2 buy trade triggered), move in the direction larger than current spread, 2nd order SL move to its breakeven, and all previous order will move to same SL price.
Create 3 rd order, . And if happen to have 4th order, 3 order breakeven, 1st and 2nd order sl will move same as 3rd price breakeven. It will continue limitless.
input variable
1.Lot -
2. Risk - if lot is 0 ea will calculate lot base on risk. (account bal * leverage /100,000 = Lot (100% risk))
Trading Hour - can be input base at mt4 time
3.Start - 00
4.End - 23
I will need mq4 files. it doesnt have to be profitable as long the logic is work im good.
New coder encourage to apply, you can send demo first. everthng is up there.