Hello, I would like to know if it is possible to put my take profit on the size of my entry candle? If possible how I should proceed or if anyone has an idea I'm interested. Thank you in advance, any help is welcome.
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
Take profit the size /range of entry bar
Collapse
X
-
Hello janio973,
From the image its hard to tell, is the space between the High of the bar and the top line the amount of price difference between the High and Low of the bar?
If so you would need to subtract the Low from the High to know the difference in Price for that bar. With that difference you could use that to Add to the bars High price which would give you the High plus the difference.
JesseNinjaTrader Customer Service
Comment
-
I am at home now,I manage to make something better for you to understand.
I have a strategy that shows me the entry(blue candle),
I just need now set my take profit 100% of the size of that entry candle from its high,when the order is triggered
and set stop loss at its low.
Manually its easy to do all this,but I am looking a way to do this with builder or editor.
The help I need is in this way ,Last edited by janio973; 06-16-2022, 05:13 PM.
Comment
-
Hello janio973,
What I mentioned in post 4 would be how to do that:
You would need to subtract the Low from the High to know the difference in Price for that bar. With that difference you could use that to Add to the bars High price which would give you the High plus the difference.
If you are using the strategy builder this type of math would require using a custom Series double to store the result of the High minus the Low. You can then use that series in conditions or for offset values. To add to an existing price you would select the High series for example and then in that series parameters it has the Offset parameter, you would use the custom series there to add to the high price.
JesseNinjaTrader Customer Service
Comment
-
Hello NinjaTrader_Jesse , thanks for you help
for example Its something like high1-low1=20ticks
and set profit target high0+20
thats what I understand but write this code is what I dont know to do,
If someone can give me an hand with that code line ,it would be wonderful
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Balage0922, Today, 07:38 AM
|
0 responses
2 views
0 likes
|
Last Post
by Balage0922
Today, 07:38 AM
|
||
Started by JoMoon2024, Today, 06:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by JoMoon2024
Today, 06:56 AM
|
||
Started by Haiasi, 04-25-2024, 06:53 PM
|
2 responses
19 views
0 likes
|
Last Post
by Massinisa
Today, 05:32 AM
|
||
Started by Creamers, Today, 05:32 AM
|
0 responses
6 views
0 likes
|
Last Post
by Creamers
Today, 05:32 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
12 responses
1,786 views
0 likes
|
Last Post
by Leafcutter
Today, 05:30 AM
|
Comment