NexusFi: Find Your Edge


Home Menu

 





Reference another study that's not a function


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two Ymmv with 1 posts (2 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 vegasfoster with 1 posts (0 thanks)
    1. trending_up 4,571 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 845

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.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,580






Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 Ymmv 
Poquoson VA USA
 
Experience: Advanced
Platform: Proprietary
Trading: Futures, Crypto
Posts: 17 since Jun 2010
Thanks Given: 6
Thanks Received: 9

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
Thanked by:




Last Updated on June 23, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts