This EA is targeted at trading the Asian session only, and operates on the premise of placing limit orders to market at or around 07:00 Australian Eastern Standard Time, which equates to a quiet period between the end of the New York session and the start of the Asian session. Those orders are based on pivots calculated on the previous 24 hour period. The logic is that the Asian Session typically stays broadly within parameters set by the previous day's price action. Please note that the EA should generally only operate from Tuesday – Friday, as Monday is too unpredictable. The days of operation should be configurable, however, to allow for changing circumstances.
The EA must cater for fractional pip platforms. Code for this is available, if not already known.
No buys are generated by the EA itself. Instead, 4 limit orders are entered at the start of the trading day (StartOfDay), based on daily pivots. These orders have Limits, Stops and Expiry (ExpirationMinutes) when entered. Additionally, 2 of the orders will be automatically cancelled if their corresponding ‘pair' order successfully limit out.
I have code that partially works from another coder who could not get this to work on all platforms. I also have another version coded by someone else, with code which caters to Fractional Pip platforms.
Full details are in the attached file. This was written for another coder who struggled with this project, so it doesn't have to be followed exactly; I am open to suggestion.
You might have guessed this is a challenging project. Please don't bid unless you really are expert in MQL.
thanks.