Hi everyone it's over a month that i'm working at an EA. The original idea was fairly simple, but it took a while for me to figure out how to code it.
Even if it may sound unusual, i'm trying to do a program that will actually analyze the market..that said i'm having a few things that are making me worried about this.
I am not an expert coder, in fact i would say i'm a newbie, and my EA is getting more and more complex.
What really worries me is that, the rules that i think may help to determine what is happening in the market in realtime, are getting more and more, and i'm afraid that soon enough, the rest of the code to be written will make my EA a chaotic behemoth o rules in wich any minor change will need a disproportionate change to be obtained.
I'm not asking for coding help, just would like to know if there are any general sets of rules to prevent your code to become too chaotic.
So far i have tried to have most of the calculation to be made into various functions, wich then return globals. The globals then instruct the code need to execute/change/close orders. About this another problem may be that my globals are becoming just too many, and i hear that this may be a problem, even if i dont really know why.
Thanks for the attention, and for any help that may come.
ps. If anyone is interested here is a set of backtests i did few days ago, wich led me to think that my work on this EA is going in the right direction.
http://www.forexfactory.com/showthre...19#post2791119
Even if it may sound unusual, i'm trying to do a program that will actually analyze the market..that said i'm having a few things that are making me worried about this.
I am not an expert coder, in fact i would say i'm a newbie, and my EA is getting more and more complex.
What really worries me is that, the rules that i think may help to determine what is happening in the market in realtime, are getting more and more, and i'm afraid that soon enough, the rest of the code to be written will make my EA a chaotic behemoth o rules in wich any minor change will need a disproportionate change to be obtained.
I'm not asking for coding help, just would like to know if there are any general sets of rules to prevent your code to become too chaotic.
So far i have tried to have most of the calculation to be made into various functions, wich then return globals. The globals then instruct the code need to execute/change/close orders. About this another problem may be that my globals are becoming just too many, and i hear that this may be a problem, even if i dont really know why.
Thanks for the attention, and for any help that may come.
ps. If anyone is interested here is a set of backtests i did few days ago, wich led me to think that my work on this EA is going in the right direction.
http://www.forexfactory.com/showthre...19#post2791119