| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| bloops/cockups https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=207 |
Page 1 of 1 |
| Author: | stimpy [ Mon Jan 02, 2012 8:29 am ] |
| Post subject: | bloops/cockups |
I was talking about coding today - its a funny old thing. Today I realised i was pulling in the wrong buffers on 2 different indicators and have been running tests on the wrong basis since October - whoops. Don't know why today I should find those errors.... Maybe I need to get a bit more formal in my coding? |
|
| Author: | garyfritz [ Mon Jan 02, 2012 6:40 pm ] |
| Post subject: | Re: bloops/cockups |
It's very easy to toss together some code. Often it even appears to work. But without some care in the design and in checking/verifying the code and the results, you may find it's not doing what you thought it was. Tossed-together code also tends to be extremely hard to understand (even by you, a few weeks from now) or to change. That might be OK if it's a one-off for experimentation purposes. But if you're writing something that you expect to use for any period of time, and especially if you plan to risk money based on it, it's smart to invest some time and care into producing quality and reliable code. Get somebody you trust to review it so you have another set of eyeballs looking for problems. You wouldn't go auto-racing with a rattletrap jalopy you slapped together over the weekend. Why would you risk your money with the MQL equivalent?? |
|
| Author: | SteveHopwood [ Mon Jan 02, 2012 10:00 pm ] |
| Post subject: | Re: bloops/cockups |
Hehe. I am your bloop/cockup expert. You ever need advice on how to make them, come to me. I would gain an instant Doctorate in them if such were available. I am slowly getting better at avoiding them. Here is how:
|
|
| Author: | SteveHopwood [ Mon Jan 02, 2012 10:10 pm ] |
| Post subject: | Re: bloops/cockups |
Another tip, and a huge one is this: remember Google. We both know how enigmatically unhelpful some of the mql4 'help' is. Google often provides enlightenment. To be honest, the only reason I resort to Google is that I do not want to bug our invaluable resource here too much. That invaluable resource? TIG. George is fantastic, and will always help us when we are stuck. I just prefer not to wimp to him too often. |
|
| Author: | stimpy [ Tue Jan 03, 2012 1:55 am ] |
| Post subject: | Re: bloops/cockups |
Yes I am like that... I have a couple of coder friends who help me out ( to their despair - there are 3 guys over the last few years who have probably turned grey from it) - I am an engineer by trade so the move into coding is interesting. Commenting is good - i do put comments on stuff to remind me where I am and what things do - I think testing what you have written is where the crux is - i run a visual test on stuff I do - every tick is just so fricking painful i resort to open bar most times... my only tip after this recent bloop is - print most stuff out on the terminal screen value wise - buffers in one indicator are not necessarily what you may think! I think most of my bloops come from ramming stuff in, i get ideas and try to work with those ideas in the terminal and make them work in the code - last night I stayed up all night and got it working - when doing things like this you are obviously knackered and mistakes will creep in - but its addictive is that problem solving puzzlement by 'eck. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|