use other charts open price

 

hi guys

how can i  use other charts  h1 open price  in my expert? i guess i should use terminal global variable if yes, how i should set it?

 

No need for a GV. You can get this information directly. Just use iOpen(otherSymbol, otherTimeframe, index)

But remember that if this symbol and timeframe are not already open in a chart then MT may not have the data available and you might need to loop around again until the data is there.

 
Arthur Joseph Mcalister:

No need for a GV. You can get this information directly. Just use iOpen(otherSymbol, otherTimeframe, index)

But remember that if this symbol and timeframe are not already open in a chart then MT may not have the data available and you might need to loop around again until the data is there.

thank u so much

 

but do u know how can i do some thing if my symbol is special symbol, i wrote this but it gives me error like undeclared identifer 

 if(AUDNZD== Symbol())

 
ejmin ejoni:

but do u know how can i do some thing if my symbol is special symbol, i wrote this but it gives me error like undeclared identifer 

 if(AUDNZD== Symbol())

Of course it does, you have not declared a variable and named it AUDUSD.

Symbol() is a string.

Maybe you mean

 if("AUDNZD"== Symbol())
 
Keith Watford:

Of course it does, you have not declared a variable and named it AUDUSD.

Symbol() is a string.

Maybe you mean

oohhhhh thank u so much