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
How to display chart marker, in a fixed place.
Collapse
X
-
How to display chart marker, in a fixed place.
Guys, can someone tell me how to display the marker arrow, let's say arrow up, on the top, in the specified place in the charts when a certain condition is true, without reference to the bar and the Y-axis? For example, not as in DrawArrowUp ("tag1", true, 0, Low [0] - TickSize, Color.Red), similarly with DrawTextFixed. -
Hello Stock,
Thank you for your post and welcome to the NinjaTrader Support Forum!
The best example of custom plotting can be found by going to your NinjaTrader Control Center > Tools > Edit NinjaScript > Indicator > CustomPlotSample > OK.
The methods used within this sample can be used to create your own custom plots at fixed regions on the chart if you wish.
Please let me know if you have any questions.
-
I looked through the example and as far as I understand it, this method allows to only draw a rectangle or a text, right? How can I to draw a specific object such as an arrow up or a dot? Can you advise any method to use in order to drow exactly chart marker?Last edited by Stock; 02-14-2013, 01:05 PM.
Comment
-
Hello Stock,
Thank you for your response.
You can use DrawTextFixed and use the Wingdings3 font and the character 'h' for an up arrow.
For a dot you can use any font that you wish and either '.' or '*' for the dot. Unfortunately, there is no DrawArrowFixed or DrawDotFixed method in NinjaScript.
Please let me know if I may be of further assistance.
Comment
-
Originally posted by Stock View PostI looked through the example and as far as I understand it, this method allows to only draw a rectangle or a text, right? How can I to draw a specific object such as an arrow up or a dot? Can you advise any method to use in order to drow exactly chart marker?
If you do not know what character represents the symbol, you can always use the default Windows System Tool called Character Map to copy and paste it into your indicator method.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by adeelshahzad, Today, 03:54 AM
|
2 responses
15 views
0 likes
|
Last Post
by adeelshahzad
Today, 09:27 AM
|
||
Started by dappa, Today, 09:18 AM
|
1 response
5 views
0 likes
|
Last Post Today, 09:25 AM | ||
Started by bill2023, Yesterday, 08:51 AM
|
5 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 09:24 AM
|
||
Started by frankthearm, Today, 09:08 AM
|
1 response
3 views
0 likes
|
Last Post Today, 09:23 AM | ||
Started by yertle, Today, 08:38 AM
|
2 responses
7 views
0 likes
|
Last Post
by yertle
Today, 09:19 AM
|
Comment