Coding help... Cyclical indicator - page 18

 
mladen:
Lucmat Here is a centered TMA version : tma_centered_oscillator_binary.mq4

Dear Mladen,

is it possible to create a TMA centered oscillator binary with these option:

- if TMA is above its simple moving average then 1;

- if TMA is below its simple moving average then -1.

Well, the indicator should consider two different TMA!

Thanks in advance.

Lucmat

 
lucmat:
Dear Mladen,

is it possible to create a TMA centered oscillator binary with these option:

- if TMA is above its simple moving average then 1;

- if TMA is below its simple moving average then -1.

Well, the indicator should consider two different TMA!

Thanks in advance.

Lucmat

Lucmat

If you add sma to centered tma, the cross will happen not on current bar, but on some of the past bars almost all the time.

 
mladen:
Lucmat If you add sma to centered tma, the cross will happen not on current bar, but on some of the past bars almost all the time.

Thanks Mladen for your reply!

I know well that centered tma repaints and that the cross will happen and change with the changing of price!

I need this indicator for cycle' study!

Thanks

Lucmat

 
lucmat:
Thanks Mladen for your reply!

I know well that centered tma repaints and that the cross will happen and change with the changing of price!

I need this indicator for cycle' study!

Thanks

Lucmat

Lucmat

The TMA oscillator binary is a combination of slopes of two centered TMAs. How should we apply sma to that combination? Or it should not be a combination of two centered TMAs at all?

 
mladen:
Lucmat The TMA oscillator binary is a combination of slopes of two centered TMAs. How should we apply sma to that combination? Or it should not be a combination of two centered TMAs at all?

Dear Mladen,

sorry but I was not clear !

I'm searching for an indicator that shows the result of these conditions:

We have two different slope of TMA centered oscillator calculated with different lenght, also we have a simple moving average of these two slope of TMA centered oscillator.

So the indicator has to show the result of these conditions

if slope of the first TMA centered oscillator is above its moving average and if slope of second TMA centered oscillator is above its moving average, then 1;

if slope of the first TMA centered oscillator is below its moving average and if slope of second TMA centered oscillator is below its moving average, then 0;

if one of these conditions is not true, then 0,5.

Thanks in advance

Lucmat

 
lucmat:
Dear Mladen,

sorry but I was not clear !

I'm searching for an indicator that shows the result of these conditions:

We have two different slope of TMA centered oscillator calculated with different lenght, also we have a simple moving average of these two slope of TMA centered oscillator.

So the indicator has to show the result of these conditions

if slope of the first TMA centered oscillator is above its moving average and if slope of second TMA centered oscillator is above its moving average, then 1;

if slope of the first TMA centered oscillator is below its moving average and if slope of second TMA centered oscillator is below its moving average, then 0;

if one of these conditions is not true, then 0,5.

Thanks in advance

Lucmat

Hi Mladen and all

may You help me with that indicator?

I re-read my posts about it and I think I was not clear.

I'm searching for an indicator that shows the result of these conditions:

We have two different slopes of TMA centered oscillator calculated with different lenght (TMAslope1 and TMAslope2), also we have a simple moving average of these two slope of TMA centered oscillator (SMA1 and SMA2).

So the indicator has to show the result of these conditions:

if TMAslope1 is above SMA1 and if TMAslope2 is above SMA2, then 1;

if TMAslope1 is below SMA1 and if TMAslope2 is below SMA2, then 0;

if one of these conditions is not true, then 0,5.

I know it is an indicator that recalculates, but I need for some analysis purpose.

Thanks for your support!

Lucmat

 
lucmat:
Hi Mladen and all

may You help me with that indicator?

I re-read my posts about it and I think I was not clear.

I'm searching for an indicator that shows the result of these conditions:

We have two different slopes of TMA centered oscillator calculated with different lenght (TMAslope1 and TMAslope2), also we have a simple moving average of these two slope of TMA centered oscillator (SMA1 and SMA2).

So the indicator has to show the result of these conditions:

if TMAslope1 is above SMA1 and if TMAslope2 is above SMA2, then 1;

if TMAslope1 is below SMA1 and if TMAslope2 is below SMA2, then 0;

if one of these conditions is not true, then 0,5.

I know it is an indicator that recalculates, but I need for some analysis purpose.

Thanks for your support!

Lucmat

Lucmat

Why don't you simply use slopes? Adding signal will not change much (and it will still repaint the same number of bars)

 

Hi Mladen

First of all thanks for your support!

I need the signal of SMA to anticipate the slope's change.

Thanks

Lucmat

 
lucmat:
Re: SMA centered oscillator

Hi Mladen and all

may You help me with that indicator?

I re-read my posts about it and I think I was not clear.

I'm searching for an indicator that shows the result of these conditions:

We have two different slopes of TMA centered oscillator calculated with different lenght (TMAslope1 and TMAslope2), also we have a simple moving average of these two slope of TMA centered oscillator (SMA1 and SMA2).

So the indicator has to show the result of these conditions:

if TMAslope1 is above SMA1 and if TMAslope2 is above SMA2, then 1;

if TMAslope1 is below SMA1 and if TMAslope2 is below SMA2, then 0;

if one of these conditions is not true, then 0,5.

I know it is an indicator that recalculates, but I need for some analysis purpose.

Thanks for your support!

Lucmat

Hi Mladen

may you help me with this indicator?

I know well it is a repainting one, but I need it for analize cycles!

Thanks

Lucmat

 
lucmat:

Hi Mladen

may you help me with this indicator?

I know well it is a repainting one, but I need it for analize cycles!

Thanks

Lucmat

Lucmat

I do not understand

Do you want centered tma and sma to be combined?

Reason: