The high of the current bar is High[0]
Markus
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?
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 :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?