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:1,109 / 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,236 since Jul 2012
Thanks: 1,046 given, 4,078 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)

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

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 11:25 AM
ACD System>>>A & C Values for the ES budfox Emini Index Futures Trading 3 October 28th, 2013 04:20 PM
Difference in simulator trading the ES and live trading with a small account>>> budfox Traders Hideout 8 July 6th, 2013 10:59 PM
BLUELINE DELIGHT >>>Intraday Trading Strategy Guide<<< Gabriyele The Elite Circle 407 May 30th, 2013 07:29 AM
TIP : Search for free NinjaTrader Indicator on BMT ? >> How to use our searchtools ! max-td Beginners and Introductions 2 July 19th, 2010 06:16 AM


All times are GMT -4. The time now is 06:18 PM.

no new posts
Page generated 2017-03-24 in 0.07 seconds with 19 queries on phoenix via your IP 54.197.104.221