Thanks for helping.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Custom Bars Object
Collapse
X
-
Custom Bars Object
Is it possible to create a custom bars object which prices are the result of a mathematical operation involving two different instruments? For example: NewPrice=close[0][instr1] - 10*close[0][instr2]. I tried to find a hint in the help files, but wasn't successful.
Thanks for helping.Tags: None
-
Custom Bars Object
Thanks, Patrick
Maybe that's something for a future update of NT. The ThinkOrSwim platform offers calculated fields, comprised of two ore more instruments, in their data series, and all indicators work on them. It's a great extension if you want to do pair trading or something like this.
Comment
-
Originally posted by Loki45 View PostThanks, Patrick
Maybe that's something for a future update of NT. The ThinkOrSwim platform offers calculated fields, comprised of two ore more instruments, in their data series, and all indicators work on them. It's a great extension if you want to do pair trading or something like this.
In NinjaScript, you would have to calculate the OHLC values, and use a custom Plot() to draw the chart.
In actuality, there is a "Spread" indicator, in the sharing section of this forum, that shows and uses the technique. ref: http://www.ninjatrader.com/support/f...catid=4&id=367Last edited by koganam; 01-28-2014, 10:15 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
9 responses
23 views
0 likes
|
Last Post Today, 10:16 AM | ||
Started by George21, Today, 10:07 AM
|
0 responses
6 views
0 likes
|
Last Post
by George21
Today, 10:07 AM
|
||
Started by DayTradingDEMON, Today, 09:28 AM
|
2 responses
18 views
0 likes
|
Last Post Today, 09:56 AM | ||
Started by navyguy06, Today, 09:28 AM
|
1 response
6 views
0 likes
|
Last Post Today, 09:54 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
8 responses
32 views
0 likes
|
Last Post Today, 09:34 AM |
Comment