EA Or indicator to show all profit/lose Open And pending order in chart For specific Price (One pair Or all pair )

To add comments, please log in or register
Kaveh Nasiri Alamouti
59
Kaveh Nasiri Alamouti  

Hi All

I want to EA Or indicator to show all profit/lose Open And pending order in chart For specific Price (One pair Or all pair )

anyone can help me

Thanks.

Mohammad Hossein Sadeghi
2042
Mohammad Hossein Sadeghi  
Kaveh Nasiri Alamouti:

Hi All

I want to EA Or indicator to show all profit/lose Open And pending order in chart For specific Price (One pair Or all pair )

anyone can help me

Thanks.

Hi,

Please explain more, pending orders carry no profit/loss, what do you mean by 'specific Price'?
Kaveh Nasiri Alamouti
59
Kaveh Nasiri Alamouti  
Mohammad Hossein Sadeghi:
Hi,

Please explain more, pending orders carry no profit/loss, what do you mean by 'specific Price'?

Hi Mohamad

suppose that we have several open positions in buy and sell and pending order (sell/buy) and want to know in specific price with all order what happened in profit or lose (if pending orders activate)

for me pending order lot size calculation important based on forecasting market

thanks.

Mohammad Hossein Sadeghi
2042
Mohammad Hossein Sadeghi  
Kaveh Nasiri Alamouti:

Hi Mohamad

suppose that we have several open positions in buy and sell and pending order (sell/buy) and want to know in specific price with all order what happened in profit or lose (if pending orders activate)

for me pending order lot size calculation important based on forecasting market

thanks.

I see, you can use PIP value from MarketInfo. Then calculate possible profit/lose based on distance between entry price and given price, multiplied by OrderVolume and PIP value.
Kaveh Nasiri Alamouti
59
Kaveh Nasiri Alamouti  
Mohammad Hossein Sadeghi:
I see, you can use PIP value from MarketInfo. Then calculate possible profit/lose based on distance between entry price and given price, multiplied by OrderVolume and PIP value.

I know what you say but I want to real time calculate for all Orders together not separate order 

Mohammad Hossein Sadeghi
2042
Mohammad Hossein Sadeghi  
Kaveh Nasiri Alamouti:

I know what you say but I want to real time calculate for all Orders together not separate order 

Sure, you'll need to code a loop to calculate profit/loss for single order then show total p/l, for realtime result, you will need to put the loop inside OnTimer.
To add comments, please log in or register