I made a strategy. And I want to set PlotBrushes propertie of hosted indicator:
MACD Macd = MACD( 10, 20, 30);
AddChartIndicator( Macd );
OnBarUpdate{}
{
Macd.PlotBrushes[0][0] = Brushes.Green;
TriggerCustomEvent( (o) => {Macd.PlotBrushes[0][0] = Brushes.Green;}, null );
Macd.TriggerCustomEvent( (o) => {Macd.PlotBrushes[0][0] = Brushes.Green;}, null );
}
Is it possible?
Comment