NexusFi: Find Your Edge


Home Menu

 





Newby Help to access variable in an indicator in a strategy


Discussion in NinjaTrader

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




Closed Thread
 
Search this Thread
  #1 (permalink)
 markbb10 
Treasure Coast, Florida
 
Experience: Advanced
Platform: Ninja 8
Trading: Futures
Posts: 139 since Aug 2012
Thanks Given: 57
Thanks Received: 50

Hello All,

I am attempting to learn ninjascript so pardon me if I state anything dumb.
I am using the WWaveVolume indicator which is available here on NexusFi.

I want to access a variable from within this indicator in a strategy.

In the WWave code the variable is defined as a private int.

private int Trend;

Two questions.
How do I inform my strategy that I want to use data from this indicator?
Once the strategy knows about the indicator and can access it, will I have access to a variable defined as private?

Thanks

Mark


Started this thread
Thanked by:

Can you help answer these questions
from other members on NexusFi?
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Probability Collapse: Bitcoin $150k Craters from 15% to …
Prediction Markets & Event Contracts
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,174 since Jan 2013
Thanks Given: 57,989
Thanks Received: 26,406



markbb10 View Post
Hello All,

I am attempting to learn ninjascript so pardon me if I state anything dumb.
I am using the WWaveVolume indicator which is available here on nexusfi.com.

I want to access a variable from within this indicator in a strategy.

In the WWave code the variable is defined as a private int.

private int Trend;

Two questions.
How do I inform my strategy that I want to use data from this indicator?
Once the strategy knows about the indicator and can access it, will I have access to a variable defined as private?

Thanks

Mark

Hi @markbb10,

Please repost your question in one of the existing threads set up for members to get help for programming or strategy topics. An obvious one is the free indicator thread, where you made your original post on the subject:

Keeping related posts together helps others to find topics that interest them, and will help you in finding someone to give you a hand with your question.

This thread is closed, to prevent creating a split topic.

Bob.


When one door closes, another opens.
-- Cervantes, Don Quixote
Thanked by:

Closed Thread



Last Updated on February 22, 2020


© 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