NexusFi: Find Your Edge


Home Menu

 





Need some help from coders


Discussion in NinjaTrader

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




 
Search this Thread

Need some help from coders

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
About a successful futures trader who didnt know anythin …
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
 
  #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,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

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 Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 13, 2014


© 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