İş tamamlandı
İş Gereklilikleri
Hi all,
I am interesting for a code in mql4 or mql5 as below :
It will works Mon to Fri and repeat every day
Timeframe H1
INPUTS
1) Market symbol, 2) open day hour candle, 3) close day hour candle, 4) define a 1hour specific candle,5) security margin, 6) profit
--------------------------------
The coscept is as below:
The system will take the highest and lowest price of specific 1hour candle, after the specific 1hour candle has been completed and from this time and after is running the potential buy or sell.
--------------------------------
Specs of buy
If [currnet price] is >= [Highest price of specific 1hour candle] + [security margin ] then buy
Close the order buy if :
[current price] >= [profit] + [Highest price of specific 1hour candle] + [security margin]
or
[current price] <= [Lowest price of specific 1hour candle] - [security margin]
or
50 min after [close day hour candle]
--------------------------------
Specs of sell
If [currnet price] is <= [Lowhest price of specific 1hour candle] - [security margin] then sell
Close the order sell if :
[current price] <= [Lowest price of specific 1hour candle] - [security margin] - [profit]
or
[current price] >= [Highest price of specific 1hour candle] + [security margin]
or
50 min after [close day hour candle]
--------------------------------
If an order has been placed(e.g. buy) and closed due to price reached the {[Lowhest price of specific 1hour candle] + [security margin]}, converted from buy to sell as shown above. The only way is to let the market complete the day (50 min after [close day hour candle]) with the last order (sell or buy). Τhe opposite also applies to the sale order. In this case no other order (buy or sell) must be conducted till the end of the day.
Sorry if you not understand some of the above. In this case please send me reply.
Thank you!