Moving stop loss and issue backtesting NT7 - NinjaTrader Programming | futures io social day trading
futures io futures trading


Moving stop loss and issue backtesting NT7
Updated: Views / Replies:1,869 / 4
Created: by erk707 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

Reply
 
Thread Tools Search this Thread
 

Moving stop loss and issue backtesting NT7

  #1 (permalink)
Elite Member
Irvine, CA
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Piano, ES, GC, CL, NQ, 6E
 
Posts: 21 since Feb 2011
Thanks: 5 given, 4 received

Moving stop loss and issue backtesting NT7

I have an issue with a strategy I wrote and backtesting in NT7. Its pretty simple but I do not know what I did wrong. Basic example would be I enter a position and have a stop loss of 5 ticks. Once I have gained 5 ticks of profit I want to move the stop loss 5 ticks to the entry point of the trade to protect against loss. When I move to the entry point or any place past the entry point backtesting fails and shows that I am just entering and exiting at the same time. If I specify that when I gain 5 ticks of profit I want to move the stop loss say 4 tick only(something greater than the entry point of the trade) everything works fine. Time doesnt seem to matter, but the moment I try to move the stop to or past the entry price backtesting breaks down and just shows that I win all trades but all its really doing is entering and exiting simotaneously. Is it a common error with NT7, I was thinking of just writing my own code that creates a will say "take profit" stop loss so I can write to the log and view. The problem with the log is if a stop loss is hit no signal is recorded. Any way around this? Or do I have to write my own take profit and then close all other positions.

Any help would be much appreciated.

Reply With Quote
 
  #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.

 
  #3 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received


What timeframe are you testing on? You will probably want to test on 1 tick time frame and if your trade logic uses a higher timeframe you would add a second dataseries.

Reply With Quote
The following user says Thank You to MXASJ for this post:
 
  #4 (permalink)
Elite Member
Irvine, CA
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Piano, ES, GC, CL, NQ, 6E
 
Posts: 21 since Feb 2011
Thanks: 5 given, 4 received

Testing on a 3 range bar. Everything works fine until I try to set the stop loss at the same price as entry price. Then backtesting goes crazy and just enters then exits. I have tried other time frame on your note but still same issue. Is there a function in NT7 for setting breakeven?

Reply With Quote
 
  #5 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received


erk707 View Post
Testing on a 3 range bar. Everything works fine until I try to set the stop loss at the same price as entry price. Then backtesting goes crazy and just enters then exits. I have tried other time frame on your note but still same issue. Is there a function in NT7 for setting breakeven?

Try changing the stop loss price to the entry price on the bar after you have entered.

Reply With Quote

Reply



futures io > > > > > Moving stop loss and issue backtesting NT7

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Stop Loss wallsteetking NinjaTrader Programming 2 March 7th, 2011 09:59 AM
ChartTrader moving stop loss rejection PiCoTrader NinjaTrader 7 November 15th, 2010 07:55 AM
"Stop If Bid" command for entry's and stop loss arjfca EasyLanguage Programming 4 October 7th, 2010 06:05 PM
Trailing stop loss kavin729 NinjaTrader Programming 1 August 20th, 2010 02:17 PM
Stop Loss Order Big Mike Terms (Glossary) 0 June 28th, 2010 01:29 AM


All times are GMT -4. The time now is 11:01 PM.

Copyright © 2017 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
Page generated 2017-12-11 in 0.08 seconds with 19 queries on phoenix via your IP 54.145.16.43