Try watching a variable, such as zz.t.
struct ZPoint { datetime t; double v; int d; int i; ENUM_TIMEFRAMES tf; color cl; }; ZPoint GetP(){ ZPoint t={}; t.t=TimeCurrent(); t.i=11; return t; } int OnInit() { //--- ZPoint zz=GetP(); ZPoint ss; ss.t=zz.t; //ss=zz; ss.t=zz.t; Print(zz.t,"i =",zz.i); //--- return(INIT_SUCCEEDED); }
Improperly formatted code edited by moderator. Please always use the CODE button (Alt-S) when inserting code.
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