| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Why doesnt my EA show any text when put on my normal chart? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5956 |
Page 1 of 1 |
| Author: | chiefkeef [ Sat Nov 07, 2020 6:18 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
Hi, My EA works perfectly on strategy tester, but on the Chart, there is no labels or nothing that comes up. I check ed the error box or journal box, it seems to be all working fine, my EA has a smiley face. Is it because the markets are closed? Here are the message box: 2020.11.07 18:06:03.141 te3 XAUAUD,M1: initialized 2020.11.07 18:06:01.203 Expert te3 XAUAUD,M1: loaded successfully 2020.11.07 18:06:01.197 Expert te3 XAUAUD,M1: removed 2020.11.07 18:06:01.194 te3 XAUAUD,M1: uninit reason 1 |
|
| Author: | tomele [ Sat Nov 07, 2020 8:02 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
This is a bit diificult to tell without seeing your code. But I could imagine that your main loop is located in the OnTick() function, which means it runs only if triggered by a tick. There are no ticks over the weekend, so yes to your answer in this case. If so, you might consider using the OnTimer() function instead, which in most cases is the better way to implement an EA anyway. |
|
| Author: | chiefkeef [ Sat Nov 07, 2020 8:47 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
This made it works thanks. |
|
| Author: | tomele [ Sat Nov 07, 2020 9:09 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
Well done. As a side note, I recommend using my SecureSetTimer() function instead of EventSetTimer(), which can be unreliable under certain conditions on VPS systems. Code: Select all |
|
| Author: | chiefkeef [ Sat Nov 07, 2020 10:12 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
Why doesn't it work on backtesting though? |
|
| Author: | tomele [ Sat Nov 07, 2020 10:54 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
OnTimer() can't work in backtesting, as backtesting doesn't run in realtime. One could get around this very easily by calling OnTimer() from OnTick() like this: Code: Select all Among professionals, Empty4 backtesting is despised. In this forum, it is banned. Do yourself a favour and read this thread over and over until you understand it before doing anything else: viewtopic.php?f=28&t=4020. |
|
| Author: | chiefkeef [ Sun Nov 08, 2020 9:14 am ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
thanks a lot. thankfully this ea im making doesnt send orders just finds divergences. |
|
| Author: | SteveHopwood [ Sun Nov 08, 2020 1:50 pm ] |
| Post subject: | Why doesnt my EA show any text when put on my normal chart? |
I second this. I have used it every time since Thomas first published it. Never fails. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|