jonchurch / tradingview-js-api-tutorial

308 stars 181 forks source link

Unable to create multi line plot. #13

Open yaseenyahya opened 5 years ago

yaseenyahya commented 5 years ago

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 }