for loop properties help. - futures io
futures io futures trading



for loop properties help.


Discussion in NinjaTrader

Updated
    1. trending_up 624 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

for loop properties help.

(login for full post details)
  #1 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received

I am trying to create a for loop in NT8 in the properties.
How do I achieve this?

This is what i've tried, but I get struct errors.

 
Code
	#region properties
                for (a = 1; a < 21;)
		{
			[Browsable(false)]
			[XmlIgnore]
			public Series<double> Line1+a++
			{
				get { return Values[0+a++]; }
			}
		}
                #endregion
Basicailly, just name a new double starting wit 1, all the way to 20.

Reply With Quote

Can you help answer these questions
from other members on futures io?
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
What blockvolume is visible? - order processing
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
 
 
(login for full post details)
  #3 (permalink)
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received


i see several errors :

1. the a will be incremented twice in your loop
2. you use an arithmethic expression for a variable name
3. you have a casting problem

no sure you can make the properties dynamic like you want to do
the value yes, the name no

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received


rleplae View Post
i see several errors :

1. the a will be incremented twice in your loop
2. you use an arithmethic expression for a variable name
3. you have a casting problem

no sure you can make the properties dynamic like you want to do
the value yes, the name no

since this was for plots, Values[a][0] worked well.....
But now, how would you suggest to create doubles with incremental sequence?

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > for loop properties help.


Last Updated on October 13, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts