NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-14-2008, 06:34 PM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 578
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default How to expose custom indicator properties(?)

Hi -- I have created a custom indicator that does not create a plot. It basically just uses the DrawText method to write values above bars that I want to flag for a particular reason.

So I want to try using this indicator in a new strategy, to trade based on these 'flags' the indicator is creating. Is there any help or examples on how to pass this DrawText event, or however else I can get the strategy to recognize that the indicator has flagged a bar, into the strategy so that it can place an order?

Thanks!
Bryan
Price-Dynamics.com
A NinjaTrader Official Partner

Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy!

Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account!
cassb is offline  
Reply With Quote
Old 10-15-2008, 08:25 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Hi Bryan,

You will not be able to pass the DrawText() directly to a strategy, but instead you can use the technique demonstrated in this reference sample to get the true/false conditions over into a strategy: http://www.ninjatrader-support.com/v...ead.php?t=4991
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-15-2008, 08:44 AM   #3
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 578
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
Hi Bryan,

You will not be able to pass the DrawText() directly to a strategy, but instead you can use the technique demonstrated in this reference sample to get the true/false conditions over into a strategy: http://www.ninjatrader-support.com/v...ead.php?t=4991
OK Josh, thanks! I'll take a look at that thread. I knew you'd have an answer.
Price-Dynamics.com
A NinjaTrader Official Partner

Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy!

Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account!
cassb is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Indicator funk101 Indicator Development 5 09-23-2008 12:14 PM
Add color and width properties to each data point of an indicator anachronist Suggestions And Feedback 1 08-19-2008 02:24 PM
NT6.5b10 indicator properties don't close redwoood Suggestions And Feedback 1 03-27-2008 12:07 PM
Beta bug? Strategy Analyzer backtest properties window showing wrong properties OregonSun Historical NinjaTrader 6.5 Beta Threads 2 01-27-2008 05:42 PM
Indicator: Removing and Custom Formatting an Indicator’s Chart Label NinjaTrader_Josh Reference Samples 0 12-30-2007 06:49 PM


All times are GMT -6. The time now is 09:05 PM.