Wrote an advisor, there is a problem. - page 5

 
Noterday писал(а) >>

Still didn't work :)

This code only worked for me after I fixed it

if( bar==1)   {      
   if( zz( bar)==High[ bar] && CalculateOrders(Symbol(),1)==0) 
   OrderSend(Symbol(),OP_SELL, Lot,Bid,10,High[ bar]+ spred +(100*Point),Bid-(100*Point),"SELL",0,0,Red ); else
   
   if( zz( bar)==Low [ bar] && CalculateOrders(Symbol(),0)==0) 
   OrderSend(Symbol(),OP_BUY, Lot,Ask,10,Low [ bar]       -(100*Point),Ask+(100*Point),"BUY", 0,0,Blue);                
              }

These stops didn't want to take the terminal for some reason.

(10*Point)
 

No, I left this idea until MT5 comes out in full. I need minute TF for this TS, which MT4 does not have. It works fine on real trade. And now I want to implement another idea.

 
Could you share a turkey if you don't mind?
 
Run >> :

I only got that code to work after fixing it

Yes) and it worked for me now. And if you don't use anything but the zigzag, this is what you get:



>> I laughed a little.)

 
so ZigZag :))))) I was also very amused by this picture
 
Here you go...
Files:
 
Spas!!!
 
Run >> :

>> yeah, as long as it's good for you.)

 
Run >> :

This code only worked for me after I fixed it

these stops didn't want the terminal to pick up for some reason.

That's what I'm saying. Why is a 10-point stop wrong...

 
Noterday >> :

That's what I'm saying. Why is a 10 pips stop wrong...

And what are the quotes 4 or 5 decimal places?