Need help - TSI - Function in ACSIL - Sierra Chart Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > Sierra Chart > Sierra Chart Programming

Need help - TSI - Function in ACSIL
Started:September 11th, 2012 (09:07 PM) by ejtrader Views / Replies:598 / 1
Last Reply:September 11th, 2012 (09:07 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Need help - TSI - Function in ACSIL

Old September 11th, 2012, 09:07 PM   #1 (permalink)
Elite Member
Portland, OR
Futures Experience: Intermediate
Platform: Sierra Chart
Favorite Futures: ES
Posts: 269 since Jan 2011
Thanks: 326 given, 179 received

Need help - TSI - Function in ACSIL

Hello - Can any one help with converting this function to ACSIL? There is built in True strength indicator(scsf_TrueStrengthIndex) available in Sierra but - I would like to have it in more generic form - where it can be called multiple times with various parameters.

Thanks in advance.

Here is the TS Code:

TSI Function:
{TSI function = True Strength Index by Bill Blau}

{FORMAT: TSI(Price,r,s,u)
Where: r = length of first EMA smoothing of 1 day momentum,
s = length of second EMA smoothing of 1 day smooting,
u = length of third EMA smooting of 1 daymomentum.}

Price(NumericSeries), r(NumericSimple), s(NumericSimple), u(NumericSimple);

Value1= 100*TXAverage(Price-Price[1],r,s,u) ; { Numerator }
Value2=TXAverage(AbsValue(Price-Price[1]),r,s,u) ; { Denominator }

If Value2 <> 0 then TSI = Value1 / Value2 else TSI = 0;
TXAverage Function:
{TXAverage function

FORMAT: TXAverage(Price,r,s,u) }

Inputs: Price(NumericSeries), r(NumericSimple),s(NumericSimple),

TXAverage = XAverage(XAverage(XAverage(Price,r),s),u) ;

Indicator code (to demonstrate the repeat use of the function - Which I am unable to replicate in Sierra):

Last edited by ejtrader; September 11th, 2012 at 10:53 PM.
Reply With Quote

Old September 11th, 2012, 09:07 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > Sierra Chart > Sierra Chart Programming > Need help - TSI - Function in ACSIL

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for TSI booker777 NinjaTrader 19 November 16th, 2015 11:52 AM
Instructional videos about ACSIL with Visual studio and other ACSIL programming t yonatan Sierra Chart Programming 2 January 29th, 2013 02:34 PM
ACSIL: a function that returns the price with the highest volume within a bar yonatan Sierra Chart Programming 14 September 25th, 2012 07:07 PM
Pimping the TSI with swinghigh and swinglow fossil NinjaTrader 5 May 15th, 2012 01:29 PM looks like a value trading room using TSI indicators futurestrader1 Vendors and Product Reviews 20 November 3rd, 2011 05:46 PM

All times are GMT -4. The time now is 05:30 PM.

Copyright © 2016 by 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

Page generated 2016-10-26 in 0.07 seconds with 19 queries on phoenix via your IP