NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 03-05-2012, 10:00 AM   #1
Plaket
Member
 
Join Date: Mar 2010
Posts: 34
Thanks: 2
Thanked 0 times in 0 posts
Default Running a strategy on a chart with multiple data series.

Hi,


I have a problem when I try running a strategy on a chart with multiple data series.
On the next example (you can see the screenshot) I open two FGBL charts. The first is a 5 min chat, and the second one is a 15 min chart.


I need running a strategy on the 5 min chart and another strategy on the 15 min chart.


The problem is that I can only see the trades (arrows and entry and exit prices) on the first chart, however, I would need to watch each strategy on the corresponding chart.

Please, can I do something to solve this?


Thanks a lot in advance.
Attached Images
File Type: png Problem.png (94.7 KB, 25 views)
Last edited by Plaket; 03-05-2012 at 10:06 AM.
Plaket is offline  
Reply With Quote
Old 03-05-2012, 10:18 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Plaket,

Thanks for your note.

Unfortunately the orders are only plotted to the main data series panel. You can however overlay the bars. I have attached a sample workspace to show you how to do this. Please unzip it and put the XML file in My Documents / NinjaTrader 7 / workspaces, you can then load it using File > Open Workspace.
Attached Files
File Type: zip ExampleFGBL.zip (2.8 KB, 35 views)
NinjaTrader_AdamP is offline  
Reply With Quote
Old 06-13-2012, 03:48 AM   #3
kucharek
Senior Member
 
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 105
Thanks: 30
Thanked 3 times in 3 posts
Default

Hi,

Can you give me reference code for doing that in Ninjascipt?

Best regards,
kucharek is online now  
Reply With Quote
Old 06-13-2012, 07:30 AM   #4
NinjaTrader_Cameron
NinjaTrader Customer Service
 
NinjaTrader_Cameron's Avatar
 
Join Date: Aug 2010
Location: Denver, CO
Posts: 954
Thanks: 52
Thanked 85 times in 82 posts
Default

Hello kucharek,

Thank you for your post.

Unfortunately, the plotting of executions are only displayed on the main data series.

As Adam stated, if you wanted to view the plotting of the executions on both data series, you can use the Overlay function in the Data Series window.

Please see my attached screen shot for an example.
Attached Images
File Type: png 2dataseries.png (121.1 KB, 19 views)
NinjaTrader_Cameron is offline  
Reply With Quote
Old 06-13-2012, 07:53 AM   #5
kucharek
Senior Member
 
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 105
Thanks: 30
Thanked 3 times in 3 posts
Default

I understand.

I just want to generate such or similar view in backtest. Most important to me is to generate a chart in backtest with two data series - can be one below another. I do not know what ninjascript code is suitable for adding second data series to a chart.
kucharek is online now  
Reply With Quote
Old 06-13-2012, 08:42 AM   #6
NinjaTrader_Cameron
NinjaTrader Customer Service
 
NinjaTrader_Cameron's Avatar
 
Join Date: Aug 2010
Location: Denver, CO
Posts: 954
Thanks: 52
Thanked 85 times in 82 posts
Default

kucharek,

Unfortunately you cannot add a visual second data series through NinjaScript. This is a chart visual effect not available in the Strategy Analyzer.
NinjaTrader_Cameron 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
Multiple Data Series with different Indicator Input series marotom General Programming 5 01-06-2011 12:11 PM
strategy data series vs chart datas series issue azuul Suggestions And Feedback 2 12-17-2010 09:00 AM
Multiple same data series in same chart pimind Suggestions And Feedback 1 10-26-2010 09:55 AM
Chart scrolling with multiple data series MikeInMA Version 7 Beta General Questions & Bug Reports 2 09-21-2010 04:56 AM
Update frequency of multiple data series in a Strategy ThePatientOne Strategy Development 1 05-02-2007 10:05 AM


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