[Deleted]  

effective ratio

mladen:
Try out this one

It should be a 2-in-1. If you set showRatio to true it will do what the ratio version was doing. If you choose If you set showRatio to false it will do what effective indicator was doing. If this version is OK then alerts are easy

PS: you can not show all 3 values (due to lack of drawing buffers, you can not show all the moving averages of all the values) If showTotal is set to true, it will show total. If showTotal is set to false and showSmall is set to true small will be shown. Otherwise if showLarge is set to true the large will be shown

mladen - many thanks - the logic of the two in one indicator is good. I haven't been through the maths, but one thing I have noticed straight off. If you look at the large volume and small volume (and the same for the effective ratio - i.e. small ratio vs large ratio) the lines/values are the same (they are however different to the total - as they should be). Not sure why this would be?

Mladen Rakic
196819
Mladen Rakic  

...

greatworth

Don't know. I kept the logic of your 8.2 version and checked now : it does the same. Check this code block if it is what you had in mind :
if (MathAbs(tmp4) < avgVol)

if (showSmall) Buffer2 += tmp4;

else if (showLarge) Buffer3 += tmp4;
greatworth:
mladen - many thanks - the logic of the two in one indicator is good. I haven't been through the maths, but one thing I have noticed straight off. If you look at the large volume and small volume (and the same for the effective ratio - i.e. small ratio vs large ratio) the lines/values are the same (they are however different to the total - as they should be). Not sure why this would be?
aliza_2084
24
aliza_2084  

hi

please add alert to this indicator

thanks

Files:
bars.mq4 5 kb
Mladen Rakic
196819
Mladen Rakic  

...

rikiolivier

Just an idea : why don't you use the simplest solution : since stochastic is ranging from 0 to 100 you can easily place as many stochastic indicators in one sub-window as you wish. For that purpose you can use the indicator you already mentioned (from this post : https://www.mql5.com/en/forum/180648/page243 ) and that way you can have an unlimited number of combinations. For example, the 7,3,3 - 14,3,3 and 21,3,3 combination would look like this in that case :

So, all you have to do is to drag the stochastic)s) that already has an alert into the same window and you can have as many of them as you wish (you would not depend on drawing buffers limitation)

rikiolivier:
Hello fellow traders and Great programmers of this forum. I am in need of a stochastic indicator which has 3 stochastic settings in it so that I can set for overbought and oversold with popup and email alerts. Not sure if this exists or not but can't seem to find it and unfortunately I am not a programmer. The settings that I would like to have would be 7,3,3 - 14,3,3 and 21,3,3 with overbought being 90 and oversold being 10. Maybe someone could kindly make this indi for me if they have the time. I use this on the MT4 but with the stochastics overlayed on top of each other but I would have to periodically check my screen for trade possibilities. So please it would be very helpful and appreciated. Thank you. riki
Files:
Mladen Rakic
196819
Mladen Rakic  

aliza_2084

A suggestion : If you have the original source code, post that. I doubt that someone add alerts to a decompiled code

aliza_2084:
hi

please add alert to this indicator

thanks
biddick
339
biddick  

Woov Mladen !

Truly you reflect the character on your avatar trying to help everyone.What is the character called on your avatar ?

Mladen Rakic
196819
Mladen Rakic  

...

Mr Bean (according to my younger daughter) :):)

biddick:
... What is the character called on your avatar ?
RIKI OLIVIER SR
259
RIKI OLIVIER SR  
mladen:
rikiolivier

Just an idea : why don't you use the simplest solution : since stochastic is ranging from 0 to 100 you can easily place as many stochastic indicators in one sub-window as you wish. For that purpose you can use the indicator you already mentioned (from this post : https://www.mql5.com/en/forum/180648/page243 ) and that way you can have an unlimited number of combinations. For example, the 7,3,3 - 14,3,3 and 21,3,3 combination would look like this in that case :

So, all you have to do is to drag the stochastic)s) that already has an alert into the same window and you can have as many of them as you wish (you would not depend on drawing buffers limitation)

mr mladen

Thank you for your suggestion. I do currently have that setup and it does works fine for me. My intentions though is to have this configuration combined into one indicator with alerts when all three settings reach the overbought and oversold levels so that it takes away the visual of having to sit in front of the pc and waiting for a signal. The current setup does not afford me that opportunity and I would also be able to place trades during the day while at work if I were to receive any signals via my cell phone. So this is my dilema at this time. Thank you for taking the time to respond. You are doing great work here and we all appreciate you.

riki

[Deleted]  

effective ratio

mladen:
greatworth Don't know. I kept the logic of your 8.2 version and checked now : it does the same. Check this code block if it is what you had in mind :
if (MathAbs(tmp4) < avgVol)

if (showSmall) Buffer2 += tmp4;

else if (showLarge) Buffer3 += tmp4;

mladen - i tried changing the code to buffer2 and 3 from 7 and 8 as above, but that produced no results - so maybe you meant something else. Perhaps it might be easier to put into a revised indicator. What I would say is that the original code may not be 100% correct in its logic (which is why i came to you!!!).

To clarify my last statement, I have looked at your code for the effective ratio (that I am presuming is buffer 6 (total ratio),7(small ratio) and 8(large ratio), but I am not convinced that we previously had the right equation. The effective ratio should be:

positive effective volume - negative effective volume for a period of time (say 30 bars)

and then you divide this by the total volume (i.e. volume in metatrader) for that period of time.

For further clarification, positive effective volume refers to the total of those bars where there was firstly an effective volume (as there is only an effective volume where the volume has moved the price) and where that volume was was more than 0. Negative effective volume - vice versa. This effective volume can then be split into total, large or small

If this doesn't match what the indicator should be showing - then it would need to be adjusted.

many thanks again from all of us hoping to use this!

Mladen Rakic
196819
Mladen Rakic  

...

greatworth

Try this version out. It has that part simplified and it is very easy now to add any code or to alter it as you wish in it. Also, I find that now the "large" is giving rather interesting values (see the example). Check it out and I think you will find it easy to adjust the code now to any idea you have about it