Mql5 open, close - page 2

 
Vladimir Karputov:

How else can you describe it? What is the difference between a bullish bar and a bearish one?

Open is greater or less than close...

 
mmee55 :

Open is greater or less than close...

Excellent! So you need to compare the 'Open' price and the 'Close' price!

//--- signal search
   if(MathAbs(rates[0].open-rates[0].close)>=m_candle_size)
     {
      Buy=(rates[0].open<rates[0].close);
      Sell=(rates[0].open>rates[0].close);
     }
 
Vladimir Karputov:

Excellent! So you need to compare the 'Open' price and the 'Close' price!

The close also needs to be 80points from start... if open is at the start its fine.. but it needs to count 80 from there..

if(MathAbs(rates[0].open=start-rates[0].close)>=m_candle_size)

So rates[0].open  ..equals start - starting point then rates[0].close ... equals the candle size of 80?

 
mmee55 :

The close also needs to be 80points from start... if open is at the start its fine.. but it needs to count 80 from there..

So rates[0].open  ..equals start - starting point then rates[0].close ... equals the candle size of 80?

It all depends only on your imagination. As you think up - so it will be.