Is there an indicator that can label bars? Like you input a value, say 100, and the last 100 bars from the current bar are labelled 1-100. It would be really helpful for analyzing past trades/past market conditions. Can someone show me how to code this? I don't have much programming experience.
- Download MetaTrader 5 build 1730 with new trader features
- MetaEditor - Professional editor of trading applications
- MQL5 Wizard: Development of trading robots for MetaTrader 5
1mathboy1:
Is there an indicator that can label bars? Like you input a value, say 100, and the last 100 bars from the current bar are labelled 1-100. It would be really helpful for analyzing past trades/past market conditions. Can someone show me how to code this? I don't have much programming experience.
Is there an indicator that can label bars? Like you input a value, say 100, and the last 100 bars from the current bar are labelled 1-100. It would be really helpful for analyzing past trades/past market conditions. Can someone show me how to code this? I don't have much programming experience.
![Documentation on MQL5: Array Functions / ArraySetAsSeries Documentation on MQL5: Array Functions / ArraySetAsSeries](/i/community/logo_mql5_small.png)
Documentation on MQL5: Array Functions / ArraySetAsSeries
- www.mql5.com
Array Functions / ArraySetAsSeries - Reference on algorithmic/automated trading language for MetaTrader 5
Don't know of one off the top of my head - have you searched the code base and market?
It's actually not that hard to code yourself. You could easily adapt the code found in the MQL documentation to do this: https://www.mql5.com/en/docs/constants/objectconstants/enum_object/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](/i/community/logo_mql5_small.png)
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
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register