Elite indicators :) - page 411

umeshkathuria
30
umeshkathuria  

Mladen,

Thanks a lot for the indicator, it's exactly what I wanted.

Now, I'm trying to incorporate this into my EA (attached), but it is not making any trades, please fix this as well.sto_cci_rsi_ea_new_v1.mq4

Thanks,

Umesh

mladen:
:)

Umesh,

Don't worry about the name. Start worrying if it doesn't happen after 2 bottles of beer

Anyway here is what I cocked up. First of all to explain how does it work. If the time frame is set to current chart time frame it works as before. If you set the time frame to some higher time frame it starts to work as you asked for. In that case it looks for 2 time frame trend matches and whenever they match, a corresponding bar is drawn.

Here is an example with 1 minute and 5 minute indicator up and the signals given by this indicator when its time frame parameter is set to 5 minutes (so it does not work as a classical multi time frame then, but it is combining trends from 2 time frames for entry signals)

PS: turned the interpolation of the higher time frame one off in order to show clear signals when they exactly happen. In run-time, since it is a multi time frame, it might happen that you miss a first signal (when a higher time frame turns trend, since then it will show a signal bar backwards (it is a consequence of multi time frames aligning) , all the other times it will show signal bars timely)

regards

Mladen
Mladen Rakic
151720
Mladen Rakic  

Umesh

Change the StochTF from int to string (so it should be extern string StochTF = "5";) and change these lines

int upx = iCustom(NULL,StochTF,"Sto_CCI_Rsi 2.01","",RsiPer,StochPer,CCIPer,Hot,Smoothing,2,1);

int downx = iCustom(NULL,StochTF,"Sto_CCI_Rsi 2.01","",RsiPer,StochPer,CCIPer,Hot,Smoothing,3,1);[/PHP]

to this

[PHP]int upx = iCustom(NULL,0,"Sto_CCI_Rsi 2.01",StochTF,RsiPer,StochPer,CCIPer,Hot,Smoothing,2,1);

int downx = iCustom(NULL,0,"Sto_CCI_Rsi 2.01",StochTF,RsiPer,StochPer,CCIPer,Hot,Smoothing,3,1);

Remember that the indicator is not a classical multi time frame indicator but the time frame parameter is used to pass the "other" time frame to it (it works with current time frame and the "other" time frame)

regards

Mladen

umeshkathuria:
Mladen,

Thanks a lot for the indicator, it's exactly what I wanted.

Now, I'm trying to incorporate this into my EA (attached), but it is not making any trades, please fix this as well.sto_cci_rsi_ea_new_v1.mq4

Thanks,

Umesh
Mladen Rakic
151720
Mladen Rakic  

Umesh

This is a quick change of your EA. It is taking trades now. Added the changes from previous post, and I removed that "a" from the condition to open order and added one other condition : it allows 1 opened order only. So if there are no opened orders, it will open a new order in the direction of the trend, otherwise it will ignore the new signal (in case if you wonder why it didn't open orders on some of the signals from the example : it is because there was already an opened order). If you wish to allow more than one open order you have to add a function to allow only one opened order per bar (otherwise it will open more than one new order per bar)

Here is how it opened orders in a short back test now :

So, you should revise the conditions in the code in order to make it work completely OK. As I said, avoid using global scope variables since they are going to be reset if you restart the EA and you will fall into an error then.

regards

Mladen

Hercs
2970
Hercs  

Like it a lot

mrtools:
Looked for but don't think i posted this, its day implus channel on jurik its mtf, with arrows and alerts

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

MrTools, THIS seems to be a "gem" in the making!

Question plse............can I replace the alert.wav file with a voice or does it need some sophisticated change to the coding and if so would you mind showing me how to do it as I wish to do the same for the #DTosc.

Thanking you in advance.

umeshkathuria
30
umeshkathuria  

Thanks:)

Mladen

I really appreciate your patience. It's working flawlessly now.

Thanks a lot.

Regards

Umesh

William Snyder
9496
William Snyder  
ValeoFX:
=========================

MrTools, THIS seems to be a "gem" in the making!

Question plse............can I replace the alert.wav file with a voice or does it need some sophisticated change to the coding and if so would you mind showing me how to do it as I wish to do the same for the #DTosc.

Thanking you in advance.

Hi Valeo,

What i have is something i downloaded from the code base awhile back from what i can see from the code might be able to get it to work in an indicator, just haven't figured how to do it yet, but in the rar is 2 voice samples to give you an idea. Now to learn how to use separate voices, maybe an actor or actress voice.

Files:
mtvoice.rar 316 kb
Hercs
2970
Hercs  

Thank you MrTools

mrtools:
Hi Valeo, What i have is something i downloaded from the code base awhile back from what i can see from the code might be able to get it to work in an indicator, just haven't figured how to do it yet, but in the rar is 2 voice samples to give you an idea. Now to learn how to use separate voices, maybe an actor or actress voice.

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

Good afternoon MrTools,

Thank you so much for this information. Much appreciated.

I use the AT&T platform from where I down-load all my voices. Quite a large erray of voices to choose from including French and also the option of male/female voices.

You can find the link here: AT&T Natural Voices� Text-to-Speech Demo

Best wishes.

san4x
324
san4x  
ValeoFX:
=========================

MrTools, THIS seems to be a "gem" in the making!

Totally agree. Very nice work.

Mladen Rakic
151720
Mladen Rakic  

San

Here you go It is rearranged (to make it a bit more "visually clean"), rewritten and some options added. As usual, if you set the smooth parameter to less than or equal to 1, it is not smoothing. Default smoothing is a mild 5 period smoothing


PS: one error was corrected - CAD color was always black regardless of your setting in parameters and NZD color was overwritten by CAD color. It si corrected in the 3.01 version (left the 3 version too for comparison reasons) That is the only change in code - all the rest is the same

regards

Mladen

Snowski:
This indicator was shared publicly (on another forum).

Kind request to add (jurik) smoothing algorithm to this Correlation indicator. I guess we have to be careful not to induce too much lag tho.

Interesting features to watch: see screenshot. Watch EURUSD on USD weakness and vice versa, especially around the 0 line crossings.

Thanks in advance!

San.
patona
66
patona  

Interpolation of "Sto_CCI_Rsi_2.01"

Hello Mladen,

I need to use your "Sto_CCI_Rsi_2.01" indicator from post 4102 in a higher timeframe, but I can`t find a possibility to set the interpolation on off. Maybe I misunderstand your comment and my english is to bad. Can you help please?

Thank you

patona