|
Newcastle, NSW, Australia
Experience: Intermediate
Platform: TradeStation, Build Alpha
Broker: TradeStation
Trading: Futures
Frequency: Daily
Duration: Days
Posts: 36 since Sep 2017
Thanks Given: 65
Thanks Received: 38
|
I have started using MultiCharts 11 (not the .net C# version), looking to automate some of my existing intraday trading strategies for spot forex CFDs. OANDA is the CFD broker.
The plan is to allow the automated trading systems to be running 24 hours per day. However, one of the issues to overcome is the period of 'zombie' hours between approximately the closing of the US session and the opening of the Asian session. During this time, the spreads on the CFDs blow out due to the very low liquidity levels. For example, where the GBPUSD spread may typically be 0.6 pips during liquid periods, it can blow out to say 3 or 4 pips during the illiquid periods, which is very expensive and simply not viable for some intraday trading systems. Therefore, I don't wish to enter a trade at that spread. Note, this is a 'spread-only' account, therefore there is no commission on trade entry or exit.
Unfortunately, it is not simply a case of coding the strategies to operate within defined times of the day. Sometimes the liquidity comes on early, and at other times you are sitting at the screens thinking, "come on guys, where is everyone?". And of course, news announcements or other events can temporarily blow out the spreads as well.
Therefore, I would like to have the MultiCharts PowerLanguage coded in a way so as to disallow any trade entries during these high spreads. The OANDA plugin with MultiCharts does not advise MultiCharts what the spread is at any given time. It would have to be along the lines of MultiCharts sending the trade entry order to OANDA but when the broker receives it, if the spread is greater than say 1.8 pips, then the order is not executed by the broker.
Does such a function exist?
Can anyone share the code which will achieve this?
Also, within the MultiCharts Signal, where should the code be placed?
Your input would be appreciated. Thank you.
|