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 AaronKoRn, Today, 09:49 PM
|
0 responses
6 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
9 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
10 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,977 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment