Buy and sell alerts indicating price and time That they were generated, Based on a strategy


0
0

hey Pete,

I am using the AddOrder function in a custom strategy,

so it’s possible to visualize the FloatingPL being changed during the day, as the trades are being opened and closed.
However, thinkorswim does not let you automate the buy and sell orders from the strategy
So I thought in creating a script to generate alerts according to the strategy I’m using

But I needed the alerts not just to make a sound, but tell us the price and time That alert was generated

And also if it is possible to copy those alerts to the transfer area, or to export it out of thinkorswim in some way (So I can automate the trade through another platform),

or maybe to feed a list on thinkorswim that will be changed in real time during the day, This list could be in excel if possible as well

AddOrder(ordertype.BUY_TO_OPEN, plotBubbleLONG, open[-1], tradesize, COLOR.LIME, COLOR.LIME);

AddOrder(ordertype.SELL_TO_CLOSE, plotBubbleLONGexit, open[-1], tradesize, CreateColor(153, 255, 153), CreateColor(153, 255, 153));

 

 

Marked as spam
Posted by (Questions: 7, Answers: 13)
Asked on May 2, 2017 1:59 pm
192 views
0

Have you already viewed our video showing how to convert a Strategy signal into a conditional order and thereby enabling an order to be placed automatically when the Strategy triggers? https://www.hahn-tech.com/thinkorswim-autotrade-almost/
I am not sure the value of exporting the alert signals into excel so the trades can be executed in another platform. Perhaps you can explain why that is preferred over using conditional orders. Seems there would be a very large delay in execution.
But you can convert your strategy signals into a scan. Then you can set the scan to run with alerts enabled. You don’t get an output in a spreadsheet but you do get text/email alerts when the signals are triggered.

( at May 2, 2017 3:05 pm)
0

Yes I re-watched the video one more time
The advantage of running the trades through another platform would be to access commissions from institutional brokers who pay for example only 30 cents for every 100 shares traded. TDameritrade tickets are very expensive active daytraders
The problem of using conditional orders is that I would have to keep recreating them all the time one is executed, since it is not possible for this system to ”regenerate orders”

And yes, I followed your tip and converted the strategy into a scanner, and then I created a watchlist fed by the scanner parameters
But the only option I found for it to alert was ”alert when scan results change” but this way I will not receive the individual alerts of each stock, with symbol, price and time that that alert was generated
So in that way, the only possibility to have that would be to create a scanner/watchlist to track a single stock during the day, So when it alerts, I will know that the condition I’m tracking has been formed In that particular symbol

( at May 2, 2017 7:19 pm)
0

Just to confirm, there is no way that I know of to get time stamps for when alerts are triggered on this platform. And certainly no way to export those to Excel. Have you considered building the strategy on this other platform and having it run autotrading on that? Assuming it supports autotrading.

( at May 2, 2017 7:32 pm)
0

would not necessarily export to excel, any other method of extracting data from TOS would facilitate the process.
And that is the dilemma I find myself now… TOS is very good for certain things but for other things (like alerts with time stamps) other software like TradeIdeas would be the most recommended tool.
And in the end it is very difficult to be able to connect one software to another, in order to unite the best of both platforms
I will start studying the platform MT4 from tomorrow, I saw on some videos that it accepts auto-trading systems, so in that case I would have to convert / translate all the scripts I developed in TOS

( at May 2, 2017 7:48 pm)