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,883 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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?
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
US Navy Blockade of Hormuz Starts Today -- Oil Surges 8p …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
$24.5 Billion Record Month: Prediction Markets Shatter A …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X 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


© 2026 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 - Downloads - Top
no new posts