Hi!
1. playing long I bought 10 contracts for the price of $ 100.
2. The price began to decline, but I decided not to leave the position, but to purchase another 20 contracts at a price of $ 90 (averaging).
3. The price has slightly increased to 92 dollars.
4. Now I want to put a stop at breakeven for my entire cumulative position (my loss = 0).
as I understand it, the EntryPrice function will give me the price of the first entry in a position = 100.
How can I get a weighted average price = (10 * 100 + 20 * 90) / (10 + 20) = 93.3333 ?
Or at least the price of the last transaction = 90? After all, then I could calculate the weighted average price myself.
Best regarts