NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-07-2011, 09:53 AM   #1
DenMan
Member
 
Join Date: Aug 2011
Posts: 52
Thanks: 13
Thanked 0 times in 0 posts
Default WMA_Colors Indicator

I'm trying to better understand the NT Indicator WMA_Colors, so that I can use it in my Strategy. I want the indicator identify the bar where the line turns from Flat to Up/Down, with COBC=false. I've tried several methods including adding a Public IntSeries variable, but apparently I've not got the placement of the .Set incorrect or incomplete. I'd really appreciate a suggestion to help get my code off the dime.
DenMan is offline  
Reply With Quote
Old 10-07-2011, 11:02 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 379 times in 369 posts
Default

DenMan

I am happy to assist you.

I presume you are setting the integer to something like 1 for upward movement, 0 for flat and -1 for downward movement, then checking to see if it changes from, say 0 to 1?

When you refer to a indicator like such :

ColoredWMA(input,period).direction

It will only return the default value of "direction".

Instead, you could determine the direction inside your strategy. You can use the WMA, and Rising() and Falling() functions to mimic what the ColoredWMA does inside the strategy.

Additionally, here is a helpful link covering "Exposing indicator values that are not plots".

http://www.ninjatrader.com/support/f...ead.php?t=4991

Please let me know if I can assist further.
NinjaTrader_AdamP 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


All times are GMT -6. The time now is 01:59 PM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.