NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 01-16-2008, 04:00 PM   #1
funk101
Senior Member
 
Join Date: Jan 2006
Location: Margate, Florida, USA
Posts: 426
Thanks: 0
Thanked 2 times in 2 posts
Send a message via AIM to funk101
Default 52 week high/low...

I was looking for a script that would display 52 week high/low for an instrument. I don't see one. Please point me to one if one exists, else ->
So I thought I would attempt to write one. However, it's more involved than I thought. Is it true, if I'm using a 3 min chart, I first would have to Add() a weekly chart then do a MAX()/MIN() on that chart's Highs/Lows.

// add 52 week chart for 52 week high/low
Add(PeriodType.Week, 52);

I'm getting an error right there. The signature is wrong, or I'm missing something, because it says no overloaded Add() takes 3 params.
funk101 is offline  
Reply With Quote
Old 01-16-2008, 11:02 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

NinjaTrader currently does not support multi-time framed indicators. Your code should work in a NinjaScript strategy though.
NinjaTrader_Josh 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
CrossAbove(High, High, 1) Lost Trader Indicator Development 4 01-11-2008 09:27 AM
High greater than Highest High of last 20 Bars SamIam Strategy Development 1 08-19-2007 04:58 PM
Parsing trades per day of week gsmaster Strategy Development 3 07-24-2007 04:41 AM
1st Hour High/Low pijamatrader Indicator Development 42 07-16-2007 05:31 PM
OnLine Strategy Developement Training Sessions this week NinjaTrader_Ray Strategy Development 2 07-10-2007 06:57 AM


All times are GMT -6. The time now is 02:36 AM.