How can I find the average opening price for the last two positions?
-
so you want to make a grid?
what you wrote before is in conflict with your post where you said there are max 2 buy positions at any time
as you said in your last post there are 4 or more buy positions plus probably other positions...if you have a complete trading plan you can send it to me via pn and i can think about a solution, if you want you can post all here as well if you dont mind.
But without knowing all trading actions at any step needed it is hard to make a solution that works because from what i see in your last post all needs different approach. -
@bk7
What I wrote here is not different from what I wrote previously, but here I opened four deals? Assuming that the price did not rise until after opening four deals
In this case, I want to close the last two deals
This was clarified in determining the closure of deal No 3 & 4
Meaning, I want to close the last two deals every time even if the number of deals is one hundred -
yes 4 deals are different from max 2 deals, why does it matter?
if you have only 2 (buy) deals max you can simply close all open orders, if you have more open at the same close all would not work, so is different.
-
@khalids222 I also think about the idea you think, but I can't do it.. I hope you can solve it... If you succeed, I ask you to share your project with us here, because we rookies who are eager to learn are looking forward to it. I wish you success....