Array for Ask and Bid prices

 

Hi,

I wrote the followng double.


ask_price = MarketInfo("EURUSD",MODE_ASK);


Is there the possibility to use this double to call the previous value of ask prices? Something as price(-1)?

Thank you!

 

No, Ask is available only for current tick.


However, you could store Ask prices for future reference.

 

I want to open a position when the ask price cross the High of the previous 1 hour bar. How can I set this?

Thank you.

 

AJ


if (Ask > High[1]) // Assuming you are on a one hour chart

{

... do stuff

}


Good Luck

-BB-

Reason: