How can I find the average opening price for the last two positions?
-
@jstap hahaha...the good ol sleep medicine.
-
@tipsywisdom Yep : )
-
@jstap
The last two deals have not been closed

-
@ladydolares
It's not your fault
The issue is not resolved -
@khalids222 To be honest placing blame is not helping any one, the current issue is all to do with logic, at the moment only 1 trade fits the pips away logic, so you need to work out what fit's the logic the logic to close second trade. To me something like, if 2nd trade is always a set distance from the first then, branch off the 1st pips away with another pips away and the distance the 2nd trade will be, with a pink close block.
-
so you still need the average price of the last 2 openend positions?
do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?
-
@jstap I'm very sorry, I didn't mean anything, my goal was to open the topic only for participation. It was not my intention to blame or otherwise.
I thank you for your time and effort -
@bk7 said in How can I find the average opening price for the last two positions?:
so you still need the average price of the last 2 openend positions?
do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?First of all, I apologize for the delay in responding, due to the death of a dear friend of mine.
Yes, I want it for each one individually
1 avg for buys and 1 for sells -
@khalids222 oh sry to read this.. the next 2 days i am super busy so if forget about it please send a reminder in 3 days if nobody else helped you by then.
-
-
@bk7 Thank you and where will the closure be?
-
@khalids222
i just read about the price, which closure logic you want to apply? -
@bk7 If the price exceeds two buy deals, I want to close these two deals that are less than the price
-
@khalids222
for me there are open questions:
how many open buy positions you have max ?
exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
ist just price a factor or volume as well?
you take swaps/commissions into account or just price ? -
@bk7 said in How can I find the average opening price for the last two positions?:
for me there are open questions:
how many open buy positions you have max ?
exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
ist just price a factor or volume as well?
you take swaps/commissions into account or just price ?Suppose I have one buy transaction, and when it go down, I will increase it by one as well. When the price exceeds the value of the buy before the last, I want to close the last two deals.
1- buy = 1250
2- buy = 1235
ave buy price now = 1242.50
when price highest = 1244
i want close 2 position this rule for all -
okay so you will never ever have more thant 2open buy positions at the same time, correct?
is this with an application of min profit
-
@bk7 okay so you will never ever have more thant 2open buy positions at the same time, correct?
yes it is correct
I will try it -
-
how you open the second trade?
this way buy is just once there is no trade
and what does the closing logic do or should do? -
Whenever the price drops ten points, a buy deal will be opened.
When the price goes up, there will be only two options:
Let me explain better1- buy = 1280 lot = 0.01
2- buy = 1270 lot = 0.02
3- buy= 1260 lot= 0.03
4- buy = 1250 lot = 0.04 the price here now
when price rise from 1250 to 1260 i want close number 3 &4 >
Then there will be two options, the price continues to rise and deals are closedThe second option is to continue going down, and there will be a certain limit, then it will enter the sell

