What is the difference between Close[0] and Ask/Bid? - page 2

 
this is Expert 
 I want  to create code 
For exmble 
if( close [0] ==true) {Close_Order();}  
 The code right or not 🤔🤔
 
Mahmoud Mandour:
this is Expert 
 I want  to create code 
For exmble 
if( close [0] ==true) {Close_Order();}  
 The code right or not 🤔🤔

No.

close[0] is a double so it cannot equal true. (actually as a non-zero number it will always be processed as true)

 
Comments that do not relate to this topic, have been moved to "BuyLimit gives invalid price error".