I am trying to make an indicator that uses trade data. looking to have it display the entry price once I enter a trade, and then when I exit with partial profits, it would 'move' the entry price line to show what my new break-even price would be given the new profits. Can an indicator do this? or a strategy? Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can indicators work using trade data?
Collapse
X
-
Can indicators work using trade data?
Hi NT 7,
I am trying to make an indicator that uses trade data. looking to have it display the entry price once I enter a trade, and then when I exit with partial profits, it would 'move' the entry price line to show what my new break-even price would be given the new profits. Can an indicator do this? or a strategy? Thank you!
Tags: None
-
Hello Austiner87,
Thanks for your reply.
In NinjaTrader7 you are a bit limited in what you can do along these lines.
From a non-programming approach, open two charts (same instrument and same account) and on one apply the strategy and on the other enable the chart trader. The chart trade will display the entry price line according to the value of Position.AvgPrice. The same is true if you manually trade (with the chart trader) as well.
From a scripting point of view, I would suggest looking at my colleague Jesse's example of accessing account data from an indicator: https://ninjatrader.com/support/foru...rategy?t=68029 as Jesse notes this is undocumented and unsupported in NinjaTrader7. You can do this in NinjaTrader8 where it is documented and is supported.Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,825 views
0 likes
|
Last Post Today, 09:09 AM | ||
Started by Option Whisperer, Today, 09:05 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 09:05 AM | ||
Started by cre8able, Yesterday, 01:16 PM
|
3 responses
11 views
0 likes
|
Last Post
by cre8able
Today, 08:28 AM
|
||
Started by Harry, 05-02-2018, 01:54 PM
|
10 responses
3,204 views
0 likes
|
Last Post
by tharton3
Today, 08:52 AM
|
||
Started by ChartTourist, Today, 08:22 AM
|
0 responses
6 views
0 likes
|
Last Post
by ChartTourist
Today, 08:22 AM
|
Comment