I am trying to add the option to display arrows when triggered. Keyword "option" (I.e. Bool). When compiling the code I get the error "CS0029 Cannot implicitly convert type 'NinjaTrader.NinjaScript.DrawingTools.ArrowUp' to 'bool'. I thought I had everything correct, but I guess I am missing something small or it cannot be done. Can someone help clarify?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can you bool a drawing?
Collapse
X
-
Can you bool a drawing?
Hello,
I am trying to add the option to display arrows when triggered. Keyword "option" (I.e. Bool). When compiling the code I get the error "CS0029 Cannot implicitly convert type 'NinjaTrader.NinjaScript.DrawingTools.ArrowUp' to 'bool'. I thought I had everything correct, but I guess I am missing something small or it cannot be done. Can someone help clarify?Tags: None
-
Hello bigc0220,
Thanks for your post.
No you would not be able to do that and why would you want to? You can create a condition with a public bool that would allow you to switch the arrows on/off.
if(myBool==true)
Draw.ArrowUp(this, "tag1", true, 0, Low[0] - TickSize, Brushes.Red);
I suggest using the NinjaScript Builder to create the input and then copy/paste the public property into your script.Josh G.NinjaTrader Customer Service
-
That's what I meant, maybe I worded it wrong/weird. I will give this a try and see if it works. Thank you!Originally posted by NinjaTrader_JoshG View PostHello bigc0220,
Thanks for your post.
No you would not be able to do that and why would you want to? You can create a condition with a public bool that would allow you to switch the arrows on/off.
if(myBool==true)
Draw.ArrowUp(this, "tag1", true, 0, Low[0] - TickSize, Brushes.Red);
I suggest using the NinjaScript Builder to create the input and then copy/paste the public property into your script.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment