• Join us

Requests & Ideas - page 99

Mladen Rakic
162718
Mladen Rakic  

spotforex

Here you go It turned out to be an interesting problem (I mean alerting in this indicator - to alert only when it is necessary and not on a simple time frames change or initial start, for example). It is made now to alert as you asked for. The code is rewritten in order to avoid some issues that might happen, to add some necessary stuff, add some options that did not exist and to simplify it as much as it can be. Alerts have the usual options (you can choose alerts on current (still opened) or previous (already closed) bar) as well the rest of the stuff usual for alerts

regards

Mladen

spotforex:
Hi Mladen,

Would you be able to add the following alerts to this indicator:

1. When there is a change in currency based on the indicator's highest value. That is, alert when there is a new 'strong' currency. And if possible, include the currency with the lowest ('weakest') value at that moment.

2. When there is a change in currency based on the indicator's lowest value. That is, there is a new 'weak' currency. And if possible, include the currency with the highest ('strongest') value at that moment.

I would also appreciate any improvements to the code where you see fit.

Thanks again for all the great works you've done.

-spotforex
Files:
camisa
587
camisa  
Pip:
Dear Admin, Senior Members, and Fellow Trader, I would like to take the opportunity to thank each and everyone of you for contributing to this thread and for the fantastic effort made in creating the semi-holy grail (IMHO) indicator called G Browser. With your awesome contribution and willingness to share your knowledge and expertise a fantastic piece of work was created.

Thois G Browser still redraws the past, correct?

PS: what other file is needed for G Browser nrp to work?

Abdalla Doleh
1346
Abdalla Doleh  
camisa:
Thois G Browser still redraws the past, correct? PS: what other file is needed for G Browser nrp to work?

Hello Camisa,

Thank you for your question, G Browser does not, technically, repaint; it recalculates and readjust based on new information from the market. I know that most would view this as "useless" feature since you can not take reliable signals for trading. But, I would have to contend that this adaptive feature of G Browser is what makes it so powerful if you use it correctly and in conjunction with other tools.

To your success,

Pip

brax64
158
brax64  

Klinger oscillator revised..

Hi all,

I did a little mod of the Klinger oscillator coded by Mladen; for the fans of volume (like I am...) now we can have 4 ways to plot this indi; lines or histogram both in two flavor: with MA signal or not.

Have a look at the picture to see which "flavor" do you prefer...

Enjoy

mladen:
According to that definition and some other definitions I have found, it would be kvo2.

Attaching a version that I have and which is solving a case when current and previous price are equal (if and when it happens, it is the case which they describe at that link as the "In our research, we found no statement as to how to treat the case") as a continuation of previous "trend", so that even that case is solved in more or less acceptable manner (at least I hope so)

PS: added an option to allow the second prevailing calculation mode too - when high-low range is used in calculation. They are giving very similar results except that when using range in calculation it is somewhat smoother and it seems that it is avoiding some false signals. The "range" calculation is used in tradestation code and since tradestation people are very long in this game it seems that they can be trusted (left the regular mode to, just in case ). Here is a comparison of the "using range" calculation (upper) and a "regular" (lower)

regards

Mladen
Jimmy
723
Jimmy  

d9 Particle Oscillator

mladen,

I was wondering is there any indicator in metatrader similar to d9 Particle Oscillator in ninjatrader.

If not, would it be possible to code something for mq4?

I have attached the C code for your reference.

d9particle.txt

Files:
kokleongch
51
kokleongch  
Pip:
Brilliant!

Hi Senior members,

I would like to know a bit of the setting of the indi especially the info3:cycle list settings, which is set to false. i set the usetopcycles to 2 which mean it uses the 1st 2 cycles. so with cycle list settings to true, cycle1=1 means it starts at 1, cycle2=2 means the 2nd top cycle starts at 2 ? Appreciate if you could explain to me a bit of these settings.

Thanks

KL

Mladen Rakic
162718
Mladen Rakic  

kokleongch

If you use the cycle list (so if it is set to true) then it will use up to 5 cycles that you choose, so if any cycle in the cycle1, cycle2, ... cycle5 is set to > 0, it will be used. In that case you do not have to use consecutive cycles. For example you cane use 1,3,5th cycle if you set cycle1 to 1, cycle2 to 3 and cycle3 to 5

kokleongch:
Hi Senior members,

I would like to know a bit of the setting of the indi especially the info3:cycle list settings, which is set to false. i set the usetopcycles to 2 which mean it uses the 1st 2 cycles. so with cycle list settings to true, cycle1=1 means it starts at 1, cycle2=2 means the 2nd top cycle starts at 2 ? Appreciate if you could explain to me a bit of these settings.

Thanks

KL
kokleongch
51
kokleongch  
mladen:
kokleongch If you use the cycle list (so if it is set to true) then it will use up to 5 cycles that you choose, so if any cycle in the cycle1, cycle2, ... cycle5 is set to > 0, it will be used. In that case you do not have to use consecutive cycles. For example you cane use 1,3,5th cycle if you set cycle1 to 1, cycle2 to 3 and cycle3 to 5

thanks for the quick reply mladen.

kokleongch
51
kokleongch  
mladen:
kokleongch If you use the cycle list (so if it is set to true) then it will use up to 5 cycles that you choose, so if any cycle in the cycle1, cycle2, ... cycle5 is set to > 0, it will be used. In that case you do not have to use consecutive cycles. For example you cane use 1,3,5th cycle if you set cycle1 to 1, cycle2 to 3 and cycle3 to 5

hi mladen,

another question is how to do a phase out/in by a certain degree ? let say i would like to check cycle1 and the other cycle1 but phase forward by 45degree ?

thanks

KL

Mladen Rakic
162718
Mladen Rakic  

It would need a change in the code in order to achieve that, and it could be done only for "sub-cycles" (sub-waves, it can not be done for a composite values, it only can be done for an underlying sine or cosine waves that are forming the composite value). So, in that case, every sub-wave would be altered then and only then they would reconstruct the composite.

There is a comment line in Goertzel browser that is saying "calculate waves". After that you have 2 lines that go like this :
if (useCosine)

goeWorkPast[k] = amplitude * MathCos(phase+sign*k*2.0*pi/cycle);

else goeWorkPast[k] = amplitude * MathSin(phase+sign*k*2.0*pi/cycle);

[/PHP]

to achieve what you want, you would need to change those lines to following
[PHP]if (useCosine)

goeWorkPast[k] = amplitude * MathCos(phase+sign*k*2.0*pi/cycle+pi/4.0);

else goeWorkPast[k] = amplitude * MathSin(phase+sign*k*2.0*pi/cycle+pi/4.0);

and that would alter every sub-wave's phase by +45 degrees (metatrader uses radians, so pi/4)