PDA

View Full Version : Dash Style <Custom>


DavidHP
11-01-2009, 05:22 AM
In the plots section of many of my indicators I see a 'Custom' label.

What and how is this used?

Can you give me an example of how this can be used?

Thanks

NinjaTrader_Ben
11-01-2009, 12:40 PM
Hello,

Are you referring to code? Can you paste in the code you are referring to so I can see the context? If it is not code, take a screen shot and post that.

DavidHP
11-01-2009, 02:59 PM
Hello,

Are you referring to code? Can you paste in the code you are referring to so I can see the context? If it is not code, take a screen shot and post that.

The gray area in the image shows the CUSTOM dropdown item.

THanks,

NinjaTrader_Jason
11-02-2009, 02:33 AM
Hello DavidHP,

The dash style option will configure the dash style of the plot in question.

Unfortunately I am not familiar with this indicator. I suggest to contact the creator or vendor of the indicator to check what style is used for 'Custom'.

DavidHP
11-02-2009, 05:41 AM
Hello DavidHP,

The dash style option will configure the dash style of the plot in question.

Unfortunately I am not familiar with this indicator. I suggest to contact the creator or vendor of the indicator to check what style is used for 'Custom'.


Jason,

You don't have to be familiar with this indicator. I just used this one because it was the first one I opened.

This CUSTOM setting is on EVERY indicator that uses PLOT lines in NT.
It is something built into NT not into indicators.

Perhaps you are familiar with Simple Moving Average?
Here is an image of that.

NinjaTrader_Bertrand
11-02-2009, 07:04 AM
DavidHP, the custom option is used to define custom dashstyle patterns that would need to be defined in your indicator code.

Ralph
11-02-2009, 09:54 AM
Custom is part of the standard c# DashStyle enumeration, David. If you, for example, define a DashPattern yourself, DashStyle would be set to Custom.

Regards
Ralph

DavidHP
11-02-2009, 01:40 PM
Custom is part of the standard c# DashStyle enumeration, David. If you, for example, define a DashPattern yourself, DashStyle would be set to Custom.

Regards
Ralph

Thanks Ralph, Bertrand,

I figured that was the answer. I've just never seen any examples in the script archives.

Do you know of any?

Thanks,

Ralph
11-02-2009, 04:48 PM
Hi David,

I think this is the way to go:

Plot(), for example used like: Add(new Plot(Color.Green "ADX")) accepts a Pen() as parameter too.
Pen() accepts a DashPattern as parameter. A pen with a DashPattern would change DashStyle.Custom in something meaningful, I guess.

Regards
Ralph

drmartell
12-13-2010, 12:04 PM
In case anyone else is looking, I found this useful reference:

http://www.devx.com/dotnet/Article/32848

example is half way down the page.