Spread Indicator

 

Hi

Could some one please tell me how to code the following.

I want to place the maximum spread ABOVE each bar.

I can easily find the spread

double x=MarketInfo(Symbol(),MODE_SPREAD);

but don't know how to place it above the bar

Many thanks

 
jdohagan :

Hi

Could some one please tell me how to code the following.

I want to place the maximum spread ABOVE each bar.

I can easily find the spread

double x=MarketInfo( Symbol (),MODE_SPREAD);

but don't know how to place it above the bar

Many thanks

See an example OBJ_TEXT:
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TEXT
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TEXT
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TEXT - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: