Trabalho concluído
Termos de Referência
I want to code an EA. It will consider High and Low in a specified time, and place pending orders at specific time, anticipating breakout. I have marked external inputs as Bold.
So, on Current Currency, a box will be formed from Box Start Time to Box Finish Time, and will mark High and Low during that period. Two pending orders will be placed at Orders Placement Time, at Distance from High (Buy) an Low (Sell). If the current price is too close to the broker minimum allowed distance, then it should place order at the broker minimum allowed distance.
For example, on current currency EURUSD, a box will be formed from Start Time 01:00 to Finish Time 08:00, and will mark High 1.35964 and Low 1.35842 during that period. Two pending orders will be placed at Order Placement Time 08:00, at Distance 1 pip from low and high,as Buy Stop 1.35974 and Sell Stop 1.35832.
https://charts.mql5.com/5/18/eurusd-h1-pepperstone-financial-pty-4.png
There should be option to cancel pending order, or to force close a trade at Order Cancellation Time, or Trade Close Time
Pending orders will come with StopLoss and TakeProfit as pips, as specified in SL and TP.
OCO true will cancel the opposite pending order when first order fills in.
When Reverse is true, it will place Sell on High, and Buy on Low.
It should keep comments clean
No offers above the specified price credits, please