![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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.
Ben
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |