Download MetaTrader 5
To add comments, please log in or register
Write articles, help other developers and make money
kiwiforce007
83
kiwiforce007 2014.01.06 17:34 

Hi there

I'm trying to asign these two values to the to the static double after the condition is meet .

The Maxvoluume is a extern double, but it don't run block 2 when it should block 1 should return or break go back to the start function start .

so what do i need to change.


cheers

kiwiforce


static double Price_h=0;

static double Price_l=0;

if (Volume[1]<Maxvoluume)
{Print("less than max");return}
else

{Print("more than max");
Price_h=High[1];
Price_l=Low[1];
}
kiwiforce007
83
kiwiforce007 2014.01.06 17:57  

I try this no luck .

Got me stumped may be the volume the prolem do i need an array for that ?.


static double Price_h=0;
static double Price_l=0;

if (Volume[1]>Maxvoluume){Print("more than max");
Price_h=High[1];
Price_l=Low[1];}
else {Print("less than max");return;}


whroeder1
13619
whroeder1 2014.01.06 18:30  
kiwiforce: so what do i need to change.

  1. Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. How should we know - there are no mind readers here. Print your variable values and find out WHY.
/
To add comments, please log in or register