Quantcast
Channel: MQL5: MetaTrader 5 trading, automated systems and strategy testing forum
Viewing all articles
Browse latest Browse all 75046

DIsplaying Ask/Bid

$
0
0

Hi,try this code :

 

 

///////////////////////////////////////////////////////////////

int     init(){

return 1; 

}


void OnTick(void)

  {

  double a = Bid-Ask;

  Alert("Bid :  " + Bid + "  __ Ask  " + Ask  + "Spread:" + a);

 }

/////////////////////////////////////////////////////////////// 


Viewing all articles
Browse latest Browse all 75046

Trending Articles