Issuing Trade Entry Orders at Defined Spread Limits - futures io
futures io futures trading



Issuing Trade Entry Orders at Defined Spread Limits


Discussion in EasyLanguage Programming

Updated by ABCTG
    1. trending_up 1,019 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Issuing Trade Entry Orders at Defined Spread Limits

(login for full post details)
  #1 (permalink)
Newcastle, NSW, Australia
 
Experience: Beginner
Platform: MultiCharts, Build Alpha
Broker: Dorman, Interactive Brokers, OANDA
 
Posts: 25 since Sep 2017
Thanks: 51 given, 25 received

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.

Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on futures io?
Need a near crosses scan help for TOS
ThinkOrSwim
Horizontal Line Indicator
Platforms and Indicators
PASPro won't show on a chart for certain combinations of ticks per bar and currencies
NinjaTrader
Stacked Imbalances.
Sierra Chart
Momentum Indicator
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,192 since Apr 2013
Thanks: 385 given, 1,428 received


Hemmo,

once Multicharts issues the order, you can only cancel it again (unless it's filled of course), I am not aware of an additional feature within MC that would allow the order to be only filled at your broker when the spread is less than X.

In realtime you can check the spread before you issue the order and try to cancel placed orders when the spread is greater than X. Take a look at the build in Bid & Ask indicator to see if it correctly displays the bid and ask prices of your broker.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #4 (permalink)
Newcastle, NSW, Australia
 
Experience: Beginner
Platform: MultiCharts, Build Alpha
Broker: Dorman, Interactive Brokers, OANDA
 
Posts: 25 since Sep 2017
Thanks: 51 given, 25 received

Thank you for posting, ABCTG.

OANDA has a plugin for integrated Chart Trading on each chart screen of MultiCharts. Can anything be automated at this level?
For example, if buying: bid price minus the ask price = x pips. Then x must be less than 2.0 pips for the trade entry order to be issued to OANDA.

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #5 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,192 since Apr 2013
Thanks: 385 given, 1,428 received

Hemmo,

the Chart Trader is for manual trading only and you can't access it with code.

However as I wrote in my previous code, you can check the bid ask spread from the code level and only issue the order when the spread matches your criteria.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Issuing Trade Entry Orders at Defined Spread Limits


May 31, 2018


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts