Oh, as reminder to my first post, and my identification of code errors:
The single TF per instance for CSS indi is already available as the original CSS. See below, with the updated CSS v 1.0.8 which supposedly runs faster- Topic 2: Currency Strength Slope.
I was attempting to modify it for MTF in same window, and then ran into problems explained in my first post that you had replied.
stevehopwoodforex.com • View topic - Baluda Indicators
This is the horizontal, same window MTF display I want. Unluckily hanover uses his RS calculation; I need CSS calculation as above.
Recent Strength indicator @ Forex Factory (first chart, 2nd window.)
So, in both your and my code, the j loop in Start() for effecting 4 TF iterations in the same instance (same window) iterates only once.
Only the first TF is displayed, i.e., the chart and text table for M1.
The IndexShift and horizontalOffset iterations are used to shift the chart and table for each following TF, i.e., M5, M15 and M30. The iBarShift is used because MQL4 doc says it need be used for MTF plots in the same window (without iBarShift there is again only the first M1 TF display.) Bars are formed differently in each TF and have to be identified with either iBarShift or ArrayCopy.
Maybe the problem is the return(0) at the end of the j loop in Start(). But when I comment out return(0) out of the j loop, the MT4 hangs, without any display. Moving return(0) or return() below the loop gives me parenthesis errors.
I hope that the loop and shifts and iBarShift code are OK otherwise. There must be a simple error here I cannot locate as a newbie ...
Have a nice weekend,
Why don't you post the original code (without the changes that should have made it multi time frame)?
supply & demand zones indicator MTF
I found the attached indicator for supply & demand zones.
It works fine also during backtest but only for the current timefrrame.
If you choose a higher timeframe it works fine live but it doesn't paint area on backtest.
Could you modify it in order to work properly (paint higher timeframes areas on current period ) during backtest ?
Thanks in advance
How do you test it for higher time frame?
As far as I see that is not a multi time frame indicator
I've posted the wrong indicator.
This is the correct one :
Here attached is the code that I tried to modify for MTF, for which I made above error remarks.
Hopefully I have been able to better communicate this time.
When testing higher time frame in back test, metatrader "knows" the future values already (it is using real time frame data not the simulated higher time frame data). And since that indicator is made to work on current bar, values (objects) are drawn in the future relative to the tested period.
See the example : object are there but you don't see them since they are way in the "simulated future" instead in the "simulated present"
PS: used the attached indicator for testing
Dear Mladen and/or MrTools,
Is it possible to programm arrows into the chart as written below? It would be a convinient and grateful solution for using this indicator drawing the arrows directly into the chart.
Really thanks a lot. Regards Marco320
Could you programm arrows in the RSX indicator. (e.g. screenshot attached)
It should be nice to see the arrow after the first bar closed. (or as quickly after confirmation of the colour changing)
Thx a lot for your cooperation and a nice weekend.
Hi everybody, Hi Mladen,
Is it possible to auto-adjust the interval of your indicator to STO+/-x (x=10 by default for example), because as you see, when you have a graph on higher frame, the 2 lines are very close and it's difficult to interpret
Thanks a lot for this and have a nice day
That is not my indicator (I just made some changes - the original authour is visible in the code and as far as I remeber it was sohocool that made that particular version)
If you wish it to display the way you show it on the picture, delete the following two lines from the source code :
Thanks a lot Mladen, I try it immediately