9446180668: I need a function for my expert . That function is for calculating the breakeven point of currently opened buy orders and breakeven point of sell orders on a selected chart .anyone can help me ?
- Are you asking for someone to code it?
Since there are no slaves here, there are only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem. - Or about how to calculate it? Simple algebra:
Buy_pips1 = (Bid - OrderOpenPrice_1) * lots1
Buy_pips2 = (Bid - OrderOpenPrice_2) * lots2
:
Sum(Buy_Profits) = Bid * Sum(lots) - Sum( OOP*lots )
Sum(Buy_Profits) = zero at break even.
0 = BreakEvenPrice * Sum(lots) - Sum( OOP*lots )
Sum( OOP[i]*lots[i] ) - BreakEvenPrice sum( lots[i] )
Sum( OOP[i]*lots[i] ) / sum( lots[i] ) = BreakEvenPrice (lots weighted average open price)
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
Hi everyone,
I need a function for my expert . That function is for calculating the breakeven point of currently opened buy orders and breakeven point of sell orders on a selected chart .anyone can help me ?