Download MetaTrader 5

Spread Indicator

To add comments, please log in or register
John OHagan
530
John OHagan  

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

Vladimir Karputov
Moderator
99505
Vladimir Karputov  
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
To add comments, please log in or register