![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Hy , I am very new at Ninja Trader programming. I have developed an indicator , that can draw for me the inportant high low levels, and trend line. Unfortunatelly , when I change the time frame , the indicator shows still the daily High Low lines .
My question is what can be the problem? I have tried to write a void thet can handle the timeframe , but I am not sure about it can be the key of my problem. void period_changer() { if (BarsPeriod.Id == PeriodType.Minute){Add(PeriodType.Minute, 1);} if (BarsPeriod.Id == PeriodType.Day){Add(PeriodType.Day, 1);} } |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
banyasz, welcome to our forums here - I'm sure not I follow what you feel is not working correctly, what would you expect to happen if you change the timeframe? What calculation should change?
Dynamically adding a series would unfortunately not be supported, but you can add minute and daily and then refer to each BarsInProgress in your calcs as needed.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
I just only want from the indicator , is when i change the timeframe from Daily to 1 minute, draw the High Low levels to the Minute timeframe. I attache two pictures , the good one is working on daily timeframe.
And i wana to work the indicator on m1 TF. also. ![]()
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
Thanks, do you get any error shown in the log tab of the Control Center for the nonworking version?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Unfortunatelly there is no error message. I think when i chaneg timeframe , perhaps the indicator is still work on Daily chart.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
banyasz, could you please email us at support at ninjatrader dot com with the script / code exported so we could give it a run here for you?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks for the help I posted my script.
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
Thanks, did you sent it in to support? As I don't see it posted here in this thread (which is ok if you prefer to send it in directly to us).
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
I sent it to the support Thank you for the help!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| draw a line + sound alert when this line is crossed ? | rem77 | NinjaScript File Sharing Discussion | 11 | 04-29-2013 07:43 PM |
| global draw object getting changed in lower timeframe chart | mmtrader | Version 7 Beta General Questions & Bug Reports | 3 | 04-20-2010 08:27 AM |
| Multi timeframe line plots on all charts | pip_gmt | Indicator Development | 2 | 03-02-2010 04:06 PM |
| Can draw dot, arrow, etc. but cannot draw line | cunparis | Strategy Development | 10 | 03-21-2009 01:44 AM |
| how to draw a parallel line to a trend line? | tradewiz | Charting | 4 | 12-19-2007 04:42 AM |