| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Making an ea trade on offline chart using OnTick function https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4586 |
Page 1 of 1 |
| Author: | CharlesKiwitrader [ Wed Jan 27, 2016 6:18 am ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
Hi coders, I have some coding experience but need some help as I don't understand how to incorporate the OnTick() into my ea. Basically, I have bought a tick chart indicator from which I can run offline charts as tick charts with whatever no. of ticks etc. Below is the code given to me from the vendor to add into my ea, so I added this, changed the start() function to OnTick() function (where all functions work from). Then tried to get action with EA on offline chart. Unfortunately I can get a trade to be placed IF there is a signal exactly on the bar when ea placed, but after more new candles have been painted as per new ticks etc, I don't get any more trades placed even if the conditions are correct. Also, all works fine on standard online charts in tester. So, to make it obvious, I need help on what do I put in the OnTick() function (keep tick indicator updating information to offline chart, but EA not updating?), and what do i put in the start() function, so EA on offline trades as per signals. As my main function in the past has been start() to run my ea's on offline charts. Also, I can get EA initialised as it trades the first signal if on original bar. OR, I may have totally overlooked something else which may be limiting the EA from actioning all trades!! Hope someone has an idea for help, thanks. Regards, Charles Code: Select all |
|
| Author: | DigitalCrypto [ Tue Feb 09, 2016 1:43 pm ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
At the very least you need to make sure you have DLLs enabled on both the generator chart and the offline chart. FXBlue (fxblue dot come) has a free timeframe generator (tick,range, renko) that works well with most EAs. But keep in mind that a lot of code here wasn't designed to run on offline charts. In particular I was having an issue with spread detection but it could have just been me. Also I don't know if you will get a response to 3rd party code. I could be wrong. Let me know how you make out. - David |
|
| Author: | CharlesKiwitrader [ Tue Feb 09, 2016 8:56 pm ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
Hi David, All sorted .Thanks for your comments. Regards, Charles |
|
| Author: | skinner36 [ Mon Feb 15, 2016 10:05 pm ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
Hi Charles, How did you solve the problem? I am having a similar issue. Thanks, John |
|
| Author: | skinner36 [ Tue Feb 16, 2016 10:39 am ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
For anyone else who is looking for a solution to this problem I used the OnTimer() event John |
|
| Author: | bda2206 [ Sat Dec 04, 2021 5:46 am ] |
| Post subject: | Making an ea trade on offline chart using OnTick function |
just for the record, heres a onTick sender. its an EA that runs in the source (online) window and sends ticks to the ea in the offline window Code: Select all |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|