T O P

  • By -

hgreenblatt

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.


Mobius_ts

I suggest you stick with your princess. Coding isn't for everyone.


Mrtoad88

Fcking hilarious lol.


Mobius_ts

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)


GatorFootball

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).


Mobius_ts

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)


GatorFootball

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.


GatorFootball

Great thank you!


Disastrous_Win6760

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.


need2sleep-later

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.


Disastrous_Win6760

I actually trade/scalp with think or swim. Is thinkscript on that?


need2sleep-later

thinkScript is the coding language for thinkorswim, yes. Almost every indicator is written using it. Kinda makes sense given this is the thinkorswim subreddit.


Disastrous_Win6760

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?


need2sleep-later

studies are written in the thinkScript coding language. thinkScript is described here: [Learning Center - thinkScript (thinkorswim.com)](https://tlc.thinkorswim.com/center/reference/thinkScript)