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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
138 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment