Elite indicators :) - page 188

traderduke
531
traderduke  

Adding MTF

mLaden,

I tried Converting Nonlag to MTF, it verified but failed to work. I left my Programming , use the term loosely, in as text.

Can you show me the error of my ways?

Ray

Files:
Mladen Rakic
151105
Mladen Rakic  

Ray

It is simpler to show the whole process of making a single file MTF from a "normal" indicator on a simple code.

So, here is a simplified code of non lag moving average and a mtf version of it with comments and explanations what and why is done at some part of the code. Using this indicator simply because it is much, much simpler to see in it exactly what is done (just take a look at the start procedure of the "non mtf" version)

int start()

{

int counted_bars=IndicatorCounted();

int i,limit;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,Bars-1);

for (i=limit; i>=0; i--) NonLagMaBuffer = iNoLagMa(iMA(NULL,0,1,0,MODE_SMA,Price,i),Length,alphas,0,i);

return(0);

}

Also, the code of it is suitable to calculate values of anything. All you have to change is the first parameter in calling the iNoLagMa()function ( theiMA(NULL,0,1,0,MODE_SMA,Price,i) part which is used for fast price extraction in the above code)

_________________________

PS: in these color changes are left out for sake of simplicity. Non repainting color changes need to be coded in a different way and needs at least 2 more buffers so I decided to keep it as simple as possible. Instead made a third indicator that has a multi color non repainting mode (MultiColorparameter) and alerts (since alerts in mtf also have to be taken care of at a specific way) - the "nrp" version does all those things (like this example : it is a 1 hour NonLagMA on a 15 minute chart)
regards

mladen

newtrader100
105
newtrader100  

Good stuff mladen. Thanks.

Would an alert on current timeframe (say 15m) only when two or more other timeframes (say 30m,1h, and 4h) are also trending - sloping - in same direction be doable?

...it would filter and cut down on weaker signals coming from basically any of the great indicators you most recently provided.

Regards.

PS: nonlagma nrp's below;

traderduke
531
traderduke  

Unbelievable

mladen,

If this were a car, I asked for help to fix a dent in the door and you refinisihed and repainted the entire car.

Some how "Thank You" seems so insignificant. I wish you a good weekend.

Ray

newtrader100
105
newtrader100  

...And the alerts that would have ideally been filtered out:

mikepearce
47
mikepearce  

hi mladen,

Histo version would be appreciated...( Nonlagma Nrp)

thank you...

Files:
Mladen Rakic
151105
Mladen Rakic  

Mike

Here you go
regards

Mladen

mike pearce:
hi mladen,

Histo version would be appreciated...( Nonlagma Nrp)

thank you...
casaliss
109
casaliss  

Post 1865

Hi Mladen

Post 1865

???

mikepearce
47
mikepearce  

thank you,Mladen

William Snyder
9497
William Snyder  

non lag TTM bars

Thanks Mladen for the simple non lag ma, simple is understatement Another one in the non lag theme!