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 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,771 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?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #22 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,647 since Jul 2012
Thanks Given: 1,890
Thanks Received: 7,338


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