工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
So. We gonna have the EA calculating the ratio in between symbols and the moving avg of this ratio. Once the ratio starts to move away from the ratio we start to open positions. if ratio keeps going against us we keep opening new positions with martingale-like lot sizes. Till it goes back to where we want it to be.
Maybe. I'm in profit, but I opened at 1,150, i should close at that level. and try to pocket the biggest profit.
The inputs for it will be
Symbol 1
Symbol 2
Initial lot
Ration symbol 2(true or false)
Timeframe (for optimization)
Moving avg length
Distance for open positions (%)
Grid size after first position (% of ratio)
Multiplier
What Ration symbol 2(true or false) means in this case?
Let says the ration in between both is 3 (some pairs are like that) So we can open 1:1 lots for them. Symbol 2 will open the lot based on the ratio. If it's 3. You open 1 lot for symboL1 and 3lot symbol2. The same apply if the ratio is 0.3, for exemple.