In the absence of this an indicator that does custom painting would be helpful. I haven' found one so I've started to write one.
The property settings for chart bar candlesticks have the "Candle body outline" setting that includes Color, Dash style and Width all in one property. What kind of object is this and is it serializable? I have only found support serialization support for Windows.Media.Brush. I tried the Pen type because I saw there's support for a Serialize.StringToPen. However when I try to add a Pen property to my indicator the settings dialog for the indicator shows either a blank text box or one filled with a string "System.Windows.Media.Pen", the later behavior if I have tried to use the serializer:
[XmlIgnore]
[Display(ResourceType = typeof(Custom.Resource), Name = "Candle body outline up", Description = "Color for Up candlestick body.", Order = 4, GroupName = "CandleStick Bar")]
public Pen CandleBodyOutlinePriceUpBrush
{ get; set; }
[Browsable(false)]
public string CandleBodyOutlinePriceDownUpSerialize
{
get { return Serialize.PenToString(CandleBodyOutlinePriceUpBrush); }
set { CandleBodyOutlinePriceUpBrush = Serialize.StringToPen(value); }
}
This post has 3 parts to it:
1. Request feature in NT to offer independent outline color for up / down candlestick bars
2. Request for identification/location of any known indicator that offers custom candlestick bar painting with this feature.
3. NinjaScript help to find a property setting object for my own custom indicator that encapsulates all the typical settings for customizing the drawing like that of the existing Candlestick body outline. In the absence of #3 I can offer separate properties for color, line width and dash style but I just wanted it to be more professional looking like the NT Candlestick body outline property.
Thank you.

Comment