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,263 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?
Request for MACD with option to use different MAs for fa …
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

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
The following user says Thank You to ABCTG for this post:
  #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