NexusFi: Find Your Edge


Home Menu

 





Need some help from coders


Discussion in NinjaTrader

Updated
    1. trending_up 1,447 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

Can you help answer these questions
from other members on NexusFi?
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
Commodities
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,972 since Jun 2009
Thanks Given: 534
Thanks Received: 3,720

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