Hello,
i am trying to use marketInfo to get another symbol prices as below:
When i run this EA under a #CH1 window i got the values for #CH1 when i run under a #WH1 windows i got only #WH1 values...
Is possible to get both values ?
i am trying to use marketInfo to get another symbol prices as below:
PHP Code
double bid_m =MarketInfo("#CH1",MODE_BID);
double ask_m =MarketInfo("#CH1",MODE_ASK);
double bid_t =MarketInfo("#WH1",MODE_BID);
double ask_t =MarketInfo("#WH1",MODE_ASK);
Print("bid_m: "+bid_m+" - bid_t: "+bid_t);
Print(MathAbs( bid_m - bid_t )) ;
Print("ask_m: "+ask_m+" - ask_t: "+ask_t);
Print(MathAbs( ask_m - ask_t )) ;
Print("*******");
When i run this EA under a #CH1 window i got the values for #CH1 when i run under a #WH1 windows i got only #WH1 values...
Is possible to get both values ?