♥ 0 |
Hi Hahn, HOPE ALL IS WELL! Just watched your “Introduction to Strategies” video & I must say all your commentary regarding “you might be thinking” was exactly what I was thinking. LOL. Great teacher! I have a 4x questions that I was hoping you might know regarding ToS Strategies 1.) I noted the Ichimoku Chart Alerts produce different long/short signal if you use a 1min chart w/ 4 day interval as opposed to a 1 day interval. In my strategy, how do I make sure that the signals are using a 4 day interval on the 1min chart & not the 1 day interval. 2.) I’m looking to build a trailing stop system based on target price levels. For instance, if 80% of my target price is hit, then set a trailing stop at 50% of target price. Is this possible? 3.) I’m wondering if ToS Strategies allow multiple stop criteria. For instance, having the trailing stop system mentioned above in place, but also have other criteria. (i.e. If I’m in a long position & receive a short signal, it closes my long & creates an entry to go short.) 4.) Can stops or targets be something that is dynamic/moves after entry? For instance, using the 1 month VWAP on the 1min chart as my target price or if it is above the VWAP using 1 standard deviation of the VWAP as the target price.
THANKS AGAIN, DN
Marked as spam
|
Private answer
Before getting into the answers I will be sure to include a link to the video you referenced so other viewers know exactly what you are referring too: https://www.hahn-tech.com/thinkorswim-strategy-guide/ Responding to item number one. There are certain studies that require more historical data than others. I if you need the strategy to use 4 days of historical data then you must set your chart to 4 days of 1 min candles. Each time to change the time frame or the number of days of historical data the strategy will produce different signals as a normal part of operation. I could spend a great deal of time explaining the how and the why but there are another 3 components to your question so I must be brief. Item number two. This is possible but most often the solution is very complex. I suggest you read my article that goes into more detail on complex stop management in strategies for Thinkorswim: https://www.hahn-tech.com/thinkorswim-strategies-complex-stop-management/ Question number three is basically just a stop and reverse strategy. Most of the built in strategies on the platform perform this very thing. Number four is a solid yes. Dynamic elements in the chart are most often the tools used for triggering entries and exits. In fact I would go so far as to say there are none that use static elements. I mean, what in the world would that even look like? Buy on Mondays and sell on Friday’s. I suppose that might be one example. I can tell by your questions what sort of ideas you have about building custom strategies in TOS. Let me assure you those solutions are extremely complex and very difficult to get working as expected. Marked as spam
|
|||||||||||||||||||||||||||||||||||||||
Private answer
Hey Hahn, Thanks for the reply. Very informative regarding the ToS limitations. In regards to the video I initially watched, I was actually referring to the video “ThinkOrSwim Strategy Guide”: https://www.youtube.com/watch?v=XZRpOMAbTOg 1.) Regarding the Exit Strategy, if I have multiple exits in my code, will ToS pickup whatever condition happens first for the open position & ignore the others? (i.e. having multiple ‘AddOrder(OrderType.SELL_TO_CLOSE, ). 2.) Also, is there a way to backtest further than my chart interval? I’m currently using a 1min 4day chart to generate an ichimoku trading strategy. Does ToS allow a way to backtest further without ruining the signals being generated by the 4day interval? 3.) Is there an easy way on how to turn on Autotrader for the Ichimoku/Parabolic strategy that I have playing in the Chart P&L? 4.) Is there a way to get text alerts on when my strategy enters & exits a trade & at what price??
Marked as spam
|
|||||||||||||||||||||||||||||||||||||||
Private answer
Hey Hahn, Do you have any recommendations regarding other platforms? I would like to automate the following code for /ES & /ZB trading on the 1min 4 day chart. My global settings are max 2x contracts in any direction. Also, after looking at the code attached, is it possible to set up buy & sell text alerts using the code below without generating multiple hypotheticals? If so, can you explain?
Marked as spam
|
|||||||||||||||||||||||||||||||||||||||
Private answer
Here is my code. Marked as spam
|
|||||||||||||||||||||||||||||||||||||||
Private answer
Hey Pete, Just realized the chart interval didn’t affect my strategy. Also, if I wanted to plot & create a scan based on the Ichi/PARSar strategy longs & shorts, how would I convert the autobuy/autoshort into a scans? I’m having trouble writing the multiple conditions found within the autobuys & autoshorts. Marked as spam
|
Please log in to post questions.
The link you provided is the exact same video I linked. The only difference is that I linked to the post on this website that hosts that video.
1. Correct, first entry signal is taken. Any subsequent entry signals are ignored until an exit or a reversal order occurs.
2. If you need to go back further than 4 days of historical data you will need to do so using some other platform.
3. You can not turn on autotrader. Because there is no autotrader in Thinkorswim. To learn more about the limited auto trade functions that are supported be sure to view this video: https://www.hahn-tech.com/thinkorswim-autotrade-almost/
4. You can add alerts to the strategy. But the alerts will be based on the all entries and exits in your algorithm. The alerts will not be perfectly aligned with the theoretical orders displayed by your strategy. See response to question 3.