Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to Set Dynamic Target Based on how far away my stop is?
Collapse
X
-
This is a feature request to be able to display (i) Active PnL, (ii) Targets and (iii) Stops as:
1. Percentage of the account equity,
2. Factor of R (related to Risk)
Also, please consider a related feature to have the platform calculate and route position size based on above criteria to establishing ATM orders.
Leave a comment:
-
Hello condorhero,
You would need to keep track of the prices where you are submitting orders to double variables.
Below is a link to an example.
https://ninjatrader.com/support/foru...269#post802269
https://ninjatrader.com/support/foru...596#post806596
Or you can get the order price from OnOrderUpdate.
Leave a comment:
-
How to Set Dynamic Target Based on how far away my stop is?
Currently I have
if (CrossAbove(Close,SMA,1))
{ EnterLong () ;
StopPrice = MIN(Low, 10)[0];
How do I get This Value Below?
TargetPrice = (Position.AveragePrice + ( 2 * ( the distance between position and stop));
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
3 views
0 likes
|
Last Post Today, 08:47 AM | ||
Started by DavidHP, Today, 07:56 AM
|
1 response
5 views
0 likes
|
Last Post Today, 08:16 AM | ||
Started by kujista, Today, 06:23 AM
|
3 responses
9 views
0 likes
|
Last Post
by kujista
Today, 08:15 AM
|
||
Started by Mindset, Yesterday, 02:04 AM
|
2 responses
18 views
0 likes
|
Last Post Today, 08:15 AM |
Leave a comment: