Basic Question on the current high

 
Hi guys,

I'm just beginning with metatrader and i have a basic question :

I just want to place a buy order if the current high is higher than a number. But this code doesnt work:

if(High[]>1.2)
{
blablabla
}

Can anyone help me?
 
The high of the current bar is High[0]



Markus
 
Hi guys,

I'm just beginning with metatrader and i have a basic question :

I just want to place a buy order if the current high is higher than a number. But this code doesnt work:

if(High[]>1.2)
{
blablabla
}

Can anyone help me?


The High[] must have a bar number shift 0 for current bar High[0]
 
Thanks folks :)