Download MetaTrader 5
To add comments, please log in or register
How to use MQL5.community messages editor? Find out in the article!
daniel
62
daniel 2014.08.10 17:45  
conditions like this are not working

if(previous_buy==EMPTY_VALUE && current_buy!=EMPTY_VALUE)
{
   // Slope change Up, you just enter a BUY AREA
}
if(previous_sell==EMPTY_VALUE && current_sell!=EMPTY_VALUE)
{
   // Slope change Down, you just enter a SELL AREA
}

////////////////////////////////////////////////////////////////////they are working like this:

if(previous_buy<current_buy)
{
   // Slope change Up, you just enter a BUY AREA
}
if(previous_sell>current_sell)
{
   // Slope change Down, you just enter a SELL AREA
}

Is this still correct? it seems both working good this way...
/ /12
To add comments, please log in or register