Elite indicators :) - page 198

William Snyder
9496
William Snyder  

non lag Atr

Made a non lag Atr then added it to mtf TMA Bands alerts, quite a difference from regular Atr and non lag version as you can see in this picture the red is non lag and white is regular.

One thing is atr multiplier needs to be set something like .002 ish to .005 ish range to get the bands similar to picture.

altoronto
318
altoronto  

Mladen, I saw you already added that part of MTF, please disregard my previous post about it. Many thanks as always.

Hercs
2970
Hercs  
mladen:
ValeoFX

It simply calculates the distance of the arrow from high or low and takes care of a "visual appearance" of the arrow (so that it looks as if it is drawn at approximately same distance on every symbol and every time frame)

This way of calculating distance for an arrow is good since it does not depend on symbol nor does it depend on time frame. Just an example :

let say that an arrow is drawn at 10 pips distance on 15 minute EURUSD chart and it looks good. Now imagine same 10 pips distance on a weekly chart : the arrow would be "glued" (visually) to bar and it really looks messy.

====================

Good morning Mladen,

Thank you for the explanation; it now makes sense when I see some arrows inside the bar and others further away from it. Only drawback is that in an UP-ward move, the candle sometimes is not shown until one adjust the screen a little.

Appreciate your help.

Mladen Rakic
151208
Mladen Rakic  

Ben

While trying to make a usable indicator of it noticed a single line that I did not pay attention to before (I usually check those but this time I did not) It is line 82 in the code of the original indicator you posted
for(i = 0; i <= limit; i++) { [/php]
It means that it is one more case of "Solar wind" calculation : it calculates from future to past and keeps values as if they were past. My best advice would be to forget about that indicator. It is not worth spending time at it. Making it work as it should is not going to give signals you expect (it will, due to the nature of EMA speed differences, give signals when RSI 50 crosses 50 line up or down - you can try it : just replace that "famous" line with this one :
[php] for(i = limit; i >=0; i--) {
and then compare it to RSI 50 of close. You will get something like this :
As you can see, it more or less, is simply signaling RSI 50 crosses (even with a future peek)

regards

Mladen

bkennedype:
I did notice there was a little repainting. If that could be fixed, that would be great.

Thanks

Ben
Files:
spotter.gif 15 kb
bkennedype
60
bkennedype  

Hi mladen,

Thanks so much for looking at that code. That's good to know...and I'll move on. I was trying to make it do something that is was not intended for anyway.

So here is what I'm doing with RSI and MACD...I'm using both for a determination of trend on H4. RSI (50) and MACD 5-20-55. When they both confirm for two consecutive bars on H4, that's something I'm interested in. Nothing too innovative really...two very commonly used indicators to identify a potential trend change...and on H4 where there is time to react and then pick an entry spot on a lower timeframe.

For example, RSI (50) moves below 50 (or zero if using some type of histogram). This is the main determining factor. Then I look at MACD 5-20-55. If MACD is now below the zero line for two consecutive bars, then that interests me. If MACD oscillates above and belwo zero while RSI (50) is below 50, then each time MACD moves below the zero line for two consecutive bars, that's another signal. MACD or RSI can cross first, it does not matter. What matters is the fact that they are both in agreement for two consecutive bars.

For a long trend, it's simply the reverse.

Here are a few pics of EURUSD since May of this year...so you can have a visual of what I'm talking about. I just noticed that these pics use the wrong MACD setting. The result is not that different that what i use, so I won't bother to update.

I missed a few of the conditions, but I hope you get the idea.

So, ideally the indicator would do this:

On H4 it draws an arrow when the above conditions are met...say a pale blue when alert is in progress but bar not closed...and a bright blue when bar is closed and signal is then fixed.

On smaller TF, it draws the same arrow, but in a different color until the H4 timeframe is closed...maybe with a timer to let you know how long until the H4 bar close. I like the vertical lines also...so an option to use vertical lines instead of arrows, with different colors for long and short trend, is a nice to have option.

And e-mail and alert notifications too.

That seems like so much to ask for....my trading is not bad....but my programming skills are pretty much non-existent. I have no idea if you have the time or inclination to build this for me. If so, I thank you so much in advance.

Cheers

Ben

mladen:
Ben While trying to make a usable indicator of it noticed a single line that I did not pay attention to before (I usually check those but this time I did not) It is line 82 in the code of the original indicator you posted
for(i = 0; i <= limit; i++) { [/php]
It means that it is one more case of "Solar wind" calculation : it calculates from future to past and keeps values as if they were past. My best advice would be to forget about that indicator. It is not worth spending time at it. Making it work as it should is not going to give signals you expect (it will, due to the nature of EMA speed differences, give signals when RSI 50 crosses 50 line up or down - you can try it : just replace that "famous" line with this one :
[php] for(i = limit; i >=0; i--) {
and then compare it to RSI 50 of close. You will get something like this :
As you can see, it more or less, is simply signaling RSI 50 crosses (even with a future peek)

regards

Mladen
Hercs
2970
Hercs  

DTOsc..

Mladen,

Please I need some help with the DTosc signal @ max/min.

I noticed that frequently the max/min levels on M5 template is 90/10 and then I tried to change the original by changing Line 138 and 139 respectively. Also lines 229/230 and 234/235.

(I also changed Line 263 for the ATR from 20 to 10, just to see if the Arrows will be any different, but no such luck.)

BUT although the top arrows appear, the bottom arrows representing the 10-level, don't. Please would you mind helping me to achieve this?

I know you are busy and therefore I take the liberty to add my attempt here for you to see where I made the changes.

Thanking you in advance.

Please guys, do not download this indicator. It does NOT work, YET!

Mladen Rakic
151208
Mladen Rakic  

casaliss

Here you go
regards

Mladen

casaliss:
hi mladen

mtf

interpolate

thanks
Files:
casaliss
109
casaliss  
mladen:
casaliss Here you go
regards Mladen

thanks mladen

Hercs
2970
Hercs  

How do you intend..

casaliss:
thanks mladen

Hi Casaliss,

How do you trade this channel / band? No trades when the price is in between the channel? If so, why bother with all the lines and not just obey the outside lines?

Looking forward to hearing from you as a matter of interest.

Mladen Rakic
151208
Mladen Rakic  

ValeoFX

All you had to do is to change line 138 from this

StoRSI = 90.0*((RSI - LLV)/(HHV - LLV));//100 ********* [/PHP]
to this
[PHP] StoRSI = MathMax(MathMin(100.0*(RSI - LLV)/(HHV - LLV),90),10);//100 *********
Multiplying with 90 instead with 100 just "deformed" the values and changed the maximum not the minimum too, and as far as I see, you want to limit the maximum and the minimum. Attaching the changed one too.

_____________________________

As of ATR : ATR shows an average true range over a certain period. It is a value close to average bar range and I use it since it reflects volatility in points rather good. Then adding or subtracting a half of average bar range to/from high.low is good mean of placing an arrow in order to keep it visually OK. In the case of dtosc I used 3/4 of the range. Changing the period for ATR does not change the position much. Change the multiplier in line 263 to something else and you will see immediate position change

regards

Mladen

ValeoFX:
Mladen,

Please I need some help with the DTosc signal @ max/min.

I noticed that frequently the max/min levels on M5 template is 90/10 and then I tried to change the original by changing Line 138 and 139 respectively. Also lines 229/230 and 234/235.

(I also changed Line 263 for the ATR from 20 to 10, just to see if the Arrows will be any different, but no such luck.)

BUT although the top arrows appear, the bottom arrows representing the 10-level, don't. Please would you mind helping me to achieve this?

I know you are busy and therefore I take the liberty to add my attempt here for you to see where I made the changes.

Thanking you in advance.

Please guys, do not download this indicator. It does NOT work, YET!