Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
On render and drawing rectagles based on price and time
Collapse
X
-
Hello ballboy11,
You can find the conversion methods for X/Y values in the following two pages:
If you already have a price/time value and wanted to convert to X/Y you can use the following:
For converting a time to an X value use ChartControl.GetXByTime()
For converting a Price to Y value use ChartScale.GetYByValue()
To collect prices/times you can use the GetValueAt() method to retrieve price/time data from the series:
Code:Close.GetValueAt(i) Time.GetValueAt(i)
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
30 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
17 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
9 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
16 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
19 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment