Stop loss order placements - NinjaTrader | futures io social day trading
futures io futures trading

Stop loss order placements
Updated: Views / Replies:459 / 1
Created: by stevien Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Thread Tools Search this Thread

Stop loss order placements

  #1 (permalink)
Trading Apprentice
Paris France
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: index futures
Posts: 2 since Nov 2015
Thanks: 1 given, 0 received

Stop loss order placements

Hello world!!

I'm a NT7 new user and developing a new strategy. Now, I'm facing a problem with stop loss order placements when I enter a position.
For example, in a long position, I want to set a stop loss order 2 ticks below the lowest low of last 3 bars [since today].

Here is a part of my script :

#region Variables
// User defined variables (add any user defined variables below)
private int stochaMin = 20; // Default setting for StochaMin
private int quantity = 1; // Valeur par Default setting for Quantity

/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
CalculateOnBarClose = true;

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()

protected override void Initialize()
CalculateOnBarClose = true;

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
// Resets the stop loss to the original value when all positions are closed
if (Position.MarketPosition == MarketPosition.Flat)
SetStopLoss(CalculationMode.Ticks, 2);

else if(Position.MarketPosition == MarketPosition.Long)
if (Close[0]!=Low[0])
SetStopLoss("Long", CalculationMode.Ticks, MIN(Low,3)[0] - 1*TickSize,true);

//Buying condition
if (Close[0] < Bollinger(2, 14).Lower[0] && Stochastics(5, 14, 3).K[0] < stochaMin)
EnterLong(quantity, "Long");

I was told that I was wrong if I wrote that script. In your opinion, does that code work? Please, can anyone help me?

Thank you in advance!

Reply With Quote
  #2 (permalink)
Elite Member
Omer עומר / Israel י
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
rleplae's Avatar
Posts: 2,707 since Sep 2013
Thanks: 1,983 given, 4,311 received
Forum Reputation: Legendary

You can find a lot of usefull code that works in the following example :

Reply With Quote


futures io > > > > Stop loss order placements

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic stop loss order aha123 eSignal 3 September 9th, 2016 11:58 PM
Problem with Stop Loss order Sanosuke ThinkOrSwim 0 January 28th, 2015 01:17 AM
Different Profit Target and Stop Loss Order xoxo2013 ThinkOrSwim 2 January 24th, 2014 12:42 PM
ATM Strategy: Limit order & stop loss order at the same time in the market? DrE6 NinjaTrader 2 June 21st, 2013 01:12 PM
Stop Loss Order Big Mike Terms (Glossary) 0 June 28th, 2010 12:29 AM

All times are GMT -4. The time now is 05:54 PM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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
Page generated 2018-05-22 in 0.07 seconds with 23 queries on phoenix via your IP