(for example) Open and Close using the TickSize or perhaps differently??
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
Help, the problem with the calculation of ticks
Collapse
X
-
Help, the problem with the calculation of ticks
Hello, please tell me how to make a strategy to determine what number of ticks between
(for example) Open and Close using the TickSize or perhaps differently??Tags: None
-
Hello Papercut110,
Thanks for your post.
Here is an example of code to first take the absolute value of Close[0] - Open[0] which will provide the price difference divided by the TickSize which will convert to the number of ticks:
int numberofticks = Convert.ToInt32(Math.Abs((Close[0] - Open[0]) / TickSize)) ;
Reference:
Paul H.NinjaTrader Customer Service
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DanielSanMartin, Today, 02:37 PM
|
1 response
6 views
0 likes
|
Last Post Today, 02:57 PM | ||
Started by samish18, Today, 08:57 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 02:54 PM | ||
Started by The_Sec, Yesterday, 02:29 PM
|
2 responses
12 views
0 likes
|
Last Post
by The_Sec
Today, 02:30 PM
|
||
Started by love2code2trade, Today, 01:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 02:10 PM | ||
Started by Gibranes, Today, 10:05 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 01:55 PM |
Comment