NexusFi: Find Your Edge


Home Menu

 





Help with a Multi-Instrument Indicator


Discussion in NinjaTrader

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




 
Search this Thread

Help with a Multi-Instrument Indicator

  #11 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


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?
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
  #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:	152
Size:	235.3 KB
ID:	120057  
Reply With Quote
  #13 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103



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


© 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