Coding help - page 419

 
mladen:
Try it out now (but I am not sure that the change made will help - in any case it cleans one possible problem when the file is left open after the loop if the condition is met - in which case the same file could be opened over and over without being closed) : test_1.mq4

Thank you very much Mladen!

The Indicator started to register values in the EA.

Only now discovered that the indicator only works on the daily chart.

Tried instead of a string «vrema=Time;»,enter «vrema=iTime(NULL,PERIOD_D1,i);», does not help.

Files:
1_18.jpg  71 kb
 
QuantF:
Thank you very much Mladen!

The Indicator started to register values in the EA.

Only now discovered that the indicator only works on the daily chart.

Tried instead of a string «vrema=Time;»,enter «vrema=iTime(NULL,PERIOD_D1,i);», does not help.

QuantF

In the file.csv there are only dates - no hours or minutes

 
mladen:
QuantF In the file.csv there are only dates - no hours or minutes

Onlythe date, not hours and minutes.

 
mladen:
carbonmimetic Try out this version : sq9_sub_hourly_price_levels_v2.01.mq4

thank you very much another time

 
QuantF:
Onlythe date, not hours and minutes.

QuantF

You have this condition : if(vrema==Dat_DtTm)

Since data in the file.csv is only dates, it will be equal only for bars that are equal to the start of the day (since the value of Dat_DtTm is containing start of the day). So the deciding is what is contained in Dat_DtTm

 
mrtools:
Jeeves added the user adjusted adxLevel alerts.

Many thanks mrtools, I had all but given up on getting a reply. Have a great New Year

 

hi mladen,

sorry for programming illiteracy but i am trying to help myself. i modified the attached indicator to make it draw horizontal line on the price main window when the macd equals zero but failed could you please correct the code and tell me about the error

your kind help is appreciated

Files:
 
mladen:
QuantF

You have this condition : if(vrema==Dat_DtTm)

Since data in the file.csv is only dates, it will be equal only for bars that are equal to the start of the day (since the value of Dat_DtTm is containing start of the day). So the deciding is what is contained in Dat_DtTm

Originally tried to calculate the date on the current chart.

Then from that date to copy the first day bar and get it time.

It is not clear why does not work?

File added minutes and hours.

m_start=i;

m_count=1;

d1_count=1;

datetime m_tm[];

datetime d1_tm[];

ArraySetAsSeries(m_tm,true);

ArraySetAsSeries(d1_tm,true);

CopyTime(_Symbol,PERIOD_CURRENT,m_start,m_count,m_tm);

//--- define the time bar for the current timeframe

CopyTime(_Symbol,PERIOD_D1,m_tm[0],d1_count,d1_tm);//the opening day of the bar

**************************************

if(d1_tm[0]==Dat_DtTm)//The coincidence in time of the cycle and tables

Files:
file_1.rar  8 kb
test_3.mq4  4 kb
 
waimaj:
hi mladen,

sorry for programming illiteracy but i am trying to help myself. i modified the attached indicator to make it draw horizontal line on the price main window when the macd equals zero but failed could you please correct the code and tell me about the error

your kind help is appreciated

Try out this version : custom_macd_1.mq4

Files:
 
carbonmimetic:
thank you very much another time

Well Mladen,

another little step.....I would like merge the following indicators:

I would like that in SQ9 Sub Hourly Price Levels_v2.01 appear only support levels using zigzag like in !Gann_SQ9_90...but only from one point the last one (in !Gann_SQ9_90 appear support-resistance level starting from 2 different point) .....all other inputs remain the same.

thank's in advance

Reason: