jonchurch/tradingview-js-api-tutorial

Unable to create multi line plot.

yaseenyahya opened this issue · 0 comments

how can i change color of line on my condition.

I am trying to set plot brush in this this method. Is this Possible ?

this.main = function(context, inputCallback) {
var b = 0;
var plotbrush = b == 0 ? "green" : "black";

changePlotBrush(plotbrush); //contains any this type of method
}