Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Arithmetic in Strategy Builder
Collapse
X
-
Arithmetic in Strategy Builder
I'm looking to calculate the amount of the wick of a candle in proportion to the whole candle. Basically, the condition will be met if the candle is at least a certain percentage of the entire candle. The formula I came up with for a bearish candle would be (High - Open) / (High - Low) > Input Percentage. Meaning the upper wick of a bearish candle is at least a certain percentage of that entire candle. Is there a way to do this using the Strategy Builder? Or maybe an easier way to do this in the Strategy Builder? I can't think of a way to do it.
Thanks!Tags: None
-
Hello srtrader,
The only way to be able to do arithmetic would be to use a Series, you could add a custom series to be used for calculating a value on each bar.
For what you described that would require using 3 series. A first series could be used to set the value of High - Open. A second series can be used for High - Low. A third series can then be used to divide the value of the other two series giving you the result. That result series could be compared against the Misc. -> Numeric value or a user input.
- Likes 1
-
Hello NinjaTrader_Jesse, how does one insert a Series into a strategy in Strategy Builder? I don't see that option. Can you please provide screenshots of what you are talking about? I am also interested in setting up a condition where the wick is a certain percentage of the candle.
Thank you!
Comment
-
Hello dwfromhawaii,
You can use the additional data tab for that. Please see the help guide for information about using the builder: https://ninjatrader.com/support/help...gy_builder.htm
If you have other questions please ensure to make a new post of your own.
Comment
-
Hi Jesse, Is it possible as you say to divide the result of the first series by the value of the second series, using the strategy builder without having to code? I try to enter the values on the "Offset" "Arithmetic" option, but it gets erased while typing.Originally posted by NinjaTrader_Jesse View PostHello srtrader,
The only way to be able to do arithmetic would be to use a Series, you could add a custom series to be used for calculating a value on each bar.
For what you described that would require using 3 series. A first series could be used to set the value of High - Open. A second series can be used for High - Low. A third series can then be used to divide the value of the other two series giving you the result. That result series could be compared against the Misc. -> Numeric value or a user input.
Comment
-
Hello voltation,
To do any kind of math in the builder between two series you would need to make a custom series so you can store the result. If you two series and want to divide them you would need to create a third series and use that to set the value of the division.
Instead of typing into the offset box you need to hover the mouse over that box and click Set. That will open a new window which you can select the second series.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment