Coding help - page 298

 
siaful11:
Hi all, I need a simple addition to the Ea listed below. The buy and sell images example the entries. I have tried numerous logical boolean 'and's , just can't get the entry on the second bband_stop break. Thanks in advance.

siaful11

What exact version of "BBands_Stop_v1_with_alert" are you using?

 

Thanks for replying mladen. Indi attached.

 

Hi mladen,

Please help.

I try to add 3 MA into M-Candles. But it only appears 1 MA on the chart. Please check it (attached M-Candles+3MA.mq4).

Thank you and Regards,

anton

mladen:
anton Here you go : m-candles__ma.mq4
Files:
 
anton1:
Hi mladen,

Please help.

I try to add 3 MA into M-Candles. But it only appears 1 MA on the chart. Please check it (attached M-Candles+3MA.mq4).

Thank you and Regards,

anton

anton

Try it out now : m-candles__3ma_1.mq4

Files:
 

Hi mladen,

It works well.

I am happy.

Thank you very much.

Best Regards,

anton

mladen:
anton Try it out now : m-candles__3ma_1.mq4
 
mladen:
siaful11 What exact version of "BBands_Stop_v1_with_alert" are you using?

Hi mladen,

Did you get a chance to check the code? Any help would be greatly appreciated.

 
siaful11:
Hi mladen, Did you get a chance to check the code? Any help would be greatly appreciated.

siaful11

I need to know exactly which version of "BBands_Stop_v1_with_alert" are you using. Otherwise I ca not know if it is called properly and if the problem does not start already at the first step of calling that indicator

 

Dear Coders Guru...

I am trying to make an indicator of mine to update ONCE for every 5 minutes... could someone please check the below codes and rectify if it please it seem to me like it is not working....

datetime lastCalculation_Time=0;

bool New_Time = false;

int start()

if(((TimeCurrent()- lastCalculation_Time)>PERIOD_M5*60)) return(true);

else return(false);

void CalculationTime() // Funct. detecting ..

{ // .. a new bar

lastCalculation_Time=0; // Time for calculation

New_Time=false; // No new bar

if(lastCalculation_Time!=Time[0]) // Compare time

{

lastCalculation_Time=Time[0]; // Now time is so

New_Time=true; // A new bar detected

}

}

THANK YOU FOR YOUR TIME AND ASSISTANT.....

yours truly

AZRUL...

 
12BPRO:
Dear Coders Guru...

I am trying to make an indicator of mine to update ONCE for every 5 minutes... could someone please check the below codes and rectify if it please it seem to me like it is not working....

datetime lastCalculation_Time=0;

bool New_Time = false;

int start()

if(((TimeCurrent()- lastCalculation_Time)>PERIOD_M5*60)) return(true);

else return(false);

void CalculationTime() // Funct. detecting ..

{ // .. a new bar

lastCalculation_Time=0; // Time for calculation

New_Time=false; // No new bar

if(lastCalculation_Time!=Time[0]) // Compare time

{

lastCalculation_Time=Time[0]; // Now time is so

New_Time=true; // A new bar detected

}

}

THANK YOU FOR YOUR TIME AND ASSISTANT.....

yours truly

AZRUL...

AZRUL

Place this :

static datetime lastUpdated = 0; if ((TimeCurrent()-lastUpdated) < PERIOD_M5*60) return(0); lastUpdated=TimeCurrent();

as the first line of start procedure and the rest of the code of the start procedure will be executed with at least 5 minute delay between two consecutive executions

 
mladen:
siaful11 I need to know exactly which version of "BBands_Stop_v1_with_alert" are you using. Otherwise I ca not know if it is called properly and if the problem does not start already at the first step of calling that indicator

Hi Mladen,

I have attached the indicator that the Ea was coded with. This will work.

Reason: