I noticed one situation that I had not accounted for when I sent you the post - when a line is flat, neither stepping up or down while its corresponding opposite color line steps up ( or down).
Obviously any step up (or down) is greater than its corresponding opposite color flat line. Is it therefore possible to make a slight change in code to account for that, which would be the following which I underlined as "or flat":
if green step up is a bigger distance than its corresponding red step down or flatduring the same time, then create a lime green dot.
if green step down is a bigger distance than its corresponding red step up or flatduring the same time, then create green dot.
if red step up is a bigger distance than its corresponding green step down or flatduring the same time, then create a red dot.
if red step down is a bigger distance than its corresponding green step up or flatduring the same time, then create a maroon dot.
I'm very sorry for this oversight on my part.
If it's not possible to make these proposed code changes, again I want to thank you very much for all your help to me and to others here.
Please take a look at my last post # 6316 on page 632 - reprinted here - about adding the phrase " or flat" to this indi code. I'm very, very sorry for my oversight in not adding that to my original request. It makes a huge difference to the outcome.
Thank you so much for all of your help to me and others here and I hope you have a great weekend.
I am supposing that you are referring to multi time frame mode (that is when it can be flat when interpolation is turned off). This version draws dots during those flat periods too
Hi mrtools / mladen,
would you please be so kind and add interpolations to this Rsx, please ?
thanks in advance
Thank you for such a fast reply to my new request.
I'm very sorry, I must not have made my new request clear.
Yes, it does refer to multi time frame mode with interpolation turned off "false".
But it is slightly diff than your reply - I think you may have placed the "or flat" addition for the 1st part of each condition sentence,
But the "or flat" addition really belongs to the 2nd part of each condition sentence - as shown below.
(1st part of sentence) ----------------- (2nd part of sentence)
if green step up is bigger than its corresponding red step down "or flat" during the same time, then create a lime green dot.
etc. for each of the 4 conditions.
I hope this clears it up.
Thanks once again for all your help.
But it is slightly diff than your reply - I think you may have placed the "or flat" addition for the 1st part of each condition sentence but the "or flat" addition really belongs to the 2nd part of each condition sentence.
When in multi time frame mode and when interpolation is set to off, then the lines are always parallel except for the first bar belonging to the higher time frame bar. Which mean that the conditions are exactly the same as on the first bar (no value is changed in the mean time) and that is why it draws it like that (conditions are determined in the target time frame which means that if it works OK in the regular time frame it will show exactly the same conditions fulfilled in the case when you call a higher time frame too).
As fat as flat : you can check it in normal mode and you are not going to find (or you are going to find it very, very rarely) that two consecutive values are going to be exactly the same (regardless which of the 4 values you check - they are going to behave the same way). So you can exclude the flat in the conditions
Here you go
Interpolation added to all values
have a nice weekend
updated version posted here: https://www.mql5.com/en/forum/general
Thank you so much for explaining it to me that way. Now I understand much more clearly.
It really is a wonderful indicator and extraordinarily helpful to me.
Thanks again for all your help.
Would you please explain to me how to read the Threshold values on the CurrencySlopeStrength indicator?
By definition "threshold" is the lowest limit at which a stimulus is perceptible.
The example being that when the Euro = -0.10 and the USD +0.13 with the Threshold being 0.8, what does that tell me?
Looking forward to hearing from you.
Here you go Interpolation added to all values
Thank you very much, and a nice weekend to you too.
CurrencySlopeStrength calculates a 100 period ATR (average true range)/10. Why does it do that and what was the intention of the author is not something I know. Maybe best to ask "Paul Geirnaerdt" (since he is stated as an author of that indicator) and get some answers from him