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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 10-30-2008, 01:50 PM   #1
vicrose
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default T Levels

I am trying to code T levels...

I need a script to say Close of previous day (4:15 p.m.) times .0038 = T1

Then I would like a line on the chart with T1 on the line.

Can anyone help me?

thanks
vicrose is offline  
Reply With Quote
Old 10-30-2008, 03:16 PM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Try doing something like this:

double T1 = PriorDayOHLC().PriorClose[0] * 0.0038;
DrawLine("T1", false, 10, T1, 0, T1, Color.LimeGreen, DashStyle.Dot, 2);

These links will help:
http://www.ninjatrader-support.com/H.../DrawLine.html
http://www.ninjatrader-support.com/H...orDayOHLC.html
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-04-2008, 08:22 PM   #3
vicrose
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

so do I use the wizard? I picked double under type. what do I do for the default and min? I then added the description in as you coded it. Am I correct? then do I have to import it? thanks, Ben
vicrose is offline  
Reply With Quote
Old 11-05-2008, 08:14 AM   #4
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,


Multiplication is not supported in the Wizard, so you will not be able to do this in the Wizard. You will need to code it out.
NinjaTrader_Ben 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
Volume levels nelson Miscellaneous Support 20 03-03-2009 07:05 AM
recording depth levels jonathan Miscellaneous Support 3 08-28-2008 07:56 AM
Automatic Fibonacci Levels warrior Indicator Development 6 10-20-2007 11:44 PM
All DOM levels in market analyzer RedDuke Market Analyzer 4 05-24-2007 01:58 PM
Vertical through all levels Antraman Charting 2 04-24-2006 01:10 AM


All times are GMT -6. The time now is 10:03 AM.