작업 종료됨
명시
I want to create an EA that reproduce a martingale where :
Sell orders and buy orders are by themselves (the same reasoning will by applied in the two directions in a distinguished way).
Here are the conditions :
- Every entry will be made at the close of an hourly candle.
- If there are no open positions, we want to open a trade (start a possible martingale) in the same direction of the momentum ( which we'll defined by the TDI being above or below 50)
- The martingale in the opposite side will start only if the first operation of the first martingale is in draw down of more than 2 pips at the end of the hourly candle next to the hourly candle where we opened the first order.
- Add a position to the martingale only if the last trade of that martingale (buy or sell) is in draw down of more than 2 pips (except for the second position, add that one anyway even if we're in draw down of less than 2 pips).
- As soon as the price goes 4 pips in profit from the medium price of the martingale, close the whole martingale.
- I want a default mode where both buy and sell are activated but I also want to be able to deactivate one and keep one side active
MONEY MANAGEMENT :
For the lot size I would like to have 20 - 25 slots that will contain the sequence of the lots size we will open in a certain order...
I should be able to fill these slots manually or for to be filled by an algorithm.
The starting size for 1.5k balance will be 0.01