Hi, 2 questions:
1) Can an EA successfully run on an offline chart? and
2) What is the code snippet to disable or turn off chart (Offline chart) after the 1st tick of a new candle received and then
re-enable this same chart after a new candle on chart has been opened (the next candle) or to turn the chart back on tick
if order was placed on the same offline chart. The exception rule is, if an order was opened or exists on the chart, then do not turn
chart offline and let EA run on chart.
I have 3 solutions already but none of them work 100%, hopefully someone can share their knowledge on the above.
Thanks
- Yes, but only on MetaTrader v4 as v5 does not have Offline charts (yet).
- An EA running on an Offline Chart works in exactly the same way as on a normal chart, so you you would use the usual "time" technique to identify a new candle/bar instead of reacting on each tick.
- However, the generator of the Offline Chart has to send "tick" events to the Offline chart in order to keep it active and for the EA to work properly (See my Spread Tracker indicator for an example of how that is done).
- Yes
- The offline chart generator.
- Online charts don't turn off. Offline charts shouldn't either. It's the EA that handles when to open.
- Yes, but only on MetaTrader v4 as v5 does not have Offline charts (yet).
- An EA running on an Offline Chart works in exactly the same way as on a normal chart, so you you would use the usual "time" technique to identify a new candle/bar instead of reacting on each tick.
- However, the generator of the Offline Chart has to send "tick" events to the Offline chart in order to keep it active and for the EA to work properly (See my Spread Tracker indicator for an example of how that is done).
- Yes
- The offline chart generator.
- Online charts don't turn off. Offline charts shouldn't either. It's the EA that handles when to open.
Hi guys,
I'm asking if there is a possibility to trade with expert advisor when Soft4Fx program is running? or this function depend to Soft4fx programming (add trades must be manually).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, 2 questions:
1) Can an EA successfully run on an offline chart? and
2) What is the code snippet to disable or turn off chart (Offline chart) after the 1st tick of a new candle received and then
re-enable this same chart after a new candle on chart has been opened (the next candle) or to turn the chart back on tick
if order was placed on the same offline chart. The exception rule is, if an order was opened or exists on the chart, then do not turn
chart offline and let EA run on chart.
I have 3 solutions already but none of them work 100%, hopefully someone can share their knowledge on the above.
Thanks