MultiCharts.NET: How to set stop loss in order ? - futures io
futures io futures trading



MultiCharts.NET: How to set stop loss in order ?


Discussion in MultiCharts

Updated by ABCTG
    1. trending_up 565 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 7 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: How to set stop loss in order ?

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

MultiCharts.NET: How to set stop loss in order ?

Hi all,

I'm developing a Signal (Multicharts.net), that issues Buy and Sell orders. In addition I want to set the stop loss when the order is created. But I cannot find a parameter in the OrderCreator class to set it.

Example:

buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.CreateUserSpecified(PositionSize), "Long Trade", EOrderAction.Buy));

Can someone help ? Thanks.
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,

there are multiple ways to accomplish this. One could be by issuing a stop order yourself:
https://www.multicharts.com/trading-software/index.php/4.6.1_Orders
You can also issue stops using using a built-in exit, but using a separate stop order might give you more control.
Take a look at the Stop_Loss signal for an example for how to issue stops using GenerateStopLoss.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #3 (permalink)
Mexico city
 
 
Posts: 15 since May 2019
Thanks: 4 given, 0 received


Thanks for the suggestion. I've tested the "Stop_Loss" signal yesterday, but it does not generate a "hard" stop on the chart.

I'm looking for a signal that once or after the position is opened, creates the SL level on the chart.

If there are no examples, guess I'm gonna have to code a new one using:

stopLossLong = OrderCreator.Stop(new SOrderParameters(Contracts.CreateUserSpecified(PositionSize), EOrderAction.Sell));

stopLossShort = OrderCreator.Stop(new SOrderParameters(Contracts.CreateUserSpecified(PositionSize), EOrderAction.BuyToCover));

Do I need to specify the " OrderExit.FromAll " parameter ? Or it automatically closes all the contracts ?

Thanks again,
JohnJo.

Reply With Quote
 
  #4 (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,

can you show an example of "a "hard" stop on the chart" as in general there shouldn't be a difference in how Multicharts displays the orders via GenerateStopLoss or an individual stop order?

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #5 (permalink)
Mexico city
 
 
Posts: 15 since May 2019
Thanks: 4 given, 0 received

Sorry I was not clear with the "hard" stop comment.

What I mean is: on the chart, I cannot see the stop loss created. Stop_Loss signal is attached properly, the order is created manually but the SL is not showing on the chart.

I've been thinking about another option:
-set the "Exit strategies" with option "Auto Attach as Exit Order",

but not sure if when a Signal creates the order, will the "Exit strategies" be automatically attached ?

JohnJo.

Reply With Quote
 
  #6 (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,

it sounds like either the stop wasn't triggered yet or in case it was real time the chart trading wasn't enabled, which in turn would not show the orders on the chart.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #7 (permalink)
Mexico city
 
 
Posts: 15 since May 2019
Thanks: 4 given, 0 received

Could it be because the parameter IOGMode is disabled ?

[IOGMode(IOGMode.Disabled)]

(does not generate intra-bar orders)

Reply With Quote
 
  #8 (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,

if you don't use the built-in GenerateStopLoss within conditional statements the stop will be in place directly after the entry by design even with IOG disabled.
I am afraid without seeing the code and inputs you used and the situations (screenshots) where the stop should have been in place one could only speculate about the cause here.

Regards,

ABCTG


JohnJo View Post
Could it be because the parameter IOGMode is disabled ?

[IOGMode(IOGMode.Disabled)]

(does not generate intra-bar orders)


Follow me on Twitter Visit my Facebook Reply With Quote



futures io Trading Community Platforms and Indicators MultiCharts > MultiCharts.NET: How to set stop loss in order ?




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