AddOrder(): Does this dang thing work? - futures io
futures io futures trading



AddOrder(): Does this dang thing work?


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one WattMan with 3 posts (0 thanks)
    2. looks_two aventeren with 2 posts (0 thanks)
    3. looks_3 Massive l with 1 posts (1 thanks)
    4. looks_4 epete with 1 posts (0 thanks)
    1. trending_up 11,555 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 8 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

AddOrder(): Does this dang thing work?

(login for full post details)
  #1 (permalink)
Bellingham, WA USA
 
Experience: Beginner
Platform: NT
Broker: Mirus (Broker), Continuum (Data), Dorman (Clearing)
Trading: Futures
 
aventeren's Avatar
 
Posts: 202 since Mar 2013
Thanks: 428 given, 201 received

Howdy all--

I was curious if anyone has had any luck using the AddOrder() thinkScript within a custom study or strategy. The AddOrder() is discussed on the TOS platform here: https://demo.thinkorswim.com/manual/dark/thinkscript/reference/Functions/Others/AddOrder.html.

I built a fairly simply custom study that contained an indicator that I am using to enter and exits my trades. I'm finding that being quick is important (I'm trading the 6E), so I thought at a minimum I would use AddOrder() to enter the trade, and then I would manually place my bracket stops once the position was entered into. However, I was unsuccessful in my attempt to get AddOrder() to work.

I tried chatting with TOS this AM about this, and they basically went into vapor lock and just left the chat, which left me perplexed.

A little research on TOS's website resulted in this: Using Strategies ? Resource Center, in which the key phrase is "Note that currently you cannot send real orders using strategies."

I then did a little more research, and I found that you can use "Alerts" for order entry and exits, but you can only use time-based aggregation periods, and given that I am use Range Charts and not Time Charts, I don't think using the Alerts tab will work for me.

Is it actually true that you cannot place orders using TOS thinkScript and that the only way to enter or exit an order is by manually clicking through the order process?

My goal is to paper trade trade entries and exits based on a simple indicator moving into and out of a condition (ie, on or off). Is anyone currently successfully using "algorithmic" order entry and exits based on a user defined study or strategy?

Thanks!

Started this thread Reply With Quote

Journal Challenge February 2021 results:
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(173 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(120 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(35 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
Dubai, UAE
 
Experience: Intermediate
Platform: TOS, TradeStation
Broker: OX, TradeStation
Trading: Stocks & Basic Options
 
RedK's Avatar
 
Posts: 171 since May 2012
Thanks: 44 given, 143 received

I believe automated trading was stripped away from ToS a while back.. you can use the AddOrder() to backtest your custom strategies (based on the built-in studies or custom studies that you create or download and add to your ToS) .. the way it works in summary, you modify the study to create the entry/exits "orders" (best way is to look at the existing strategies in ToS and modify your studies similarly), then couple the studies into a strategy (have an entry and an exit pair), then right-click and generate the back-testing report and see how your strategy works ...

I did this few times and it does work.. but don't use it all that frequently .. does this help?
K,

Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to RedK for this post:
 
(login for full post details)
  #3 (permalink)
Bellingham, WA USA
 
Experience: Beginner
Platform: NT
Broker: Mirus (Broker), Continuum (Data), Dorman (Clearing)
Trading: Futures
 
aventeren's Avatar
 
Posts: 202 since Mar 2013
Thanks: 428 given, 201 received



RedK View Post
I believe automated trading was stripped away from ToS a while back.. you can use the AddOrder() to backtest your custom strategies (based on the built-in studies or custom studies that you create or download and add to your ToS) .. the way it works in summary, you modify the study to create the entry/exits "orders" (best way is to look at the existing strategies in ToS and modify your studies similarly), then couple the studies into a strategy (have an entry and an exit pair), then right-click and generate the back-testing report and see how your strategy works ...

I did this few times and it does work.. but don't use it all that frequently .. does this help?
K,

Bummer; just as I suspected. Thanks for your quick reply, RedK!

Have a great weekend!

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
Legendary Market Wizard
Portland, OR
 
Experience: None
 
Massive l's Avatar
 
Posts: 1,976 since Mar 2011
Thanks: 1,630 given, 3,989 received

@aventeren Yep and 3 years later still nothing :/ I have some great strategies and it would be nice to have them automatically triggered through 6 instruments. Manual trading should be a thing of the past. What are you using today?

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Massive l for this post:
 
(login for full post details)
  #5 (permalink)
New Brunswick, NJ, USA
 
Experience: Intermediate
Platform: ThinkOrSwim
Trading: Stocks (currently), Futures & Options (starting), Forex (maybe someday)
 
Posts: 9 since Dec 2014
Thanks: 19 given, 0 received

Is there any way to get trades automatically triggered using ToS?

Reply With Quote
 
(login for full post details)
  #6 (permalink)
New Brunswick, NJ, USA
 
Experience: Intermediate
Platform: ThinkOrSwim
Trading: Stocks (currently), Futures & Options (starting), Forex (maybe someday)
 
Posts: 9 since Dec 2014
Thanks: 19 given, 0 received


WattMan View Post
Is there any way to get trades automatically triggered using ToS?

I did continue my research and found some helpful pointers on the net (I am yet to see how they can apply to my case). One of them comes from a ToS centered alternate website. In a nutshell, within ToS users can create Conditional Orders which at creation point are GTC (unless you want to re-create the same order daily!) and IMHO be be made part of simple OCO or larger Bracket orders (disclaimer: all this is pending testing!). Why I liked this particular pointer was even though there is programming, ToS offers a UI driven Condition Wizard which can be seamlessly be used with the thinkScript Editor (they are both side by side) and all you need to do is copy the final thinkScript code generated to add as part of the condition definition. When such orders are placed through ToS, the submitted order status shows "Wait Cond." and before accepting such order ToS will display a couple of warnings and disclaimers around such orders. Till I saw this website and video, I was not aware such a capability resided within ToS which seems pretty powerful to me as of my current understanding...

For anyone interested, please note that as of writing this post, I am fairly convinced on the approach and framework, but have done no testing whatsoever. I do intend to post an update when I have conclusive observations to share with this group.

Admin / BigMike - I am unsure if I can post external website or YouTube video links here - please let me know

Till then interested users feel free to PM me. I typically get to this forum late evenings EST timezone...

Reply With Quote
 
(login for full post details)
  #7 (permalink)
New Brunswick, NJ, USA
 
Experience: Intermediate
Platform: ThinkOrSwim
Trading: Stocks (currently), Futures & Options (starting), Forex (maybe someday)
 
Posts: 9 since Dec 2014
Thanks: 19 given, 0 received


WattMan View Post

Admin / BigMike - I am unsure if I can post external website or YouTube video links here - please let me know

Till then interested users feel free to PM me. I typically get to this forum late evenings EST timezone...

Since I didn't any objections from anyone, here is the link I was referring to in my response above. My testing is still pending but hope this link & video helps:

https://www.hahn-tech.com/thinkorswim-autotrade-almost/

Reply With Quote
 
(login for full post details)
  #8 (permalink)
Sarasota, Florida
 
Experience: Intermediate
Platform: TOS, IB, TS
Broker: TD Ameritrade, IB, TS
Trading: ES, NQ, YM, RTY
 
Posts: 22 since Jan 2018
Thanks: 26 given, 12 received

I had spent a lot of time checking this out, and saw the link on you tube as well. It is a good video to learn from, but keep in mind the risks of that, which are easy to find if you paper trade whatever you are trying to do.

With execution always happening on the next bar, hard to get much done intraday. And if you use GTC for overnight orders then you will actually have high slippage due to no liquidity.

The choices for order sequencing, triggering are very limited, and the whole area of order entry is very small to monitor orders on several securities.

Good luck.

Reply With Quote
 
(login for full post details)
  #9 (permalink)
Blaine, MN / USA
 
 
Posts: 1 since Mar 2015
Thanks: 0 given, 0 received

Were you ever able to resolve sending a real order using AddOrder?

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > AddOrder(): Does this dang thing work?


Last Updated on November 30, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 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