Mobile Stop Help - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Mobile Stop Help
Started:July 10th, 2014 (12:28 PM) by gacd9999 Views / Replies:162 / 1
Last Reply:July 10th, 2014 (12:28 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Mobile Stop Help

Old July 10th, 2014, 12:28 PM   #1 (permalink)
Trading Apprentice
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Interactive brokers
Favorite Futures: BVC
Posts: 2 since May 2014
Thanks: 1 given, 1 received

Mobile Stop Help

first of all sorry for my english , its not mi primary lenguaje

its my first post here and im really new in ninjatrader

im trying to write an strategy with this rules

ema 14 >ema 9 and close < ema 9
short 100 at market
set stop loss at ema 14

ema 14 <ema 9 and close > ema 9
long 100 at market
set stop loss at ema 14

the idea is that on each bar update NT moves automatic the stop loss

i write this but gives me lot of errors

protected override void Initialize()
SetStopLoss("", CalculationMode.Price, EMA(MediaL), false);

CalculateOnBarClose = true;

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

// Condition set 1
if (EMA(MediaC)[0] < EMA(MediaL)[0]
&& Close[0] < EMA(MediaC)[0])
EnterShort(100, "");

// Condition set 2
if (EMA(MediaC)[0] > EMA(MediaL)[0]
&& Close[0] > EMA(MediaC)[0])
EnterLong(100, "");

Thaks for you help and for teachme

Reply With Quote

Old July 10th, 2014, 12:28 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Mobile Stop Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
The importance of web/mobile trading Big Mike Platforms and Indicators 22 May 28th, 2014 01:47 AM
mouse click for Buy Stop and Sell stop On NT7 lexxmd NinjaTrader 8 May 15th, 2014 08:46 AM
Mobile Trading datahogg ThinkOrSwim 11 February 19th, 2014 04:34 PM
Ninjatrader strategy for Trailing Stop and stop loss. skann NinjaTrader 2 August 20th, 2013 07:34 PM
Mobile trading discussion Eric j Traders Hideout 18 September 28th, 2011 10:48 PM

All times are GMT -4. The time now is 02:04 PM.

Copyright © 2016 by 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 2016-10-23 in 0.08 seconds with 20 queries on phoenix via your IP