NexusFi: Find Your Edge


Home Menu

 





Accessing Hidden Indicator Conditions


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one KenB with 8 posts (1 thanks)
    2. looks_two max-td with 7 posts (0 thanks)
    3. looks_3 TAJTrades with 2 posts (2 thanks)
    4. looks_4 Big Mike with 2 posts (0 thanks)
    1. trending_up 15,794 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 20 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
KenB
Boynton Beach, FL
 
Posts: 9 since Jul 2010
Thanks Given: 0
Thanks Received: 1

Can you please tell what the easiest way to access an indicators' "true" condition from the Strategy Wizard? I don't mind adding code to the indicator, but I want to be able to access that information from the Strategy wizard as a condition so I can add an action.
Thanks


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Administrator
 
Posts: 3,767 since Jun 2009
Thanks Given: 3,836
Thanks Received: 4,691


Hmm, an you be more clear ?
An indicator can expose values, and these values can be booleans (true or false), but is what you mean ?


Success requires no deodorant! (Sun Tzu)
Reply With Quote
  #4 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

instead of true / false you can also use something with values wich is more easy to use in the strategy-wizard i think.

you can make something like this + you have to set myValue as a dataseries to be able to grab it in the wizard :


if (your condition) // >>> ("true" condition)

myValue = 1


if not (your condition)

myValue = - 1


then grab it in the wizard :

if myValue > 0 ( sell the stuff or so )


max-td
Reply With Quote
  #5 (permalink)
KenB
Boynton Beach, FL
 
Posts: 9 since Jul 2010
Thanks Given: 0
Thanks Received: 1

Specifically, I would like to access 3 conditions of an indicator that reference trend, "Uptrend, Downtrend, and Notrend". NinjaTrader tech says I can only access an indicator's conditions with the strategy wizard using "Plots". I read through the available tutorials and I'm still not clear on how to accomplish this and he is being a bit vague.

So far what I think I need to do is to create a plot called "TrendPlot" and put it with the indicator's Uptrend condition as an action with a value of 1 (TrendPlot=1), Downtrend condition with a value of -1 (TrendPlot=-1), Notrend condition with a value of 0 (TrendPlot=0). Then In the strategy wizard I can choose the "TrendPlot" plot in the conditon builder and say equals 1, -1, or 0 to be an addtional conditions to my strategy conditons.

The exact "how to" is what I need to know. What goes in "Variables", "Initialize()", "OnBarUpdate()", and "Properties"?
Thanks


Reply With Quote
Thanked by:
  #6 (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,586

Any exposed (public) dataseries from the indicator can be referenced by the strategy. Just edit the indicator and make sure in the properties region you are exposing the "Trend" dataseries.

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
  #7 (permalink)
KenB
Boynton Beach, FL
 
Posts: 9 since Jul 2010
Thanks Given: 0
Thanks Received: 1

You're saying change this to "true" and I can access the property with the Strategy Wizard?
[Browsable(
false)]


Reply With Quote
  #8 (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,586


KenB View Post
You're saying change this to "true" and I can access the property with the Strategy Wizard?
[Browsable(
false)]

No, that is not what I am saying.

You would need to post the entire code if you don't know how to expose a dataseries, then perhaps someone else can do it for you. Otherwise, I suggest you hire the work done by an experienced programmer.

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
  #9 (permalink)
KenB
Boynton Beach, FL
 
Posts: 9 since Jul 2010
Thanks Given: 0
Thanks Received: 1

I'm not interested in hiring someone to do this. I want to know specifically how to do this on my own. In the thread above I mentioned what I thought was the right track. Am I on the right track or not?
Thanks


Reply With Quote
  #10 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


you are on the right track -i post something later - need to find an example !


max-td
Reply With Quote




Last Updated on September 29, 2010


© 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