NexusFi: Find Your Edge


Home Menu

 





Help with a Multi-Instrument Indicator


Discussion in NinjaTrader

Updated
    1. trending_up 6,772 views
    2. thumb_up 7 thanks given
    3. group 2 followers
    1. forum 12 posts
    2. attach_file 4 attachments




 
Search this Thread
  #11 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


ECI Ed View Post
Fat Tails:
There is a bug in lines 89 to 95, as you have initialized the same DataSeries twice and not initialized another one.

Big DUH on my part, thank you for pointing that out.

Fat Tails:
Further, I do not understand, why you use plArray, phArray and indArray. You can access Low, High and smis in the same way, no need to create new objects with identical values.

Good point, but I'm going to keep the indArray for portability.

Now as I edge closer to the solution when I add the necessary commands to make the arrays work properly, the editor comes up with numerous errors on the Data Series syntax that weren't problems before. Can you please help me figure out why this is happening, and how to fix it?

TIA

If you post a screenshot of the errors then I do not need to install that stuff on my side.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #12 (permalink)
ECI Ed
Seminole, FL
 
Posts: 17 since Oct 2011
Thanks Given: 9
Thanks Received: 3

Fat Tails:

If you post a screenshot of the errors then I do not need to install that stuff on my side

Sure


Attached Thumbnails
Click image for larger version

Name:	Errors.jpg
Views:	231
Size:	235.3 KB
ID:	120057  
Reply With Quote
  #13 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117



ECI Ed View Post
Fat Tails:

If you post a screenshot of the errors then I do not need to install that stuff on my side

Sure

That looks like a bracket problem. For OnBarUpdate(), you open the first bracket in line 120. This bracket is closed in line 191. This marks the end of OnBarUpdate().

The question now is what to do with the abandoned code in line 194 and thereafter. You cannot set any values outside OnBarUpdate().


Reply With Quote
Thanked by:




Last Updated on July 31, 2013


© 2026 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 - Downloads - Top
no new posts