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
Autoscaling Indicators
Collapse
X
-
Autoscaling Indicators
I don't understand why I can't get the chart to autoscale to the bar range and ignore the indicator lines I'm drawing. There should be at least some way to set this in the indicator code if not in the settings. Shouldn't there? I attached a chart to illustrate what I'm referring to. As you can see in the chart all the price bars are in the upper half of the screen and its apparently scaling on the PrevHigh on the top and the ONLow on the bottom. Any idea if there is a way to fix this?Tags: None
-
Autoscaling Indicators
Bertrand,
Thanks for your expeditious response. So I tried converting these lines from a plot to a DrawLine, and apparently I don't have a clue how to do this. Though the indicator compiled without errors, the lines disappeared from the chart. I've attached the Previous Day High and Low indicator. Could you please take a look and see what I'm doing wrong.
Thanks in advance.Attached Files
Comment
-
Any error in your Control Center log tab? Looks like you miss a CurrentBars check to prevent accessing unavailable bars at the chart series start.
You also use just one tag id for the drawing object, thus updating only one object - meaning you do not keep the history of objects, as just the current one is continuously modified.
BertrandNinjaTrader Customer Service
Comment
-
Autoscale Indicators
OK, so I implemented the changes you specified in your response to my post and the Previous day High and Low are showing up again on my charts however the chart is still not autoscaling to the pricebars only. It is still autoscaling to the Previous Day high and low just like it was doing when I was plotting the lines. I have attached my new code. Please HELP!!Attached Files
Comment
-
You still have the DrawText set to autoscale for the PrevHigh. Can you try setting these to false and see if it is still autoscaling?
DrawText("PivotTag1",false,"PrevHigh",-1,prevHigh,0,Color.Red,textFont,StringAlignment.Ne ar, Color.Transparent, Color.Transparent, 0);
DrawText("PivotTag2",false,"PrevLow ",-1,prevLow ,0,Color.Lime,textFont,StringAlignment.Near, Color.Transparent, Color.Transparent, 0);MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
29 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
16 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
28 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
||
Started by kramnor2001, Yesterday, 02:30 PM
|
4 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 10:44 AM
|
||
Started by eduardodipp7, Today, 10:29 AM
|
0 responses
2 views
0 likes
|
Last Post
by eduardodipp7
Today, 10:29 AM
|
Comment