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 Big Mike with 2 posts (0 thanks)
    4. looks_4 TAJTrades with 2 posts (2 thanks)
    1. trending_up 9,081 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 20 posts
    2. attach_file 1 attachments




 
Search this Thread

Accessing Hidden Indicator Conditions

  #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?
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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)
Follow me on Twitter 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
 
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

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



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


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



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


© 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