How do I check through opened price?
I tried the following, but doesn't work.



If (illness)....



For(bcnt=btotal-1; bcnt gt;= 0; bcnt--)
{
OrderSelect(bcnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()lt;=OP_SELL OrderSymbol()==Symbol())
{
if(OrderType()==OP_BUY)
{
if((Ask gt; OrderOpenPrice() (Point*OrderDist)) || (Ask lt; OrderOpenPrice() - (Point*OrderDist)))
{
Buy();


....



//------------------------------