Elite indicators :) - page 112

drhouse7
706
drhouse7  
dr.house7:
Is there anyone able to tell me what kind of problem is inside this code ?

This monthly pivot works correctly all months but between december / january has a problem...code is very simple :

if(TimeDay(Time)=26)

{

last_month_close = Close;

this_month_open = Open;

Could you help me Mladen ?

Regards

Anyone have the solution for this ?

Regards

Doc

Mladen Rakic
151718
Mladen Rakic  

Empirical Mode Decomposition

In the March 2010 issue of TASC they do not a have a metatrader versions of John Ehlers and Ric Way indicators, so we have to do it for ourselves .

They are presenting 3 indicators : Bandpass filter (which was already posted somewhere on TSD), Trend Extractor and Empirical Mode Decomposition. This one is the last 2. If you set the DrawTrendExtractorOnlyparameter to trueit will draw the Trend Extractor (first one on the picture) otherwise it will draw the Empirical Mode Decomposition (second one on the picture).

Mladen Rakic
151718
Mladen Rakic  

doc,

On majority of brokers there is no data from January 1st to January 4th, and similar situation is for December 26 to December 31. The way the indicator works, it is having a very small amount of data to choose from

regards

mladen

dr.house7:
Anyone have the solution for this ?

Regards

Doc
drhouse7
706
drhouse7  

Sorry mladen,

are you able to reply me on my issue ? (about monthly pivot)

Many thanks

Regards

Igor Durkin
6814
Igor Durkin  

I've developed something very similar to Renko chart because Renko doesn't work properly in MT4(only offline).

Files:
Mladen Rakic
151718
Mladen Rakic  

doc,

Doc,

I did, but just in case this should fix the problem. The only change is that this:

if(TimeDay(Time)=26)[/php]is replaced with this : [php]if (TimeMonth(Time)!=TimeMonth(Time))

regards

mladen

dr.house7:
Sorry mladen,

are you able to reply me on my issue ? (about monthly pivot)

Many thanks

Regards
drhouse7
706
drhouse7  
mladen:
Doc,

I did, but just in case this should fix the problem. The only change is that this:

if(TimeDay(Time)=26)[/php]is replaced with this : [php]if (TimeMonth(Time)!=TimeMonth(Time))

regards

mladen

Many thanks mladen

i don't know why, but before there wasn't your reply

Best regards

Doc

drhouse7
706
drhouse7  
igorad:
I've developed something very similar to Renko chart because Renko doesn't work properly in MT4(only offline).

Thanks igorad,

it's an amazing indy

Doc

drhouse7
706
drhouse7  
mladen:
doc,

On majority of brokers there is no data from January 1st to January 4th, and similar situation is for December 26 to December 31. The way the indicator works, it is having a very small amount of data to choose from

regards

mladen

Dear mladen,

this is my last problem : weekly pivot...same problem and similar code :

if ( 1 == TimeDayOfWeek(Time) && 1 != TimeDayOfWeek(Time) )

{

last_week_close = Close;

this_week_open = Open;

How could i fix it ? Could you help me ?

Best regards

Doc

Files:
Mladen Rakic
151718
Mladen Rakic  

...

You could use something like this :

if (TimeDayOfWeek(Time<TimeDayOfWeek(Time)

The idea is simple :

Metatrader numerates days in the following way :
0 - Sunday

1 - Monday

....

5 - Friday

6 - Saturday

So if the TimeDayOfWeek() returns smaller number for current bar than for the previous bar, the week has changed
dr.house7:
Dear mladen,

this is my last problem : weekly pivot...same problem and similar code :

if ( 1 == TimeDayOfWeek(Time) && 1 != TimeDayOfWeek(Time) )

{

last_week_close = Close;

this_week_open = Open;

How could i fix it ? Could you help me ?

Best regards

Doc