Need some help from coders - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Need some help from coders
Started:January 13th, 2014 (01:31 PM) by mborin Views / Replies:202 / 1
Last Reply:January 13th, 2014 (03:38 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Need some help from coders

Old January 13th, 2014, 01:31 PM   #1 (permalink)
Elite Member
san antonio tx/usa
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: Stocks
Posts: 13 since Jun 2012
Thanks: 2 given, 5 received

Need some help from coders

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.

Reply With Quote

Old January 13th, 2014, 03:38 PM   #2 (permalink)
OC, California, USA
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
shodson's Avatar
Posts: 1,829 since Jun 2009
Thanks: 470 given, 3,159 received

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.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Need some help from coders

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommended coders peglegtrading MetaTrader 17 May 16th, 2012 01:37 PM

All times are GMT -4. The time now is 06:39 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-27 in 0.06 seconds with 19 queries on phoenix via your IP