Foenkelito:
Hey! First of all thanks for taking some time out of your day to read my question.
So I am playing around with classes and I keep on stumbling across the same problem:
When I define lets say tpLong in this class:
And try to use this identifier in another class:
It keeps giving me the error "tpLong undeclared identifier"
Thanks again for taking the time,
Have a great rest of your day.
Add the tpLong in the members of the class
public: double tpLong; CNbpExpert(void); ~CNbpExpert(void); bool Init(void); protected: bool LongOpened(void); --------------- bool CNbpExpert::Init(void) { //--- Take Profit for long tpLong = TakeProfitOpenL; }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hey! First of all thanks for taking some time out of your day to read my question.
So I am playing around with classes and I keep on stumbling across the same problem:
When I define lets say tpLong in this class:
And try to use this identifier in another class:
It keeps giving me the error "tpLong undeclared identifier"
Thanks again for taking the time,
Have a great rest of your day.