MultiCharts.NET: cannot open a position with more than 1 contract - futures io
futures io futures trading



MultiCharts.NET: cannot open a position with more than 1 contract


Discussion in MultiCharts

Updated
    1. trending_up 547 views
    2. thumb_up 1 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
 

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.

Reply With Quote

Can you help answer these questions
from other members on futures io?
Platform that supports grouped, linked, compound, or trigger-based orders?
Platforms and Indicators
Trade Window - Maximum Show Quantity
Sierra Chart
Simulated Playback Trading
EasyLanguage Programming
InvestorRT for Trading
Platforms and Indicators
Pyrapoint by Don Hall information
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
83 thanks
How did you learn to trade?
73 thanks
NinjaTrader buys TransAct Futures (Infinity Brokers), plans its own FCM
64 thanks
2020 profit and loss results
62 thanks
Whos afraid of the big bad Glitch
51 thanks
 
(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

Follow me on Twitter Visit my Facebook Reply With Quote
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 View Post
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.

Reply With Quote
 
(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.

Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > MultiCharts.NET: cannot open a position with more than 1 contract


Last Updated on June 8, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Are you doing what it takes to trade right? w/FuturesTrader71

Jan 21
 

Journal Challenge!

February
 

Battlestations!

March
     



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