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,722 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?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
3 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,175 since Jan 2013
Thanks Given: 58,013
Thanks Received: 26,424



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