int l = mtest.getData();
Oh no, this is cruel simple ! You made the fix - Thanks a lot !
(coding and trading won`t work same time - I'll take a coffee)
Hi Angevoyageur,
i have similar error
if(Pos.PriceCurrent>=(NormalizeDouble(i*Target_Increment+NormalizeDouble(First_Stop+Pos.PriceOpen,_Digits),_Digits)))
I have included the following at the heading
#include <Trade/Trade.mqh>
#include <Trade/SymbolInfo.mqh>
#include <Trade/DealInfo.mqh>
#include <Trade/PositionInfo.mqh>
CTrade Trade;
CDealInfo Deal;
CSymbolInfo Sym;
CPositionInfo Pos;
regards
Problem solved in another post.
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
Hello,
I've tried to use a very simple OOP in MT4 beyond #600. So, nearly everthing works :-)
But with that it`s funny:
File 1 as "Test.mqh" in the include-directory:
--------------------------------
class Test
{
public:
int getData() {return 12;};
};
--------------------------------
File 2 is going to use that simple stuff:
--------------------------------
#include <Test.mqh>
class HuBreak
{
public:
HuBreak();
};
HuBreak::HuBreak()
{
Test mtest;
int l = mtest.getData; // hier is the error pointed "'xy' - struct member undefined"
}
--------------------------------
So, I'm done. What`s missing ??
Thx a lot !