Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bar open close delta
Collapse
X
-
Hello dannyh,
Thank you for your post.
How are you intending to use Delta for the Stop Loss and Profit Target?
If you wish to use it as an input, the Strategy Wizard does not have a native calculation available for input for Delta.
You will need to create your own indicator that calculates this value and then use that value as the input.
Please let me know if you have any questions.
-
Thanks for the quick response. For example, if i spot a "hammer" in a falling market and enter long in the next bar open and want to set both target and stop as the delta of the open and close of the bar before the "hammer". Do you have an example code as a start point? I imagine this is a fairly common indicator for setting profit and loss for any strategy.
Comment
-
Hello dannyh,
Thank you for your response.
So will you be using the difference in Delta between buy and sell volume to determine the distance from the entry price to place your Stop Loss and Profit Target?
Will you be using Percent, Price or Ticks for the CalculationMode?
I look forward to your response.
Comment
-
Originally posted by dannyh View PostNo, I won't use the volume but will use the tick in calculation mode. To be clear, when I say delta in open and close, it is basically the difference between the 2. Thanks.
Comment
-
Hello dannyh,
Thank you for your response.
As koganam mentioned the Range() indicator would give this information or you could program it into your strategy as well. Either method will require hard coding the NinjaScript Strategy outside of the Strategy Wizard.
Please let me know if you have questions on doing this outside of the Strategy Wizard.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
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
|
||
Started by poplagelu, Today, 05:00 AM
|
0 responses
3 views
0 likes
|
Last Post
by poplagelu
Today, 05:00 AM
|
Comment