Thanks again
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
moving anchor point to price for custom rule
Collapse
X
-
moving anchor point to price for custom rule
Hello, I need help, I am creating a rule and I need one of the points to automatically move to the current price level, to update the tool so that it has the price value I have no problem, but to convert the price into a new point yes , Could you help me? Being able to transform a double price value to a point
Thanks againTags: None
-
Point lineEndPoint2 = new Point(chartControl.Instrument.MarketData.Last.Pric e, chartControl.Instrument.MarketData.Last.Price);
solved on part now to find bar
-
Hello RubenCazorla,
This is a DrawingTool script is this correct?
The chart bars object can be found with GetAttachedToChartBars().
With this you can use Bars.GetClose() or .GetTime(), etc.
The price can be converted to a Y value with chartScale.GetYByValue().
The barSlot can be converted to a X value with ChartControl.GetXByBarIndex().
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
6 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
242 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
13 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
||
Started by bortz, 11-06-2023, 08:04 AM
|
51 responses
1,996 views
0 likes
|
Last Post
by aligator
Today, 05:50 PM
|
Comment