Forum

How to delete pending order?

Hi: I have this first loop which scans for open orders and pending orders . If there is an open order and a pending order, I want to delete this pending order. What codes should I use below? int PosTotal= PositionsTotal (); int pnd= 0 ,opn= 0 ; for ( int i=PosTotal- 1 ; i>= 0 ; i--) if (

Why error "possible loss due to conversion", and how to solve this?

I have written this small function which helps any programs to do the normalize of prices (without having to re-type the long normalize command), but it keeps giving this error. How can i solve this? //+------------------------------------------------------------------+ double normMe( string ins

how to use the cexpert money class?

Anyone has try this? i intend to use this without the cexpert class object (as in the examples). is this possible

Trailing Stop code (using the Metaquote class)

I have this code to buy: CTrade* trader= new CTrade; trader.SetExpertMagicNumber(eamagic); trader.Buy(Lot,ins,Ask(),stloss,tprofit); Once it buy I want to have a trailing stop loss ? I saw the Trailing Stop classes, but I don't know how to implement them. Any code, lead, suggestion, help

user inputs + comment, disappears on the tester

I have this input and the following comments next to it: input int RunMode= 1 , // This is to set testing/trading mode then, when I look at the strategy tester , the parameter RunMode disappears, only the comments are there. Any help

OnTester(): How to obtain the passes/optimized EA parameters?

Is there a way to do this? I looked thru the TesterStatistics(), but i cant find any way for it to obtain the EA parameters . The can do obtain, for eg. STAT_INITIAL_DEPOSIT The value of the initial deposit double STAT_WITHDRAWAL Money withdrawn from an account double STAT_PROFIT Net profit after

How to programmatically load chart symbol & EA on it?

Is there a way? Has anyone try this, any other links from the experience ones

Cloud Optimizer Keeps giving these errors?

2011.11.04 13:42:06 MQL5 Cloud Hong Kong genetic pass (481, 469285068385) tested with error "no memory" 2011.11.04 13:42:05 MQL5 Cloud Europe 2 genetic pass (388, 744960202127) tested with error "cannot load expert" There are other errors. The expert is good on local, but when it goes to