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 by JohnJo
    1. trending_up 434 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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)

 
Thread Tools Search this Thread
 

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

  #1 (permalink)
Mexico city
 
 
Posts: 15 since May 2019
Thanks: 4 given, 0 received

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

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?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
  #2 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,178 since Apr 2013
Thanks: 384 given, 1,411 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:
 
  #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
 
  #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




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 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