NexusFi: Find Your Edge


Home Menu

 





Need some help from coders


Discussion in NinjaTrader

Updated
    1. trending_up 1,376 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 mborin 
san antonio tx/usa
 
Experience: Advanced
Platform: NinjaTrader
Trading: Stocks
Posts: 13 since Jun 2012
Thanks Given: 2
Thanks Received: 5

Is there a way to implement a trailing stop in a strategy that takes multiple positions to average in. Basically I want to set a 25% trailing stop from the Avg. Position Price each time an additional entree is made. If you can show code examples I would greatly appreciate it.


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #2 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,971 since Jun 2009
Thanks Given: 534
Thanks Received: 3,711

It doesn't make sense to have a trailing stop because avg price is based on the avg price the trade was entered at, not current price. Even if price goes up to infinity the avg price/cost will remain the same and, hence, your 25% stop will be static as well.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 13, 2014


© 2026 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 - Downloads - Top
no new posts