Someone? any comments?
bool showInMN = true; bool showInW1 = true; bool showInD1 = true; bool showInH4 = true; bool showInH1 = true; bool showInM15 = true; bool showInM5 = true; bool showInM1 = true;Unused variables. Implement them.
MT5.Boy:
How do I change this code or what should I add to have the option to set MTF? (I would like to set e.g. On time plane H1, if W1/D1/H4/H1/M15/M5/M1 can be set. )
Can someone rewrite it like that, thanks in advance.
This is maybe the wrong approach?
- Would you like to have a different timeframe than the one of the chart - if no change the tf of the chart.
- In an EA you get the values of the indicator by the function iCustom() which you can call with the tf you need - look it up.

Documentation on MQL5: Technical Indicators / iCustom
- www.mql5.com
iCustom - Technical Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Carl Schreiber #:
This is maybe the wrong approach?
- Would you like to have a different timeframe than the one of the chart - if no change the tf of the chart.
- In an EA you get the values of the indicator by the function iCustom() which you can call with the tf you need - look it up.
I am sorry, I am a beginner and can not progress further with this.
I would like to write an indicator in MQL5 that, based on one of the timeframes I specify in the input data, calculates the closing value of each candle and marks it with a black arrow symbol 159 wherever the closing value occurs. Can someone write the complete working code for this!

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
How do I change this code or what should I add to have the option to set MTF? (I would like to set e.g. On time plane H1, if W1/D1/H4/H1/M15/M5/M1 can be set. )
Can someone rewrite it like that, thanks in advance.