Specification
At first, the EA must draw a rectangle highlighting the last 4:15 h of consolidation before the close of the M15 candle past 8 GMT (London opening), these times must be configurable.
After that, the EA must apply a gap to the trigger orders (defined as “FOLGA” in EA settings – in points not in pips) this gap has the purpose to avoid false triggerings.
At 8:15 GMT, the EA places the pending orders atop and above the range plus the gap (folga) and with his respectives Take profits (configurable but with 170 points as default)
As soon as an order is activated, the EA places another order in the same place of the contrarian order (recovery mode) with size = first order * Multiplier 01, this order has the same TP of the contrarian order and the stop loss of the first one.
If the price does not hit TP and comes back towards the original order, the EA repeats the process, placing another order in the same place of the original one with size = second order * multiplier 1, and so on.
The EA must have an off recuperation order multiplier, just in case that the recovery mode is off and the user accepts the stop loss. So in any day that stop loss is hit, the subsequent day will have the size multiplied by the multiplier 2.
In the other side, as the system have many sequencial wins, the EA must have a take profit lot multiplier placing a lot size in the day after a win multiplied by the multiplier 3.
About the money management, There is 3 entries: initial lot (default 0.01), money management false/true (calculates the lot multiplier based in the balance and lot applied in field 1 before each first trade of the day), and follow up order lot (I will explain soon).
About the Range, the settings must allow to configure the beginning and end of the range and the gap tha will be used.
About the parameters: the field “STOP LOSS IGUAL AO RANGE” with value true/false must define which kind of stop will be used, if TRUE the stop of the first order must be in the contrarian border of the range and the recovery mode must be off, if this option is set, the EA must erase the contrarian order too. If is FALSE the recovery mode is working and the stop coincides with the TP of the contrarian orders.
Field TAKE PROFIT in points, with equal size for both sides.
Field Trailing stop on/off, with his respective trailing size and step.
The follow up order, as mentioned above, is an alternative for the main trade system to pursuit the trend, working independently from the main trade system and using only the initial trigger. His size is defined in the money management section and have these characteristics:
No TP
SL by time (default 19h) OR SL in the contrarian border of range
Trailing Stop and trailing step configurable.
I’m attaching an indicator to show more or less how the boxes must be drawn and a picture in this sheet that shows the recovery mode in a generic way.
In the chart window, the EA must show a “HUD” with these informations in Portuguese and small font size:
STATUS DO SISTEMA: ATIVO/DESATIVADO (green active/red deactivated)
POSIÇÕES EM ABERTO: X.XX (total of open positions with his directions)
MARGIN: XXXX (In currency and percentage)
LUCRO DE HOJE: XXX.XX (in deposit currency)
LUCRO DE ONTEM: XXX.XX (in deposit currency)
RANGE DO DIA: XXXX (size in points of the 4:15 h range)
RECOVERY MODE: ATIVO/DESATIVADO (WHEN ACTIVE GREEN, WHEN DEACTIVATED RED)
MULTIPLIERS: RECOVERY MULTIPLIER, LEVERAGE MULTIPLIERS