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 02-24-2009, 08:34 AM   #1
Unhommefou
Junior Member
 
Join Date: Nov 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Angry Highest High/Lowest Low from xxxx time to yyyy time...

I have a strategy that I would like to backtest.

The strategy takes the highest high and the lowest low of a currency pair from 6PM EST to 3AM EST.

I have been trying to find an indicator to do this for me, when I found this thread here:http://www.ninjatrader-support2.com/...ead.php?t=8600

What I planned on doing is taking this indicator, and testing if my idea would even work...

However, when trying to use this indicator for overnight trading, since the first line of code forbids the open being greater than the close, it does not work.

I have been ripping my hair out trying to modify the code to get this thing to work. Is there a way to do this at all?
Unhommefou is offline  
Reply With Quote
Old 02-24-2009, 09:47 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,420
Thanks: 252
Thanked 981 times in 963 posts
Default

Hi Unhommefou, it might be better to save the needed breakout values to variables directly in the strategy.

You can check this reference sample for ideas how to trade a breakout - http://www.ninjatrader-support2.com/...ead.php?t=3223

If you need this custom coded professionally, I would suggest contacting those consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-21-2010, 10:12 AM   #3
samuelhogg
Member
 
Join Date: Nov 2008
Posts: 59
Thanks: 0
Thanked 0 times in 0 posts
Default

Did you work out how to do this Unhommefou? I have been looking into this the last couple of days and wondered how to do it.

Quote:
Originally Posted by Unhommefou View Post
I have a strategy that I would like to backtest.

The strategy takes the highest high and the lowest low of a currency pair from 6PM EST to 3AM EST.

I have been trying to find an indicator to do this for me, when I found this thread here:http://www.ninjatrader-support2.com/...ead.php?t=8600

What I planned on doing is taking this indicator, and testing if my idea would even work...

However, when trying to use this indicator for overnight trading, since the first line of code forbids the open being greater than the close, it does not work.

I have been ripping my hair out trying to modify the code to get this thing to work. Is there a way to do this at all?
samuelhogg is offline  
Reply With Quote
Old 03-22-2010, 02:00 PM   #4
mountainclimber
Senior Member
 
Join Date: Jun 2008
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to mountainclimber
Default

Hello,

I'm a paid programmer, I can do it for you. However if you want to try it yourself I would look here:
http://www.ninjatrader-support2.com/...ead.php?t=8600

I think that link more directly addresses your original questions.
mountainclimber 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
Charting Highest High And Lowest Low Of Prior Day pedroprada@bellsouth.net Charting 3 12-29-2008 10:17 AM
How to get the highest/lowest close of a specific time range. strategy1 General Programming 4 07-23-2008 10:18 PM
Indicator: Calculating the highest high or lowest low for a specified time range NinjaTrader_Ray Reference Samples 0 07-01-2008 12:22 PM
highest high / lowest low of first hour of trading velocity General Programming 7 06-16-2008 09:07 AM
Highest high of a time frame pablo_lasuncion Strategy Development 5 09-04-2007 02:05 PM


All times are GMT -6. The time now is 08:45 AM.