PDA

View Full Version : Drawing region



AlesGreesiubs
04-06-2016,
Hi,Support and All,

could you please provide an example on how to draw a region until conditions change.Let`s say,for a channel until upper or lower band breached?

Thank you

Amindyirreday
04-07-2016,
Quote:
Originally Posted by outsource View Post
Hi,Support and All,

could you please provide an example on how to draw a region until conditions change.Let`s say,for a channel until upper or lower band breached?

Thank you
ok-- this now makes more sense with this post here:

http://ninjatrader.com/support/forum...d.php?p=431124


There are plenty of examples in the NT7 indicator forum here.

Here's one such example:

http://ninjatrader.com/support/forum...atid=4&lpage=2

alkuqvdgzzqk
04-07-2016,
Quote:
Originally Posted by sledge View Post
ok-- this now makes more sense with this post here:

http://ninjatrader.com/support/forum...d.php?p=431124


There are plenty of examples in the NT7 indicator forum here.

Here's one such example:

http://ninjatrader.com/support/forum...atid=4&lpage=2
Hi,Sledge,

i use exactly the same drawregion command as per example you`ve provided,but it doesn`t shade the bands according to the signal.It does shade for the bar[1] and bar[0] only,and not between signals


if(drawChannelArea){
DrawRegion("regionup" + CurrentBar, 1, 0, Upper, Lower, Color.Transparent, upChannelAreaFillColor, 5);
}

antefskeefs
04-08-2016,
Hello,

There is another example on the forum called SMARegions which contains logic for signals.
http://ninjatrader.com/support/forum...d=4&linkid=491

This draws a region and is based on a single condition in which sets two bools BreakOut and BreakDn.

Depending on which bool is activated, the Regions are drawn for the period of bars in which that bool remained active.

I look forward to being of further assistance.
Jesse

AngelaVeique
04-09-2016,
Quote:
Originally Posted by NinjaTrader_Jesse View Post
Hello,

There is another example on the forum called SMARegions which contains logic for signals.
http://ninjatrader.com/support/forum...d=4&linkid=491

This draws a region and is based on a single condition in which sets two bools BreakOut and BreakDn.

Depending on which bool is activated, the Regions are drawn for the period of bars in which that bool remained active.

I look forward to being of further assistance.
Thanks,Jesse,

but it still not shading the area properly,but shading it sort by chunk - randomly.