Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
DashStyle error
Updated August 4, 2012
trending_up
1,823 views
thumb_up
1 thanks given
group
1 followers
forum
5 posts
attach_file
1 attachments
DashStyle error
August 4th, 2012, 04:55 AM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,466 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665
OK, where am I going wrong? It's been a while...
Add(new Plot(Color.White, "mRSI"));
Add(new Plot(Color.Gray, PlotStyle.Line, "Avg"));
Plots[0].Pen.Width = 2;
Plots[1].Pen.DashStyle = DashStyle.Dash;
Indicator\mRSI.cs The name 'DashStyle' does not exist in the current context CS0103 - click for info 44 29
Mike
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
August 4th, 2012, 05:33 AM
Northern Germany
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824
Big Mike
OK, where am I going wrong? It's been a while...
Add(new Plot(Color.White, "mRSI"));
Add(new Plot(Color.Gray, PlotStyle.Line, "Avg"));
Plots[0].Pen.Width = 2;
Plots[1].Pen.DashStyle = DashStyle.Dash;
Indicator\mRSI.cs The name 'DashStyle' does not exist in the current
context CS0103 - click for info 44 29
Mike
Looks fine to me and compiles fine too...
vvhg
August 4th, 2012, 05:37 AM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,466 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665
vvhg
Looks fine to me and compiles fine too...
vvhg
WTF ... won't compile here.
This too:
DrawLine("HH " + CurrentBar, true, mrohh, Value[mrohh], 0, Value[mrohh1], Color.Lime, DashStyle.Solid, 2);
Same thing, DashStyle error.
I guess I will have to contact NinjaTrader Support.
@vvhg , can you please check to see if I am missing a reference? That is all I can think of.
Mike
August 4th, 2012, 05:50 AM
Northern Germany
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824
Big Mike
WTF... won't compile here.
This too:
DrawLine("HH " + CurrentBar, true, mrohh, Value[mrohh], 0, Value[mrohh1], Color.Lime, DashStyle.Solid, 2);
Same thing, DashStyle error.
I guess I will have to contact
NinjaTrader Support.
@
vvhg , can you please check to see if I am missing a reference? That is all I can think of.
Mike
References are the same I have, so that can't be the cause.
Have you perhaps deleted a using declaration by accident? Mine (standard) are:
vvhg
August 4th, 2012, 05:53 AM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,466 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665
vvhg
References are the same I have, so that can't be the cause.
Have you perhaps deleted a using declaration by accident? Mine (standard) are:
Attachment 83686
vvhg
That was it, I was missing Drawing2D. No idea why...
Mike
Last Updated on August 4, 2012