Trading Articles
Article Categories
Article Tools
MultiCharts.NET: cannot open a position with more than 1 contract
Updated June 8, 2019
trending_up
547 views
thumb_up
1 thanks given
group
2 followers
forum
3 posts
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)
MultiCharts.NET: cannot open a position with more than 1 contract
(login for full post details)
#1 (permalink )
Mexico city
Posts: 15 since May 2019
Thanks: 4 given,
0
received
Hi, hope someone can help on this one.
I've a signal that creates BUY and SELL orders:
buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts .CreateUserSpecified(PositionSize), "Bolder LE", EOrderAction.Buy)); //BUY
sell_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.CreateUserSpecified(PositionSize), "Bolder SE", EOrderAction.SellShort)); //SELL
where PositionSize = 4
Nevertheless when the order is submitted, it only opens a position with 1 contract . Why ??
Is there any configuration limiting the number of contracts to just 1 ??
Help is appreciated.
JohnJo.
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#2 (permalink )
Vendor
Posts: 2,225 since Apr 2013
Thanks: 406 given,
1,468
received
JohnJo,
I would suggest checking the value for PositionSize when you create the order objects. It might not have a value of 4 at that time.
Another approach could be to create the order objects using:
Code
buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.UserSpecified, "Bolder LE", EOrderAction.Buy)); //BUY
and to specify the size when your code actually issues the order.
Regards,
ABCTG
The following user says Thank You to ABCTG for this post:
(login for full post details)
#3 (permalink )
Mexico city
Posts: 15 since May 2019
Thanks: 4 given,
0
received
ABCTG
JohnJo,
I would suggest checking the value for PositionSize when you create the order objects. It might not have a value of 4 at that time.
Another approach could be to create the order objects using:
Code
buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.UserSpecified, "Bolder LE", EOrderAction.Buy)); //BUY
and to specify the size when your code actually issues the order.
Regards,
ABCTG
Hi, yes I've placed a writeline statement and the value of PositionSize = 4 , but when the order is sent for unkown reason the value is set to 1. I will try your suggestion to set the method Send(int numLots) at the execution time.
Thanks for your help.
(login for full post details)
#4 (permalink )
Mexico city
Posts: 15 since May 2019
Thanks: 4 given,
0
received
ABCTG your suggestion worked !! Thanks so much.
Problem solved. Ticket can be closed.
Last Updated on June 8, 2019
Right now
NinjaTrader Indicator Challenge!
Ongoing
Register to Attend
Jan 21
Coming soon
Journal Challenge!
February
Coming soon
Battlestations!
March