What is Wrong here?

 

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];
}
 

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;}


 
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.
Reason: