Trying to set trailing stop to be two ticks below the low>> HELP! - NinjaTrader Programming | futures.io
futures.io futures trading


Trying to set trailing stop to be two ticks below the low>> HELP!
Started: by budfox Views / Replies:994 / 22
Last Reply: 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

Reply
 
Thread Tools Search this Thread
 

Trying to set trailing stop to be two ticks below the low>> HELP!

  #21 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 27 since Jul 2013
Thanks: 14 given, 1 received


kevinkdog View Post
setexitonclose;

but remember it will not work with real money on last bar of day. It works in backtest though.

Hello again, Kevin.

For the life of me, I can't get "MaxPositionProfit" to work anything like a percent trailing. Any ideas or different avenues I should look at?

Any information would be greatly appreciated! -brandon

Reply With Quote
 
  #22 (permalink)
Elite Member
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,212 since Jul 2012
Thanks: 1,010 given, 4,017 received


djvie11 View Post
Hello again, Kevin.

For the life of me, I can't get "MaxPositionProfit" to work anything like a percent trailing. Any ideas or different avenues I should look at?

Any information would be greatly appreciated! -brandon

Did you do something like this? You define XXX - where the function kicks in, and the trailing amount ZZZ

So, if I wanted to hit a max profit of $1000, and then have a stop $500 below that, XXX=1000 and ZZZ=500


if maxpositionprofit> XXX then begin
YYY=maxpositionprofit-ZZZ;

sell next bar at YYY stop;

end;

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
The following user says Thank You to kevinkdog for this post:
 
  #23 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 27 since Jul 2013
Thanks: 14 given, 1 received



kevinkdog View Post
Did you do something like this? You define XXX - where the function kicks in, and the trailing amount ZZZ

So, if I wanted to hit a max profit of $1000, and then have a stop $500 below that, XXX=1000 and ZZZ=500


if maxpositionprofit> XXX then begin
YYY=maxpositionprofit-ZZZ;

sell next bar at YYY stop;

end;

Excellent idea. Once again, thanks again for the knowledge Kevin!

Reply With Quote

Reply



futures.io > > > > > Trying to set trailing stop to be two ticks below the low>> HELP!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
CLICK HERE if you are landlord>>> Creditor trying to garnish my precious rent budfox Off-Topic 16 May 12th, 2014 12:25 PM
ACD System>>>A & C Values for the ES budfox Index Futures Trading 3 October 28th, 2013 05:20 PM
Difference in simulator trading the ES and live trading with a small account>>> budfox Traders Hideout 8 July 6th, 2013 11:59 PM
BLUELINE DELIGHT >>>Intraday Trading Strategy Guide<<< Gabriyele The Elite Circle 407 May 30th, 2013 08:29 AM
TIP : Search for free NinjaTrader Indicator on BMT ? >> How to use our searchtools ! max-td Beginners and Introductions 2 July 19th, 2010 07:16 AM


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

no new posts
Page generated 2017-01-20 in 0.08 seconds with 19 queries on phoenix via your IP 54.163.112.69