I need help

 

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 ? 

 
9446180668:

Hi everyone,

I need a function for my expert. 

You are already familiar with  Jobs
 
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 ? 
  1. 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.
  2. 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)
Reason: