PositionInfo - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

This simple indicator is used to display in this chart window some relevant information about positions opened on the current chart. Data includes position direction, profit in points, and stop-loss and take-profit distances in points from the current price. If the position is currently in a loss, the text color is red. Otherwise, its color is green.
This indicator is very useful in multi-currency strategies when the use of the toolbox panel is not appropriate.
Indicator input parameters:
//+------------------------------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------------------------------+ Input color UpColor=lime; //Color of profitable position Input color DnColor=red; //Color of unprofitable positions Input color Zr color = gray; //Color of unprofitable positions Input integer font size = 15 ; //font size Input type_font FontType=Font14; //Font type Input ENUM_BASE_CORNER what corner = corner lower left corner ; // position corner Input unit Y_= 1 ; //Vertical position Input unit X_= 5 ; //Horizontal position
Place to get font name.mqh to terminal_directory\MQL5\Include.

Job information
Attachment download
📎 getfontname.mqh (5.09 KB)
📎 positioninfo.mq5 (9.03 KB)
Source: MQL5 #1017
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •