dbbM01(mSymbol,mTFM01,mBBPeriod,mBBDeviationOut,mBBDeviationInn); // CAUSING ERROR ...
You are calling a constructor, not a function. You can only call a constructor in the owning class's constructor. Compare to:
CStrategyBase(string pSymbol,double pRiskPerTrade = 1.00) : CInputBase(pSymbol,pRiskPerTrade) { }
William Roeder #:
You are calling a constructor, not a function. You can only call a constructor in the owning class's constructor. Compare to:
Hi William
Your reply seems too much technical :), however when I tried creating at pointer variable *dbb and define dbb = new CiDBB(mSymbol,mTFM01,mBBPeriod,mBBDeviationOut,mBBDeviationInn); it worked.
Thanks for your time and efforts.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I am getting compilation error as below:
',' - unexpected token StrategyBase.mqh 51 16
'mSymbol' - some operator expected StrategyBase.mqh 51 9
expression has no effect StrategyBase.mqh 51 2
',' - unexpected token StrategyBase.mqh 51 23
',' - unexpected token StrategyBase.mqh 51 33
expression has no effect StrategyBase.mqh 51 24
',' - unexpected token StrategyBase.mqh 51 49
expression has no effect StrategyBase.mqh 51 34
')' - unexpected token StrategyBase.mqh 51 65
expression has no effect StrategyBase.mqh 51 50
6 errors, 4 warnings 7 5
The constructor in CiDBB is as follows:
Any clues what I am doing wrong ?