I change 25 (if I remember) to 30 but the levels aways appears on the graph
As you try (delete the levels in this box), close MT4 and reopen it
Set them to -10 for example and they will not be visible on the indicator
That is not an error but is made so that you can control levels from parameters
Thanks Mladen, I will try this when I come back at home
Hope you can succeed in the creation of the 4 colors and the histo bars
have a nice day
Multi time frame ptl separate posted at this post : https://www.mql5.com/en/forum/174385/page84
iBarShift and loop for MTF indi Re: Multi Timeframe Indicators
I first tried your ForexSTD website under Multi Time Frame Indicators , but I could type anything until a few minutes ago. So I posted to your FF account too !
Anyway, mobthehop was kind to refer me from SteveHopwoodForex.com, and my MTF problem is listed below:
Only first instance of chart appears, then disappears with change of TF - MQL4 forum
Basically I took the original CSS code for a single TF and am trying to convert to MTF in same window- so as a newbie, have tried to code myself.
Looks like the loop doesn't work in Start(), and the display is only in the first TF and very slow (RefreshRtae problem?) Can you kindly fix this code for me, as you've been helping others?
As far as speed is concerned, it is using multiple symbols and you can not speed it up when it is trying to collect data from all the symbols it should
As far as drawing is concerned and as far as labels and multiple instances are concerned this one more or less solves it (it uses liner interpolation for drawing it - if you want the "step like" look you have to rewrite the indicator to work differently)
PS : to allow multiple instances, set the "almostUniqueIndex" to unique value for each new instance you attach to the same chart
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 MLaden and Mr tools,
About this rsx indicator of Mr tools, do you succed to obtain the 4 colors ?
If it's not possible I will understand and I will close the discussion about it
Perhaps with the arrows that Marco wanted ?
Thanks a lot to you and have a nice day
First a big thanks to your quick response and hard work ! Perhaps the best I've seen among all the forex boards (FF, SteveH, MQL4) where most folks are content to give out 'hints' as opposed to solving a problem like you have been doing on your board. Maybe you should start charging $20-25 per request since obviously this takes time and effort, and the amount is not a burden- it is shared equitably.
Second, I will go over your code even though I am a newbie, but it will give me practice. I ran your upgraded mq4 with Instance 1 and Instance 2 separately, and it gives me an M1 display both times but in a vertical stack.
1. How do I run almostUniqueIndex in a 4 TF loop in the same indi, with different TFs specified?
2. What I really want is to have 4 TF displays side by side (horizontally), not vertically, since vertical displays can always be done running each indi instance in a separate window for each TF specified. My objective is to be able to save vertical space so I can run side-by-side displays of CSS in 4 different TFs in a single window, then run another indi in the chart above or below..
I would very much appreciate your further help here. And any links/references to learning MQL4 efficiently (beyond the dry worded MQL4 official doc online) would also be helpful.
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,