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 inanazsocial, Today, 01:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by inanazsocial
Today, 01:15 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
22 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
||
Started by guillembm, Yesterday, 11:25 AM
|
2 responses
9 views
0 likes
|
Last Post
by guillembm
Yesterday, 11:58 PM
|
||
Started by junkone, 04-21-2024, 07:17 AM
|
9 responses
70 views
0 likes
|
Last Post
by jeronymite
Yesterday, 11:51 PM
|
Comment