NexusFi: Find Your Edge


Home Menu

 





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


Discussion in MultiCharts

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




 
Search this Thread

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

  #1 (permalink)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0

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 NexusFi?
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Reply With Quote
Thanked by:
  #3 (permalink)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0



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)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0

ABCTG your suggestion worked !! Thanks so much.

Problem solved. Ticket can be closed.

Reply With Quote




Last Updated on June 8, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts