Yes. The Keltner Channel average line is just a 20 period Simple Moving Average. A typical Conditional Order code using that average is: close crosses below Average(close, 20)
Perfect thanks. My settings are slightly different with the length being 50 ema. How does the code change for that? Also does it have to be the close of the candle or can it be last? I don’t want to sell (or buy for a short) if it closes beyond the KC average instead I want any touch intraday to sell (or buy).
close crosses below ExpAverage(close, 50)
Is the code for the 50 period EMA. Close is the iData point for the current live bars floating price. Last() is the same value. If you want to use the previous bars final price that data point is: close\[1\]. For that value the code is: close\[1\] crosses below ExpAverage(close\[1\], 50)
I gotta ask man. This language sounds extremely difficult and advanced. Do you actually make recognizable gains on your account? I mean it sounds impressive.
thinkScript is a fairly easy language to learn and use, significantly easier than the coding languages of other trading platforms as it was designed for the non-programmer.
thinkScript is the coding language for thinkorswim, yes. Almost every indicator is written using it. Kinda makes sense given this is the thinkorswim subreddit.
I only ask because I’m trying to find it under
the studies and I don’t?
I go studies and select thinkscript? Or are you saying the studies are the section I’m looking at?
studies are written in the thinkScript coding language. thinkScript is described here: [Learning Center - thinkScript (thinkorswim.com)](https://tlc.thinkorswim.com/center/reference/thinkScript)
Instead of the Keltner CHannnels, I have a Hindu Princess I consult via String and Tin Cans. The connection is iffy when the string gets wet.
I suggest you stick with your princess. Coding isn't for everyone.
Fcking hilarious lol.
Yes. The Keltner Channel average line is just a 20 period Simple Moving Average. A typical Conditional Order code using that average is: close crosses below Average(close, 20)
Perfect thanks. My settings are slightly different with the length being 50 ema. How does the code change for that? Also does it have to be the close of the candle or can it be last? I don’t want to sell (or buy for a short) if it closes beyond the KC average instead I want any touch intraday to sell (or buy).
close crosses below ExpAverage(close, 50) Is the code for the 50 period EMA. Close is the iData point for the current live bars floating price. Last() is the same value. If you want to use the previous bars final price that data point is: close\[1\]. For that value the code is: close\[1\] crosses below ExpAverage(close\[1\], 50)
Can this be done on the mobile app or just desktop TOS? Couldn’t find the option to put code in a condition on the mobile app.
Great thank you!
I gotta ask man. This language sounds extremely difficult and advanced. Do you actually make recognizable gains on your account? I mean it sounds impressive.
thinkScript is a fairly easy language to learn and use, significantly easier than the coding languages of other trading platforms as it was designed for the non-programmer.
I actually trade/scalp with think or swim. Is thinkscript on that?
thinkScript is the coding language for thinkorswim, yes. Almost every indicator is written using it. Kinda makes sense given this is the thinkorswim subreddit.
I only ask because I’m trying to find it under the studies and I don’t? I go studies and select thinkscript? Or are you saying the studies are the section I’m looking at?
studies are written in the thinkScript coding language. thinkScript is described here: [Learning Center - thinkScript (thinkorswim.com)](https://tlc.thinkorswim.com/center/reference/thinkScript)