Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Candle size
Collapse
X
-
Candle size
Hello, I am looking for an indicator that calculates the size in ticks of the body and the wicks of the previous candle or the previous candles that I define, 10-20-30... I am attaching an image. Is there something similar? thank you so muchTags: None
-
Hello punkiy2111,
You would need to create this custom logic.
To measure the candle size in ticks, subtract the low from the high and divide by TickSize.
Print( (High[0] - Low[0]) / TickSize);
You can use a for loop to loop through previous bars.
Chelsea B.NinjaTrader Customer Service
-
Thanks Chelsea but I'm not a very good programmer. Could you give a brief indication if you would be so kind? Thank you very much in advance.
Comment
-
Hello punkiy2111,
I'm not aware of a script that already does this.
Your post was posted in the Indicator Development section of the forums and not the NinjaScript File Sharing Discussion section.
I've moved your post to the NinjaScript File Sharing Discussion section. If this is a script you are developing yourself and are wanting assistance with the code, please let me know and I will move this back.
This thread will remain open for any community members that may know of an existing indicator with this custom behavior.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
Chelsea B.NinjaTrader Customer Service
Comment
-
-
Please can someone help me? The total ticks of the green candle should be down and the total ticks of the bearish candle should be up. Thanks in advance.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Graci117, Today, 09:02 PM
|
1 response
4 views
0 likes
|
Last Post Today, 09:09 PM | ||
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
7 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:55 PM
|
||
Started by janio973, Today, 07:24 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:35 PM | ||
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
245 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
14 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
Comment