Convert from Thinkscript to Easylanguage - futures io
futures io



Convert from Thinkscript to Easylanguage


Discussion in EasyLanguage Programming

Updated
    1. trending_up 672 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Convert from Thinkscript to Easylanguage

(login for full post details)
  #1 (permalink)
 apmodeler 
Boise, Idaho
 
Experience: Intermediate
Platform: TOS
Trading: Stocks
 
Posts: 33 since Aug 2013
Thanks: 52 given, 9 received

Hi All,
Need some help converting this ThinkScript line to Easylanguage.

def Bollinger_Keltner = reference BollingerBands("Num" = 2, "length" = 20 )."upperband" - KeltnerChannels("Fac" = 1, "length" = 20)."Upper_Band";

Any help is greatly appreciated!
Thank you!!
AP

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Store value in variable when emas crossover easy language
EasyLanguage Programming
Google Keyword Search Alerts
Traders Hideout
how to avoid these type of trades in algo
NinjaTrader
NT 8 Strateg Builder issue I am baffled! Anyone?
NinjaTrader
Brad Cowan
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Why dont people trade 150 ES contracts?
40 thanks
Spoo-nalysis ES e-mini futures S&P 500
36 thanks
Any long term success stories from funded traders in the …
26 thanks
Daytrading.Coach Review
17 thanks
How to work on strategy
17 thanks
 
(login for full post details)
  #2 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 17 since Aug 2012
Thanks: 1 given, 13 received

hi,
in the following way you can also easily
construct all the other calculations you might need...

 
Code
Inputs:
BBPeriod(20),
KPeriod(20),
Mult(2),
FactorATR(1.0);
Vars:
BB_Line(0),StDev(0),BBUpperBand(0),BBLowerBand(0),
K_Line(0),Deviation,KUpperBand(0),KLowerBand(0),X;

BB_Line = Average(Close, BBPeriod);
StDev = StandardDev( Close, BBPeriod, 1 );
BBUpperBand = BB_Line + Mult * StDev ;
BBLowerBand = BB_Line + Mult * StDev * -1 ;

K_Line = Average(Close, KPeriod);
Deviation = FactorATR * AvgTrueRange( KPeriod );
KUpperBand = K_Line + Deviation ;
KLowerBand = K_Line - Deviation ;

X = BBUpperBand - KUpperBand;

Reply With Quote
The following user says Thank You to Kolnidrei for this post:
 
(login for full post details)
  #3 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 17 since Aug 2012
Thanks: 1 given, 13 received


hi,
in the following way you can also easily
construct all the other calculations you might need...

 
Code
Inputs:
BBPeriod(20),
KPeriod(20),
Mult(2),
FactorATR(1.0);
Vars:
BB_Line(0),StDev(0),BBUpperBand(0),BBLowerBand(0),
K_Line(0),Deviation,KUpperBand(0),KLowerBand(0),X;

BB_Line = Average(Close, BBPeriod);
StDev = StandardDev( Close, BBPeriod, 1 );
BBUpperBand = BB_Line + Mult * StDev ;
BBLowerBand = BB_Line + Mult * StDev * -1 ;

K_Line = Average(Close, KPeriod);
Deviation = FactorATR * AvgTrueRange( KPeriod );
KUpperBand = K_Line + Deviation ;
KLowerBand = K_Line - Deviation ;

X = BBUpperBand - KUpperBand;

Reply With Quote
The following user says Thank You to Kolnidrei for this post:
 
(login for full post details)
  #4 (permalink)
 apmodeler 
Boise, Idaho
 
Experience: Intermediate
Platform: TOS
Trading: Stocks
 
Posts: 33 since Aug 2013
Thanks: 52 given, 9 received

Kolnidrei, thank you so very much!!😀

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Convert from Thinkscript to Easylanguage


Last Updated on November 14, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts