Multi Timeframe Indicators - page 657

Mladen Rakic
154061
Mladen Rakic  
qwex:
hi mladen,

unfortunately, your indicator TVI_v2 mtf nmc (from here Multi Timeframe Indicators - Page 637) doesn't work correctly in the tester of MT4 build 625. At the same time it works correctly in real trading.

I don't undestand the problem, the code seems to me correct. With the previous build 610 everything was fine.

Could u fix the bug, please? I suspect that the problem is in arrays but who knows ...

The "bug" is in the way how metatrader calculates data when you back test and you want to see higher time frame. For example you start your visual back test on 1 minute chart from 01.01.2013 and you wish to see 5 minute data. That requires some 13.000 5 minute bars. If your number of max bars on chart is less than that number, you will not get any result from the indicator (since metatrader limits the "other time frame" to that max bars on chart)

Set the max bars on chart to bigger number and make sure that you have enough data of higher time frame in history

_________________________

In the old version also make sure that you set the BarCount to some big number. Attaching a newer version that is much simpler and which does the work a bit more efficiently. But when properly set, both work in the visual back test too.

Here is an example : 1 minute visual back test, upper is the new, lower is the old with BarCount set to 15.000 max bars on chart in the options set to 50.000 and starting data is 01.01.2013. As you can see both are visible and work OK

Files:
tvi.gif 56 kb
Mladen Rakic
154061
Mladen Rakic  
suat:
sir mladen, this indicator repaint or not? thanks

suat

Polynomial regression (i-regr) recalculates/repaints. It is its nature

Mladen Rakic
154061
Mladen Rakic  

Updated Svinozavr indicator : svinozavr_mtf_nmc.mq4

Originally it was posted here : https://www.mql5.com/en/forum/173574/page321

Files:
secretcode
898
secretcode  

Dear Mladen

Would you please add mtf option in attached indicator

Thanks in advance

secretcode

qwex
8
qwex  
mladen:
The "bug" is in the way how metatrader calculates data when you back test and you want to see higher time frame. For example you start your visual back test on 1 minute chart from 01.01.2013 and you wish to see 5 minute data. That requires some 13.000 5 minute bars. If your number of max bars on chart is less than that number, you will not get any result from the indicator (since metatrader limits the "other time frame" to that max bars on chart)

Set the max bars on chart to bigger number and make sure that you have enough data of higher time frame in history

_________________________

In the old version also make sure that you set the BarCount to some big number. Attaching a newer version that is much simpler and which does the work a bit more efficiently. But when properly set, both work in the visual back test too.

Here is an example : 1 minute visual back test, upper is the new, lower is the old with BarCount set to 15.000 max bars on chart in the options set to 50.000 and starting data is 01.01.2013. As you can see both are visible and work OK

mladen,

thank u very much for the new version and comments!

As I expected in the new version u don't use array functions ArrayResize, ArraySetAsSeries, iMAOnArray and deleted SyncExtraBuffers (shift extra buffers on new bar). The code looks now much more easier for understanding.

I tried to create something similar with the original version TVI_v2, but there was a mistake in my code I didn't understand. Also in your version I use the parameter TimeFrame="current time frame", so the mistakes with the lack of data in history are excluded.

Anyways, two questions for me left:

1) why under the same conditions the indicator (TVI_v2 mtf nmc with the parameter TimeFrame="current time frame") worked correctly in the 610 build, and the problem appeared in the new build 625?

2) why the author of the original version TVI_v2 used array functions ArrayResize, ArraySetAsSeries, iMAOnArray if the code could have made much more easier than it is now?

Mladen Rakic
154061
Mladen Rakic  

Ichimoku version from this post https://www.mql5.com/en/forum/173574/page322 updated and some errors in the code corrected (now all elements can easily be hidden or un-hidden) : ichimoku_mtf_nmc.mq4

Original was posted here : https://www.mql5.com/en/forum/173574/page322

Files:
pipsavenue
10
pipsavenue  

Dear mladen,

can you or any one out there please help add multi time frame option to the attached indicator. Or point me in the right direction if there is a similar one already available. It should be compatible with the new mt4.

Mladen Rakic
154061
Mladen Rakic  
secretcode:
Dear Mladen

Would you please add mtf option in attached indicator

Thanks in advance

secretcode

secretcode

Here is the multi time frame version

Happy trading

Aleksei Bratuschak
220
Aleksei Bratuschak  

Google Translate) г-н Младен попросить вас, чтобы восстановить дисплей) с уважением Алекс.

Files:
secretcode
898
secretcode  
mladen:
secretcode

Here is the multi time frame version

Happy trading

Nice! Thank you very much Mladen for mtf indicator

Sincerely

secretcode