Download MetaTrader 5
To add comments, please log in or register
Interested in social trading? Read the article!
John OHagan
233
John OHagan 2015.03.29 07:22 

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
32790
Vladimir Karputov 2015.03.29 07:51  
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