Manually call addOrder() , not as part of strategy


Category:
0
0

Is there a way to manually (programatically) call addOrder to create orders. I have a script which creates an order based on few variables. Right now I can use it as part of a strategy but I need to run this script (and create orders) on live chart when market reaches a certain area. Those variables can be true all over the place but I want to be true the moment I am ready to press the trigger.
You may ask, why not I just create labels for these variables on the chart, and when price reaches an area I am interested in, press the order from Active Trader. Well the problem with that is twofold.
1) When you create order through Active Trader, the TOS does not show the price entry on chart. I have to look at DOM at which price the order got filled and manually draw the line on chart so that visually I know where the break even point is.
2) Creating orders through addOrder() function visually creates a very nice little arrows and connects the opening and closing orders with a dash line. Visually it makes it very nice. Show Trades option on TOS chart does not show the arrow or connects the opening and closing orders automatically.

Thanks.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on June 20, 2020 4:25 pm
414 views
1
Private answer

New features have been enabled in Thinkorswim which provide fully automated round trip trades. Meaning we can now automate the entry and the exit and we can daisy-chain multiple stages within the order sequence so that multiple round trip trades can be accomplished automatically. In addition to this, we can save these orders as an order templates so they can be reused with very little effort.

Check the following video for the full details:

https://www.hahn-tech.com/thinkorswim-automated-round-trip-trades/

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 18, 2022 1:24 pm
0
Private answer

Sorry but that is completely impossible to do on Thinkorswim. AddOrder() statements can only plot theoretical buys and sells on the chart and it is impossible to use them to create live orders. If it were possible to do so, it would have been included in the following video:

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

If what you have just described in your question is crucial to your trading success then you must move to a trading platform that supports the functionality you are describing. You may find that TradeStation is able to get you most of the way toward your goal.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 20, 2020 5:29 pm
0
Thank you so much Pete. I appreciate your reply.
( at June 20, 2020 5:35 pm)
0
Hi Pete, Can you look at this post: https://usethinkscript.com/threads/addorder-function-schedule-buy-or-close-during-current-bar.1749/#post-21704. It certainly looks like it is possible. ?
( at June 21, 2020 10:25 am)
0
There is nothing in that post that suggests what you have requested is possible. The developers of Thinkorswim have purposefully made it impossible to generate live orders from any Chart Strategy. The AddOrder() function can only be applied to a Chart Strategy. Therefore, by extension, what you have requested is completely impossible and the reason is because the developers of Thinkorswim have made sure that it is completely impossible.
( at June 21, 2020 12:06 pm)
0
I am sorry if I am asking this again as my intention is to hire your services if its possible. If you see this youtube video (https://youtu.be/h9oXCuA4ffU?t=282) , how is the guy able to initiate orders intrabar that show arrows ? (May be I asked a wrong question when I pressed the need for addOrder(). I don't care whether we use addorder or any other means, all I see is this guy in the video exactly able to do that.)
( at June 21, 2020 4:42 pm)
0
There is absolutely nothing in this video that even remotely suggests the theoretical order plotted on the chart was the result of a live trade. Absolutely zero evidence whatsoever. I don't even find any evidence the publisher of the video even claims that is what it's doing. I think you have been sucked into a scam. If you want something like this to display on your charts then all you have to do is move to the TradeStation platform. You don't have to pay anyone a dime to get this functionality on your charts. This is really sad, that folks can be so easily deceived.
( at June 21, 2020 5:46 pm)
0
ok, I take your word. No scams yet, but I thought it would be cool to have something like that. Thanks a lot.
( at June 21, 2020 5:49 pm)
0
What is best way to discuss few things with you. Do you have an email where I can reach ?
( at June 22, 2020 6:32 am)
0
This forum is the best place to "discuss things". If you are interested in hiring me for one our professional services you can get all the details here: https://www.hahn-tech.com/about/
( at June 22, 2020 7:30 am)