(login for full post details)
#3 (permalink )
Market Wizard
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
For user selectable colours you need to add:
Code
using System . Xml . Serialization ; define a color under variables , for example private Color aboveLine = Color . Magenta ; use the color to paint your bar if ( BarIsAboveLine ) BarColor = aboveLine ; and then set the properties of your color ///<summary> ///</summary> [ Description ( "Select Bar Color" )] [ Category ( "Colors" )] [ Gui . Design . DisplayName ( "Bar Above Line" )] public Color AboveLine { get { return aboveLine ; } set { aboveLine = value ; } } // Serialize Color object [ Browsable ( false )] publicstring AboveLineSerialize { get { return NinjaTrader . Gui . Design . SerializableColor . ToString ( aboveLine ); } set { aboveLine = NinjaTrader . Gui . Design . SerializableColor . FromStrin g ( value ); } }
If you cannot do the changes, you would need to expose the code of the indicator, so I can add the few changes as shown above.