| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Question to LineOfZERO Warnings https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3677 |
Page 1 of 1 |
| Author: | genaja [ Fri Jun 13, 2014 8:54 am ] |
| Post subject: | Question to LineOfZERO Warnings |
Hi volks, I have changed the russian texts from "Exp - LineOfZERO.mq4" to english. At compilation I received a warning message, that I can´t find at the http://www.mql5.com/en/docs/constants/e ... ngscompile. What says: declaration of 'OP' hides global declaration at line 11 10.7 LINE OF ZERO.mq4 25 22 Means that, that the code of line 25 overrides the value of the global var? Thanks a lot. Attached the translatet indi. |
|
| Author: | milanese [ Fri Jun 13, 2014 9:19 am ] |
| Post subject: | Question to LineOfZERO Warnings |
you should only one time use the same name for a variable, attached the version that gives no warnings.. Cheers Tommaso |
|
| Author: | genaja [ Fri Jun 13, 2014 10:54 am ] |
| Post subject: | Question to LineOfZERO Warnings |
Hi Tommaso, thanks for your great help! Var names only one times, thats clear. Is the global set for OP only for this line: SetHLine(DarkOrange,"LineofZERO",startZERO(OP)); And after that the value for startZERO(OP) comes out of the function? |
|
| Author: | milanese [ Fri Jun 13, 2014 11:12 am ] |
| Post subject: | Question to LineOfZERO Warnings |
you call the function with giving the value of OP to the new varibale int op, so op has the same value like OP Cheers Tommaso |
|
| Author: | genaja [ Fri Jun 13, 2014 11:40 am ] |
| Post subject: | Question to LineOfZERO Warnings |
o.k. thanks a lot! |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|