Which Rule Do I Break "Managed approach" - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

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

Which Rule Do I Break "Managed approach"
Started:September 10th, 2013 (05:18 AM) by benwincky Views / Replies:236 / 2
Last Reply:September 10th, 2013 (05:03 PM) Attachments:0

Welcome to futures.io.

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

Which Rule Do I Break "Managed approach"

Old September 10th, 2013, 05:18 AM   #1 (permalink)
Brussels Belgium
Futures Experience: Beginner
Platform: Ninjatrader
Broker/Data: GAINCAPITAL/Forex.com
Favorite Futures: Forex
Posts: 14 since Mar 2013
Thanks: 5 given, 0 received

Which Rule Do I Break "Managed approach"

Hello to you,

I’m obviously breaking a rule using the managed approach

I’m not really good at reading “log file” thought I’m working hard on it

My initialise() section says

CalculateOnBarClose = true;
EntryHandling = EntryHandling.AllEntries;

SetStopLoss (CalculationMode.Ticks, Stop);

Meeting certain conditions My Strategy wants to send two orders (sometimes one order only and that works perfect)
TimeInForce is GTC

Let’s suppose we go long
A EnterLong() with a SetStopLoss() and a SetProfitTarget() tagged “Order1”
And in the same set of instruction

A EnterLongStop() tagged “Order2” let’s say X(value) above the entry price of the previous EnterLong() average filled price.

Both should Exit at the “Profit Target” of “Order1”

Here is the code generating the error

private void GoLong()
Print(ChartName + " ACHAT EST LANCE"+String.Format("{0:HH:mm:ss}",DateTime.Now)+" "+Price);
SetProfitTarget ("order1",CalculationMode.Ticks,Target);
EnterLong(Coef , "order1");

if(GainToReach > 65)// let’s suppose it is above 65
And now I Hit the problem


startPice = Positions[0].AvgPrice + Xparam*TickSize;
Print("startPice "+startPice);
orderStopName = "LongOrderStop";
SetProfitTarget (orderStopName,CalculationMode.Ticks,Yparam);


It compiles nice and beautiful
Coef , X , Y have a printout in the output windows and are certified “Clean”

Witch rule do I break

Thanks in advance

Reply With Quote

Old September 10th, 2013, 05:18 AM   #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.


Old September 10th, 2013, 05:03 PM   #3 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,447 since Jun 2009
Thanks: 28,848 given, 79,603 received

In #init set TraceOrders = true; and then review the output dialog box.


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Which Rule Do I Break "Managed approach"

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Which Risk Management approach is "best"? keymoo Psychology and Money Management 16 September 25th, 2012 09:23 PM
is martingale "double down" approach reasonable? supermht Traders Hideout 10 July 28th, 2012 03:21 PM
"Corzine rule" proposed for futures brokers kbit News and Current Events 3 May 30th, 2012 05:13 AM
An "Austrian View" Approach To Equity Prices Quick Summary News and Current Events 0 December 23rd, 2011 06:40 PM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 10:44 PM

All times are GMT -4. The time now is 06:34 AM.

Copyright © 2016 by 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

Page generated 2016-10-28 in 0.07 seconds with 19 queries on phoenix via your IP