| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| General EA problems https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4480 |
Page 1 of 2 |
| Author: | imamushroom [ Tue Nov 03, 2015 7:55 pm ] |
| Post subject: | General EA problems |
Hello, Thank you so much for letting this forum. It seems like it is full of knowledgeable and experienced trader/programmers and I’m so glad I found you all. For a year and a half now my brother in law and I have been on our own battling with all the usual problems like how to detect acutely flat and trending markets etc. only to find that many that these problems have been already solved, here!! Whilst, our ideas closely emulate techniques being used here, they weren’t as elegantly presented. However, there are a few things which I’d like further ideas on how to resolve. Hopefully, someone can point me in the right direction or give me some alternative ideas. These are the things we’ve been struggling with; some are really problems other as due to me losing confidence in my mathematics capability:
imamushroom |
|
| Author: | jjasper7 [ Fri Sep 23, 2016 1:38 am ] |
| Post subject: | General EA problems |
i have an ea, compiled and downloaded to my chart, but it does not seem to start and run. i have a smiley face and green autotrading button. what do i need to do to get it to run? i inserted an alert("init") as the first command, and do not see a nrintout of it. where will it apear? |
|
| Author: | renexxxx [ Fri Sep 23, 2016 3:12 am ] |
| Post subject: | General EA problems |
Show us the code, Jasper. Without this we can keep on guessing forever about what is going on. Rene, |
|
| Author: | jjasper7 [ Fri Sep 23, 2016 4:58 am ] |
| Post subject: | General EA problems |
the program - raw Code: Select all |
|
| Author: | jjasper7 [ Sat Sep 24, 2016 1:17 am ] |
| Post subject: | General EA problems |
the previous post contains a snippit of code from the program 'demo.mq4' (attachment) which i thought i compiled and had the non-start problem i was asking about. the snippit was to show the problem i was not understanding, but please check the demo.mq4 because it is not compiling now and gives no error alerts. thanks for looking. |
|
| Author: | renexxxx [ Sat Sep 24, 2016 5:30 am ] |
| Post subject: | General EA problems |
Jasper, I don't know where to start with the feedback on your demo.mq4. The "program" is a real dog's breakfast. There seem to be three sets of EAs concatenated in the code. The first one doesn't do anything(as the OnTick() function is empty) and the second and third are looking very similar copies of each other (taken from tradingexpert.mq4). You need to start with an understanding of the program structure of an EA: There must be a: Code: Select all Code: Select all Code: Select all Code: Select all You can't post a bunch of code as in demo.mq4, and expect anyone to produce a working program out of it. It is too far from anything that remotely resembles an EA. This is the same as getting some parts at the car wreckers and asking someone to build a ferrari out of it. Good Luck! |
|
| Author: | jjasper7 [ Sat Sep 24, 2016 7:59 am ] |
| Post subject: | General EA problems |
rene, many thanks, your comments are much appreciated. i did not find the documentation i should have read. i was adapting a sample i found, and have not been coding for 4 years (before Empty4 was given the on... functions and wasn't sure if the old format would still work, but assumed it would because they would probably want old programs (built before the change) to keep running. i'll look again for the description of the sections as you defined, and rearrange the code. thanks again, jim |
|
| Author: | andwen [ Tue Apr 10, 2018 11:45 am ] |
| Post subject: | General EA problems |
Cannot set timer. I often make changes to the awesome VER 1R EA. However as a consequence the EA fails to initialise and spits back at me :- 2018.04.10 21:30:55.216 Awesome ver 1R EURNOK,Daily: cannot set timer (15) EURNOK is just the currency chart i am using for the EA. I have reset the timer to all different values without success and cannot find a ref on the SHF forum explaining what it means. Advice really welcomed as it has been happening for a long time..and is stopping me from making alterations to the EA. Often have to remove the EA and start again. Is this normal behaviour?? Cheers |
|
| Author: | tomele [ Tue Apr 10, 2018 2:45 pm ] |
| Post subject: | General EA problems |
Hi. There can be only one timer per expert. Normally you set it in OnInit() and kill it in OnDeinit(). Inbetween, the OnTimer() reacts on the timing events. You are not supposed to repeatedly call EventSetTimer(). Cheers |
|
| Author: | andwen [ Wed Apr 11, 2018 10:41 am ] |
| Post subject: | General EA problems |
Hi Thomas. Not being a programmer I struggle with the logic. Thats why i am here. I have only reset timer to different values hoping it may solve the problem. I have no interest in it but it must be part of the core logic.....There is only one EA on chart. If I remove EA from chart then reload EA it throws that error and wont initialise Just curious as to how i fix it so the EA can load. Cheers |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|