I have a double value I output it to an alert I see the value it is correct, i also output this same double as a GlobleVariable I get the old value that it was set at both amount appear on the alert at same time when output from the same double, this one has got me, still working to figue this out, please help
robertlotter:
I have a double value I output it to an alert I see the value it is correct, i also output this same double as a GlobleVariable I get the old value that it was set at both amount appear on the alert at same time when output from the same double, this one has got me, still working to figue this out, please help
I don't understand what you mean . . please show code, and/or output to the log file, and/or screeenshots . . . to help explain what you mean.
I have a double value I output it to an alert I see the value it is correct, i also output this same double as a GlobleVariable I get the old value that it was set at both amount appear on the alert at same time when output from the same double, this one has got me, still working to figue this out, please help
RaptorUK:
I don't understand what you mean . . please show code, and/or output to the log file, and/or screeenshots . . . to help explain what you mean.
I don't understand what you mean . . please show code, and/or output to the log file, and/or screeenshots . . . to help explain what you mean.
Files:
testwoutput.txt
1 kb
Play videoPlease edit your post.
For large amounts of code, attach it.
if(ObjectFind("Test") == -1){ ObjectCreate("Test",1,WindowPlace,0,0); // OBJ_HLINE == 1 ObjectSet("Test",OBJPROP_PRICE1,Place1); //Place1 value is 50 ObjectSet("Test",OBJPROP_COLOR,ColourChangeTest); ObjectSet("Test",OBJPROP_STYLE,STYLE_DASH); } double TestLine = ObjectGet("Test",1); // OBJPROP_PRICE1 == 1 Alert(TestLine); // I get value 65 on alert output (was set at 50) double GVtest=GlobalVariableSet("Gtest",TestLine); double Gettest=GlobalVariableGet("Gtest"); Alert(Gettest); // This value is 50 and not 65 ( on a fresh GlobalVariable )
Don't hard code constants, use the enumerations. Why don't you print out GetLastError() like the documentation suggests?- Installed in \program files* on Vista/Win7?
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