Okay, I understand but to close the loop on draw region, from the ninja help file.
Draws a region on a chart.
Method Return Value
An IRegion object that represents the draw object.
DrawRegion(string tag, int startBarsAgo, int endBarsAgo, IDataSeries series, double y, Color outlineColor, Color areaColor, int areaOpacity)
DrawRegion(string tag, int startBarsAgo, int endBarsAgo, IDataSeries series1, IDataSeries series2, Color outlineColor, Color areaColor, int areaOpacity)
DrawRegion(string tag, DateTime startTime, DateTime endTime, IDataSeries series, double y, Color outlineColor, Color areaColor, int areaOpacity)
DrawRegion(string tag, DateTime startTime, DateTime endTime, IDataSeries series1, IDataSeries series2, Color outlineColor, Color areaColor, int areaOpacity)
A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.
The starting bar (x axis co-ordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back.
The starting time where the draw object will be drawn.
The end bar (x axis co-ordinate) where the draw object will terminate
The end time where the draw object will terminate
series, series1, series2
Any DataSeries type object such as an indicator, Close, High, Low etc.. The value of the object will represent a y value.
Any double value
Region outline color (reference)
Region fill color (reference)
Sets the level of transparency for the fill color. Valid values between 0 - 10. (0 = completely transparent, 10 = no opacity)
// Fills in the region between the upper and lower bollinger bands
DrawRegion("tag1", CurrentBar, 0, Bollinger(2, 14).Upper, Bollinger(2, 14).Lower, Color.Empty, Color.Lime, 2);
"Money is better than poverty, if only for financial reasons." - Woody Allen
i have 16gb of ram thats not the problem.
i am using the indicator to trade gold on a relative small better renko chart and due to intense calculations during fast moving market ninjatrader hangs/freezes for a few seconds. so its not possible to set orders during these times.
i use it with cobc=false and each tick the indicator is calculated over all x thousand bars.
i really need this to be fixed...
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.