工作已完成
指定
Internal Variable
Account: To enable EA
Expiration: Date for EA to stop working
External Variable
Lot = 1 - Initial lot
Multiplier = 2 - Order multiplier factor in case of loss (Martingale)
Pips = 100 - This value will serve to define the opening of orders and also as Take and Stop of the operation
Profit = 100 - Profit of the day
StopLoss = 100 - Loss of the day
Operation of EA
Step 1:
When you enable EA, a pending purchase order and other pending sales order will be opened away from the current point according to the PIPS variable.
Example:
The EA is enabled at the time the price is at 1.17000, considering the value of the PIPS variable = 100, then it will open two pending orders being purchase 01 at 1.17100 with TP = 1.17200, SL = 1.17000 (the PIPS variable defines TP, SL, Opening) and sale 01 at 1.16900 with TP = 1.16800, SL = 1.17000.
When either order is opened, the other order must be canceled automatically.
Step 2:
If the open order close positive, open another order at that same point and the trend of the winning order.
Example: You have closed a purchase order with a gain of 1.17100, then another purchase order will be opened at that point 1.17100
If the open order close negative, open another order at that same point and the opposite trend of the losing order and with batch multiplied.
Example: You have closed a purchase order with a loss of 1.17000, then you will open a sales order (opposite) with multiplied order (Martingale) at that point 1.17000
Once the Martingale starts operations, due to losses, when the first gain is received, the orders are executed again with the initial lot until the first loss again.
Note: Operations will only be stopped when you reach Take of the
day or Stop of the day.
As the market can move aggressively, assess whether it is best to leave all
future orders as outstanding.