Download MetaTrader 5
To add comments, please log in or register
Have you developed a trading robot? Publish it in the Market and make profit!
Johnny Trainer
78
Johnny Trainer 2015.10.12 16:51 
if (TrendIsUp == 1 && Fact_Uup1[i] == false && BoolUp[i] == true && TypeTrend [i] == 1 && GoodMarket[i] == true ) 

are these too many conditions for the compiler to properly process ?

because the things look like they are not synchronized. 

Snelle Moda
598
Snelle Moda 2015.10.12 17:17  

I have sometimes 15 or more conditions in an if() statement.

And I have no problems. 

Johnny Trainer
78
Johnny Trainer 2015.10.12 17:38  
thank you sir.
Marco vd Heijden
Moderator
4217
Marco vd Heijden 2015.10.12 17:39  
if something's not right the compiler will warn you to use brackets or parenthesis.
Johnny Trainer
78
Johnny Trainer 2015.10.12 20:44  

in this case i have a new dilemma:

- if the "if" condition works properly

- if the copybuffer works properly (i copy some function params)

- my orders are placed forcibly with a while loop until succesful

then why the order gets in the market 3-5 minutes later than it should ?!

 

this gives me the willies already :) 

Marco vd Heijden
Moderator
4217
Marco vd Heijden 2015.10.12 21:19  
check expert log.
Johnny Trainer
78
Johnny Trainer 2015.10.12 23:32  

lots to check since shows alerts every 2 secs.
strong entry checkpoint - no looping more than 2 times. hard checks. i may have put some different configs or i may receive some funny data... it is a demo account.
i notice it more than once though.
i will have to do it eventually.

it seems that you are some strong programmers... and i have zero experience with EA scripts. i wrote just a simple script.

question: how can i test which combination of tfs and MA configs work best for profit ? i may open a separate thread for this. 

Osama Shaban
1349
Osama Shaban 2015.10.13 01:16  

They are normal, but remember that as much those conditions are increased, the condition of the if( ) is rarely be true.

Good luck ... 

Johnny Trainer
78
Johnny Trainer 2015.10.13 02:53  
thank you folks!
/
To add comments, please log in or register