NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one djvie11 with 11 posts (0 thanks)
    2. looks_two kevinkdog with 8 posts (7 thanks)
    3. looks_3 budfox with 3 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (1 thanks)
    1. trending_up 5,920 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 22 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #21 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1


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

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
About a successful futures trader who didnt know anythin …
Psychology and Money Management
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
 
  #22 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


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;

Follow me on Twitter Reply With Quote
Thanked by:
  #23 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1



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




Last Updated on September 26, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts