Reference another study that's not a function - Sierra Chart Programming | futures trading

Go Back

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

Reference another study that's not a function
Started:March 9th, 2011 (12:38 PM) by vegasfoster Views / Replies:1,787 / 3
Last Reply:June 23rd, 2011 (01:41 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

Reference another study that's not a function

Old March 9th, 2011, 12:38 PM   #1 (permalink)
Elite Member
las vegas
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
Posts: 1,147 since Feb 2010
Thanks: 304 given, 832 received

Reference another study that's not a function

I don't understand how to reference another study that isn't an SC function. For example, the T3 study is not a function and I am trying

SCFloatArrayRef input = sc.BaseDataIn[sc.Index];
T31[sc.Index] = sc.T3(input, sc.Subgraph[0], sc.Index, TPeriod, TPhase);

but it doesn't work. I read the documentation and it's confusing me. Any help would be appreciated. Thank you.

Reply With Quote

Old March 9th, 2011, 12:38 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.


Old March 11th, 2011, 02:38 AM   #3 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,433 since Jun 2009
Thanks: 28,836 given, 79,565 received


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Old June 23rd, 2011, 01:41 PM   #4 (permalink)
Poquoson VA USA
Futures Experience: Intermediate
Platform: Proprietary
Favorite Futures: Futures
Posts: 13 since Jun 2010
Thanks: 3 given, 8 received

You need to add the T3 study to your chart (it can be set to hidden) then reference its data. You can get that reference by using sc.GetStudyArray() or sc.GetStudyArrayFromChart() if it's on another chart (there is also GetStudyArraysFromChart to get all the arrays instead of just one).

There are short examples if you go to those links. Basically you end up with the SCFloatArray or whatever from the other study (T3 in this case) that you can grab values from.

You might also think about providing an "Input" that lets you select the study number from your configuration panel since it could change depending on where you insert the T3 study.

This also might be helpful to you.

Reply With Quote
The following 2 users say Thank You to Ymmv for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > Sierra Chart > Sierra Chart Programming > Reference another study that's not a function

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

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
Ema2 Function in NinjaScript? srgtroy NinjaTrader Programming 3 June 29th, 2011 12:00 AM
Losing Edit Function, looking for help! alex123 Traders Hideout 4 September 15th, 2009 07:32 PM

All times are GMT -4. The time now is 04:16 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-24 in 0.10 seconds with 19 queries on phoenix via your IP