help to create an EA

 

hello

I need a help to create an EA:

I need an expert that calculates the average purchase price and creates a horizontal line, and after that all orders closed after x pips.

in substance that adds to this indicator a close after x pips.

closed only long positions

closes only short positions.

Files:
ConPos.mq4  5 kb
 

I offer 50 euro AlertPay to those who help me

 

ok close !!!

BYE BYE

 

i think you must learn more about it. we need know about MSQL . we has tool in MT4 folder. but we need effective systerm for trading and we need know how to explain it by MT4 language

 
BUITRE:
hello I need a help to create an EA: I need an expert that calculates the average purchase price and creates a horizontal line, and after that all orders closed after x pips. in substance that adds to this indicator a close after x pips. closed only long positions closes only short positions.

You will get an error warning when you compile the indicator as is.

Replace the offending line with this:

if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;

I know this is not the answer you are looking for, but without this correction the indicator will be no good to you anyway

Reason: