| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| 10.7/10.9 INDI SOLUTIONS https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3550 |
Page 62 of 72 |
| Author: | milanese [ Mon Jun 09, 2014 8:28 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
Thank you, I just try to help when I can.. Cheers Tommaso |
|
| Author: | genaja [ Thu Jun 12, 2014 9:17 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
Hi volks, my Empty4 Build 646 often crashes with the 10.7 templates. So I checked the used indicators. At the indicator 10.7 INDI DP.mq4 I received a compilation warning: Code: Select all I think that is not the big mistake, but I will fix that. Question: What must I do to terminate that warning message? Thanks a lot! |
|
| Author: | milanese [ Thu Jun 12, 2014 9:21 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
this is a warning not causing any error, but you can attch your indi, if you want the warning removed, I will do it.. Cheers Tommaso |
|
| Author: | genaja [ Thu Jun 12, 2014 9:31 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
Hi Tommaso, I know that this is only a warning. But I think that have to do with the new coding roules of the Empty4 6.x Version. I had an other indi with warnings too. So if I learn what goes wrong, I am able to fix the other warnings too. At the DP Indicator is the problem, that the variable i is global? So the variable must be initialisated inside the init() part? |
|
| Author: | milanese [ Thu Jun 12, 2014 9:36 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
the error means that you use in a function for a new only functionwide intialised variable the same name, as for a global used variable , what indeed should be avoided in clean coding, just rename i in the function.. Cheers Tommaso |
|
| Author: | genaja [ Thu Jun 12, 2014 9:38 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
I made a test: delete the int i; from global initialisation. set into the init() section: Code: Select all The indi works an I receive no warnings. Is that the solution?? |
|
| Author: | milanese [ Thu Jun 12, 2014 9:41 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
yes sure that is here the solution Cheers Tommaso |
|
| Author: | genaja [ Thu Jun 12, 2014 9:44 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
That means, it is alowed to use always i at any loops, but only in separate funktions? Is it wrong to use one times var i at init() section and one time at start() section? |
|
| Author: | milanese [ Thu Jun 12, 2014 9:50 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
no, you can use it in all functions, if you have defined i as a global variable. Cheers Tommaso |
|
| Author: | genaja [ Thu Jun 12, 2014 10:16 am ] |
| Post subject: | 10.7/10.9 INDI SOLUTIONS |
Hmm, I am a little confused. First var i was not alowed as global, now it is possible? Is the global var i only o.k. if the var i was not defined at other functions, only as global? |
|
| All times are UTC | Page 62 of 72 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|