No, it is not clear, but it seems you want to calculate the new breakeven price to use as TakeProfit.
BreakevenPrice = (Lots1 * First OrderOpenPrice() + Lots2 * Second OrderOpenPrice()) / (Lots1+Lots2)
phy wrote >>
No, it is not clear, but it seems you want to calculate the new breakeven price to use as TakeProfit.
BreakevenPrice = (Lots1 * First OrderOpenPrice() + Lots2 * Second OrderOpenPrice()) / (Lots1+Lots2)
Hope to get the first orderprice and the second orderprice of the specify pair only. Not to affect other trades that are opened
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can someone look at this code,
Its not calculating the pip difference between the first order place and the new one place.
Ex.
first orders place
EURUSD
B
S
say later..... B -50
S +52
if kantor Green led then I have the EA close the SELL order to profit and
place another BUy order, but I need the EA to calculating the pip difference between the first order place and the new one place. This will go into there TP values, so they are automatically cancell out to 0.
S is closed @ +52
New order B TP 26
Orginal first B TP26
Hope this is clear