![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
is there a way to filter or keep the drawing objects (triangles in this example) from popping up once the criteria has been met?
maybe another "x amount" of bars required to start drawing again... if ((High[0] >= SMA(89)[0]) && (High[0] >= KeltnerChannel(1.5, 22).Lower[0] + -2 * TickSize) && (SMA(89)[0] <= EMA(22)[0] ) && (Diff[1] >= 0) && (Stochastics(5, 3, 3).K[1] <= stokl || Stochastics(5, 3, 3).K[2] <= stokl || Stochastics(5, 3, 3).K[0] <= stokl) ) DrawTriangleUp(Time[0].ToString(), 0, Low[1] - 5.25* TickSize, Color.Yellow); |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
you could add a custom flag variable like:
- only draw if condition are met and flag is false - set flag to true if drawn -> won't draw again after flag is set
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Update of Drawing Objects | phylum | Charting | 7 | 09-30-2012 11:20 AM |
| Delete drawing objects | cls71 | Indicator Development | 4 | 09-26-2008 11:35 AM |
| Drawing Objects Disappear | tommyjames | Historical NinjaTrader 6.5 Beta Threads | 3 | 02-26-2008 12:46 PM |
| Indicator: Drawing unique objects and objects that update | NinjaTrader_Josh | Reference Samples | 0 | 09-24-2007 09:01 PM |
| Drawing objects and memory | mazachan | General Programming | 2 | 08-16-2007 06:58 PM |