Is there a way to do this? - futures io
futures io futures trading



Is there a way to do this?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one richw with 3 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (1 thanks)
    1. trending_up 1,080 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 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
 

Is there a way to do this?

(login for full post details)
  #1 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 975 given, 845 received

I want to be able to create a loop that will place X number of orders without having to enter each one separately.

 
Code

int x = 0;
double y = 0;
int z = 1;
while (x < 10)
{
_long1+x = EnterLongLimit(0, true, 1, _longFirstPrice-.05-y, "L"+z);
x = x + 1;
y = y + .05;
z = z + 1;
}

Visit my futures io Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Neurological explanations for trading Success
Psychology and Money Management
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
Indicators for pair trading MES and M2K
Platforms and Indicators
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
111 thanks
Selling Options on Futures?
109 thanks
Rank your Futures vs Stocks trading priority
37 thanks
Want your NinjaTrader indicator created, free?
26 thanks
Bitcoin storage wallet recommendations
18 thanks
 
(login for full post details)
  #3 (permalink)
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,665 since Jun 2009
Thanks: 3,787 given, 4,494 received


Yes, but your EnterLongLimit() syntax is false, in this case it's more:
 
Code
                            
EnterLongLimit(1_longFirstPrice-.05-y"L"+z.ToString()) 

and you should use for() loops instead of while().

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
The following user says Thank You to sam028 for this post:
 
(login for full post details)
  #4 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 975 given, 845 received

What about the very beginning? Is there a workaround to enable a variable in the IOrder object? That seems to be the most troublesome part.

 
Code
_long1+x = EnterLongLimit(0, true, 1, _longFirstPrice-.05-y, "L"+z);

Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,314 given, 97,575 received

Create an array and then increment it during the loop to store the IOrder.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #6 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 975 given, 845 received

I will try that suggestion.

Visit my futures io Trade Journal Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Is there a way to do this?


Last Updated on February 26, 2011


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