NexusFi: Find Your Edge


Home Menu

 





First Multi-series indicator


Discussion in NinjaTrader

Updated
    1. trending_up 4,839 views
    2. thumb_up 0 thanks given
    3. group 0 followers
    1. forum 10 posts
    2. attach_file 7 attachments




 
Search this Thread

First Multi-series indicator

  #1 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

Hi, I am trying to create a currency composite indicator but get two errors I can't resolve in relation to the multi-series code. I am reading the instructions, but it is a little confusing to me. Thank you for any help.

Attached Thumbnails
Click image for larger version

Name:	Error1.jpg
Views:	238
Size:	413.4 KB
ID:	9097   Click image for larger version

Name:	Error2.jpg
Views:	220
Size:	292.1 KB
ID:	9098  
Attached Files
Elite Membership required to download: multiseries.txt
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662


If you are using NT 6.5 you can't dynamically specify the time frame in Init for MTF strategies. Replace the variable with a hard number, like 5 for 5 minutes, and it should work.

For the second issue, the MTF code is Closes (notice the s), for instance Closes[1][0] would refer to BarsArray[1] index bar[0]. And Highs[3][1] would be BarsArray[3] index[1], etc etc.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

Thanks for responding so quickly, but I made the changes and I am still getting the same error on the first part and now a different error on the second part.

On the first one, I thought maybe the symbol needed to be "$GBPUSD" instead of "GBPUSD", but that didn't work either.

The second one I have no clue. I am not sure if I am supposed to be adding something to the variables or properties sections.

Will keep working on it, but thanks again for any help.

Attached Thumbnails
Click image for larger version

Name:	Error1.jpg
Views:	210
Size:	390.1 KB
ID:	9163   Click image for larger version

Name:	Error2.jpg
Views:	206
Size:	307.8 KB
ID:	9164  
Attached Files
Elite Membership required to download: multiseries.txt
Started this thread Reply With Quote
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662

Well the extra BarsArray won't work (second error) until the first error is solved.

As for the first error, I can't say. You need to look at instrument manager (Control Center - Tools - Instrument Manager) and use the exact name listed there, which would be the same as loading a chart and using the exact name listed on the top left of the chart. For instance, for ES it would be "ES 03-10".

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

Austin says NT 6.5 only supports multi-series strategies and not indicators.

Started this thread Reply With Quote
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662


vegasfoster View Post
Austin says NT 6.5 only supports multi-series strategies and not indicators.

Yes, naturally, I missed the word "indicator" in the thread title!

Just write it as a strategy if you want to stick with 6.5, you can still plot from a strategy it's just more difficult. Or just "upgrade" (lol) to NT7.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

Apparently the nt customer service representatives on the nt forum are not aware of that. He told me I could set "Overlay = false;", but then later retracted the post with no further instruction. I can't figure out what or how I am supposed to be telling it to plot, for example in the sma strategy, it uses:
SMA(10).Plots[0].Pen.Color = Color.Blue;
Add(SMA(10));
But in another strategy I created using the wizard, it just uses "Add..." and the values are plotting, there is no "Plots" statement.

In the multi-series strategy I am using:
Add("AUDUSD", PeriodType.Minute, timeFrame);
But the values aren't plotting and I am not sure how I would write a Plot statement using the above add statement or even if I need one. Any help would be appreciated. Thanks.

The point of the exercise is that I would ultimately like to create a single bar chart that is a composite of any selected pairs and be able to place single entry and exit orders that would be automatically split between them, i.e. trade my own custom indices. During strong trends and volatile periods I would just have to focus one chart and I believe I would average out better over time.

I like to trade the gby.jpy, gbp.usd, and aud.jpy because they move the best of any of the pairs. While they move together for the most part, sometimes one will get hung up and won't budge while the other two are moving just fine. For example, the aud.jpy may give the best look initially but get hung up by the usd.jpy, whereas the gbp.jpy will move anyway because of the gbp.usd took off like a champ.

It wouldn't be appropriate at all times and it may be a crap idea at any time, but I think it's worthwhile to take a look at it.

Started this thread Reply With Quote
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662

Easiest thing to do is go to NT7.

Otherwise, research the StrategyPlot() method, there are some examples in the help section.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


Yeah, ok, will ask for NT7, thanks.

Started this thread Reply With Quote




Last Updated on March 11, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts