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 3,897 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Reference another study that's not a function

  #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: 844

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?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,467 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,667






Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts