Download MetaTrader 5
To add comments, please log in or register
Do you know C++? MQL5 has much in common with it. Just try it yourself!
Vasyl Nosal
18345
Vasyl Nosal 2016.03.06 09:48  
WHRoeder:

The translation appears to be how history gets filled and how indicators must use prev_calculated or IndicatorCounted() in OnCalculate.

eevviill No one ever said to use new bar code in indicators. That is only to be used in EA's OnStart.

Haha...

Will you use bars instaed of time now?

 

Why? Some indicators needs to be updated once at bar.  

ffoorr
996
ffoorr 2016.03.06 10:01  

There is no mode _main for iBands in the documentation


But maybe it work, can you check it ?


Keith Watford
Moderator
8870
Keith Watford 2016.03.06 10:05  
ffoorr:
There is no mode _main for iBands
That's news to me.
Vasyl Nosal
18345
Vasyl Nosal 2016.03.06 10:21  
GumRai:
That's news to me.

1) You must help if you are moderator.

2)  Yes. Reference is bad written(there is no main line in this section).

https://docs.mql4.com/constants/indicatorconstants/lines

Vasyl Nosal
18345
Vasyl Nosal 2016.03.06 10:21  
ffoorr:

There is no mode _main for iBands in the documentation


But maybe it work, can you check it ?


https://docs.mql4.com/indicators/ibands

 [in]  Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_UPPER, 2 - MODE_LOWER).

ffoorr
996
ffoorr 2016.03.06 10:32  
I see thank
ffoorr
996
ffoorr 2016.03.06 11:44  

it work, well, if I do that it work :

 if( ArrayMinimum(BBwidth,size-1,1)  == 2 )
  {
    int ticket = OrderSend(_Symbol, OP_BUY, 0.1, Ask, 3, 0,0, "", 2564 );
  }
/ /12
To add comments, please log in or register