![]() |
|
|
#1 |
|
Senior Member
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 5 times in 4 posts
|
Hi,
I'm trying to have text drawn when certain conditions are fulfilled. I've managed to get "1" printed (as shown in the attached chart but can't get "2" printed. There were also no errors in the log. Would you mind helping? I've enclosed the code as well. Thanks! Kay Wai |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello Kaywai,
One thing it might be is the DrawText field for the objects "tag" is not unique for drawing 1 and 2. Try changing this line to: Code:
DrawText("BS2" + CurrentBar, "2", 0, (Low[0]-TickSize), Color.Green);
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 5 times in 4 posts
|
Hi Ryan,
Tried it. the '2' still won't appear... |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi kaywai,
You probably need to look at your logic to see if it's working as expected. Try adding print statements to check the value of _boolThereIsNoBullishFlip Code:
Print(_boolThereIsNoBullishFlip);
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 5 times in 4 posts
|
Thanks for the guidance Ryan
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DrawText | tradinginzen | General Programming | 8 | 04-22-2009 01:32 PM |
| DrawText | rcotrade | Indicator Development | 6 | 03-24-2009 03:51 PM |
| DrawText etc | Lost Trader | Indicator Development | 4 | 01-18-2009 10:09 AM |
| Drawtext | spenbm01 | Miscellaneous Support | 3 | 06-06-2008 11:23 PM |
| DrawText | Mike Winfrey | General Programming | 1 | 12-21-2007 04:57 PM |