And let's make a "cartoon" out of it (multicurrency) - page 11

 
Check for errors please...
 
ALex2008 >> :
Check the errors please...

What makes you think it's a mistake?

What's the problem? is it something the examiner is not doing as you would like? or something else?

 
RomanS >> :

Why do you think it's a mistake?

What's the problem? Is it something the Expert Advisor does not do? Or something else?

Sometimes there's something wrong with the code - some little thing... and you can't see it yourself))

Maybe while I was adding the CU... sometimes I can't figure it out on my own.)

 
Have you tried the test? ;)
 

Yes, I've tried it on the tester many times...

I'd like to try the demo... which I'm doing now... But it'll probably take a month to at least try it out)

 
ALex2008 >> :

Yes, I've tried it on the tester many times...

I'd like to try the demo... which I'm doing now... But it'll take a month to try it out.)

On what pair did you test? What timeframe?

 
RomanS >> :

>> which pair were you testing? what timeframe?

EUR,CHF,GBP... mostly... but on all major pairs...

 
ALex2008 >> :
Check for errors please...

Global variables are like a fence in the street - there's no guarantee that someone won't write *** over the right and important data © bash



if ((BU==true)&&(Type<=1)&&(Stop!=StopLossBU))  SetBU();//StopLossBU не определен

You can add a stop check to the WorkOrders() function, whether it's in boo or not.



//-------Вычисление бу и установка
Enter is not defined, it might be easier to add
Enter=OrderOpenPrice(); or add variable PriceOpenOrder=OrderOpenPrice();


hhy: setting a stop - errors will be 130 and 1, or is it more profitable? :)


 
Swan >> :

Enter not defined, probably easier to add to WorkOrders() too

you can add to WorkOrders() function to check if it is stopped in Boo or not

I got it about Enter... corrected...

I don't know how we're going to check the CU...?

I started to re-do that EA should consider not only its own orders, but also my personal hand orders) I.e. if EA has no signal, but I suddenly get one - I will open))... and then it should... no just have to pick them up and process them as my own ones)

 
ALex2008 >> :

Enter already got it... corrected...

I don't know how we're gonna check the CU...?

roughly so:

CheckBU=false;
if(OrderType()==OP_BUY  && OrderStopLoss()>OrderOpenPrice()) CheckBU=true;
if(OrderType()==OP_SELL && OrderStopLoss()<OrderOpenPrice()) CheckBU=true;