Specification
Similarly, MA also has a filter to decide whether open a trade or not depends on the ratio of fast and slow MA value.
The indicators can run in two modes, per tick or per bar.
Per Tick means checking the value of each indicator once per tick, and placing an order if the conditions are met, e.g. all of them meet their Buy conditions.
Per Bar means checking whether the conditions for placing an order are met when the current bar ends, and placing an order if they are met.
These indicators will use differrent time frame. So the checking interval will base on the smallest time frame.
Record all the indicator values on the expert/journal log when open a position.
e.g. RSI 73, MACD Main 30, Signal 22, MACD Min. Value Ratio 1.36, MA Fast 36, MA Slow 26, MA Min. Value Ratio 1.38, Volume Ratio 2
The reason for closing the position needs to be recorded in the expert/journal Log.
e.g. Closed by TP in Points
Closed by Trailing in Points
Closed by SL in %
If the position is closed by indicator, the indicator values at the moment of closing needs to be recorded in the expert/journal Log.
e.g. Closed by RSI: RSI 32
Closed by MACD Signal: Main 0, Signal 0
Closed by MACD Min. Value Ratio: Main 30, Signal 15, Ratio 2
Close by MA Signal: Fast 1, Slow 0
Close by MA Max. Value Ratio: Fast 300, Slow 450, Ratio 1.5
Others featured functions include:
1. Risk reward ratio take profit (TP) & stop loss (SL).
2. TP in points or in %.
3. Trailing in points or in %
4. Reduce the trailing distance when the price goes in certain interval.
5. Time and week filter to control the trading session.
6. Max. daily draw down in dollar or %
7. Spread & Slippage filter
The code will be exclusively owned by myself. No part of it may be reused, resold, or distributed.
Deliverables
The EA and .mq5 code
The code must be directly wrote in MQL5. Convert from MQL4 to MQL5 is not desirable.