I am trying to learn how to program a strategy for ThinkorSwim but I am either not very suited to programming or just plain dumb.
I am trying to enter a trade long if the current price is 5 ticks above an SMA but have had issues trying to work out the code. I have a Fast SMA Envelope on my chart with a third slow SMA. If the price is five ticks above the upper SMA and the envelope is above the slow SMA then enter long with a trailing stop 2 ticks below the lower Fast SMA in the envelope. And vice versa for a short entry. It is a simple trending strategy that I want to test on a number of different contracts but having issue with the automated trade entry semantics.
Hello there, has anyone given you a hand yet. I am going to take a look at what you are trying to setup today and will get back to you. I need the practice programming thinkscript and this seems like a fairly straightforward place to jump in. I'll post back with what I have for you to look at.
Thanks for looking at this for me. I must admit that I have been tied up with study for college since I posted and haven't yet found a good ThinkScript tutorial course. I think the strategy is simple, it should be just for trending instruments. I appreciate any help you can provide. If you need more information on the strategy I can pm you a short document on it.
Just to make sure we are using the same terminology could you email me the strategy doc that you mentioned. The programming Is the part I understand I am still learning some of the aspects of how the studies and strategies mathematical formulas are setup. I appreciate you letting me help with this. I started working with thinkscript a few months ago and really enjoy this part of it as much as the trading. It's not going to be difficult to set this up just about anyway you want it and add a few gizmos for fine tuning and customization. And it gives me some good practice in an area of TS that I haven't dealt with yet. My email is dbjergins at outlook dot com. This stupid forum wouldn't let me post my email so I had to type it goofy like that....sorry. I'll get right on it and try to have you something to check out in just a little bit.
thanks again and I hope school is going well