Help!!!

 

Hello,,

Can anybody tell me what this code mean?

if(Bars<100){

Print("bars less than 100");

return(0);

}

if(lTakeProfit<10){

Print("TakeProfit less than 10");

return(0);

}

what it's roles in the program?

Thanx alot

 
SM3:
Hello,,

Can anybody tell me what this code mean?

if(Bars<100){

Print("bars less than 100");

return(0);

}

if(lTakeProfit<10){

Print("TakeProfit less than 10");

return(0);

}

what it's roles in the program?

Thanx alot

It checks if there are more bars than 100 and if there are less than 100, it writes it in output window. The same with TP, it checks if it's higher than 10.

 

thanx for ur interest,,

okk so what will happen next?? if the number of bars was less than 100?

if bars less than 100

1- print it on the screen.

2- return(0) == means exit from the program ??

thanx alot,

 
SM3:
thanx for ur interest,,

okk so what will happen next?? if the number of bars was less than 100?

if bars less than 100

1- print it on the screen.

2- return(0) == means exit from the program ??

thanx alot,
Yes, it means exit the program.

The Expert Advisor will exit the program in two cases:

Bars count less than 100.

The given Take Profit is less than 10 (pips).

Note 1: These two lines are recommendation not requirements.

Note 2: These two lines must to be written before any lines in the Start() function.