im trying to close an order by:
if(OrdersTotal()==1)
{
OrderClose(16384,1,Ask,3,Red);
}
But what I want to say is something like:
if( "the current price is greater then RectanglePriceMax" && OrdersTotal()==1)
{
OrderClose(16384,1,Ask,3,Red);
}
How do i say that? "The current price is greater then <my variable>" ?
if(OrdersTotal()==1)
{
OrderClose(16384,1,Ask,3,Red);
}
But what I want to say is something like:
if( "the current price is greater then RectanglePriceMax" && OrdersTotal()==1)
{
OrderClose(16384,1,Ask,3,Red);
}
How do i say that? "The current price is greater then <my variable>" ?
Know your indicators!