Greetz peepz I’m not a frequent forum poster, so I’ll keep it short. I’m working on an EA in MT5 and have a math question for y’all.
Say I have a netting account and I placed a BUY position on EURUSD from 1.0 lot (V1 = 1.0) at my opening price (P1) with an profit target of 100 points for $100. This is not a concrete “Take Profit” order, but my first profit target in what is expected to be a long-term trend. At this target (P2), I intend to place a trailing stop half way between P1 and P2, at 50 points for $50 of protected profits, minus pre-calculated fees (swap, commission, etc.), so let’s say $40 secure profit. Also at this point, I’d like to increase my position size such that the new opening price is exactly $10 behind my trailing stop, covering my fees at the TS and still leaving some wiggle room for the trend to continue.
I’d like to pre-calculate several of these “scale-up” points in advance to create a sort of protected grid position management system. When a position is placed, I want to pre-calculate and place the stop orders necessary to always scale up at a volume that keeps my opening price and fee coverage protected behind my trailing stop.
I’m currently working on this problem, but it seemed like a good idea to put it out to all of you too.
Thanks in advance. Check back to find out what I come up with.