diff --git "a/hybrid/html/tradeview/charting_library/static/bundles/ds-property-pages.1a3d233b8aa4552a7048.js" "b/hybrid/html/tradeview/charting_library/static/bundles/ds-property-pages.1a3d233b8aa4552a7048.js"
new file mode 100644--- /dev/null
+++ "b/hybrid/html/tradeview/charting_library/static/bundles/ds-property-pages.1a3d233b8aa4552a7048.js"
@@ -0,0 +1,78 @@
+webpackJsonp([5],{14:function(e,t,o){"use strict";function i(e){function t(t,o,i){e.call(this,t,o,i),this._linetool=i,this._templateList=new s(this._linetool._constructor,this.applyTemplate.bind(this))}return inherit(t,e),t.prototype.applyTemplate=function(e){this._linetool.restoreTemplate(e),this._model.model().updateSource(this._linetool),this.loadData()},t.prototype.createTemplateButton=function(e){var t=this;return e=$.extend({},e,{getDataForSaveAs:function(){return t._linetool.template()}}),this._templateList.createButton(e)},t}function n(e,t,o){r.call(this,e,t),this._linetool=o}var a=o(10),r=a.PropertyPage,l=a.ColorBinding,p=o(47).addColorPicker,s=o(268);inherit(n,r),n.prototype.createOneColorForAllLinesWidget=function(){var e=$("
");o.append($("")).append(t.label).append(t.editor),o.appendTo(e)},n=i(n),n.createTemplatesPropertyPage=i,e.exports=n},15:function(e,t,o){"use strict";function i(){return $('').slider({max:4,min:1,step:1})}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(285),t.createLineWidthEditor=i},31:function(e,t,o){"use strict";function i(){return new n.Combobox([{html:'
',value:a.LINESTYLE_SOLID},{html:'
',value:a.LINESTYLE_DOTTED},{html:'
',value:a.LINESTYLE_DASHED}])}var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=o(738),a=o(115),t.createLineStyleEditor=i},65:function(e,t,o){"use strict";function i(e){var t=$('
').slider({max:100,min:0,step:1}),o=["-moz-linear-gradient(left, %COLOR 0%, transparent 100%)","-webkit-gradient(linear, left top, right top, color-stop(0%,%COLOR), color-stop(100%,transparent))","-webkit-linear-gradient(left, %COLOR 0%,transparent 100%)","-o-linear-gradient(left, %COLOR 0%,transparent 100%)","linear-gradient(to right, %COLOR 0%,transparent 100%)"];return t.updateColor=function(e){var i=t.find(".gradient");o.forEach(function(t){i.css("background-image",t.replace(/%COLOR/,e))})},e?(t.updateColor(e.val()||"black"),e.on("change",function(e){t.updateColor(e.target.value)})):t.updateColor("black"),t}Object.defineProperty(t,"__esModule",{value:!0}),o(22),o(285),t.createTransparencyEditor=i},81:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t),this._linetool=o,this.prepareLayout()}var n=o(10),a=n.PropertyPage,r=n.GreateTransformer,l=n.LessTransformer,p=n.ToIntTransformer,s=n.SimpleStringBinder;o(142),inherit(i,a),i.BarIndexPastLimit=-5e4,i.BarIndexFutureLimit=15e3,i.prototype.bindBarIndex=function(e,t,o,n){var a=[p(e.value()),r(i.BarIndexPastLimit),l(i.BarIndexFutureLimit)];this.bindControl(new s(t,e,a,!1,o,n))},
+i.prototype.createPriceEditor=function(e){var t,o=this._linetool.ownerSource().formatter(),i=function(e){return o.format(e)},n=function(e){var t=o.parse(e);if(t.res)return t.price?t.price:t.value},a=$("
");return a.TVTicker({step:o._minMove/o._priceScale||1,formatter:i,parser:n}),e&&(t=[function(t){var o=n(t);return void 0===o?e.value():o}],this.bindControl(new s(a,e,t,!1,this.model(),"Change "+this._linetool+" point price")).addFormatter(function(e){return o.format(e)})),a},i.prototype._createPointRow=function(e,t,o){var i,n,a,r,l,p=$("
"),s=$("");return s.html($.t("Price")+o),s.appendTo(p),i=$(" "),i.appendTo(p),n=this.createPriceEditor(t.price),n.appendTo(i),a=$(" "),a.html($.t("Bar #")),a.appendTo(p),r=$(" "),r.appendTo(p),l=$(" "),l.appendTo(r),l.addClass("ticker"),this.bindBarIndex(t.bar,l,this.model(),"Change "+this._linetool+" point bar index"),p},i.prototype.prepareLayoutForTable=function(e){var t,o,i,n,a,r=this._linetool.points(),l=r.length;for(t=0;t1?" "+(t+1):"",a=this._createPointRow(o,i,n),a.appendTo(e))},i.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Coordinates=100]="Coordinates",e[e.Display=100]="Display",e[e.Style=200]="Style",e[e.Inputs=300]="Inputs",e[e.Properties=250]="Properties"}(t.TabPriority||(t.TabPriority={})),function(e){e.background="Background",e.coordinates="Coordinates",e.drawings="Drawings",e.events="Events",e.eventsAndAlerts="Events & Alerts",e.inputs="Inputs",e.properties="Properties",e.scales="Scales",e.sourceCode="Source Code",e.style="Style",e.timezoneSessions="Timezone/Sessions",e.trading="Trading",e.visibility="Visibility"}(t.TabNames||(t.TabNames={})),function(e){e[e.Default=100]="Default",e[e.UserSave=200]="UserSave",e[e.Override=300]="Override"}(t.TabOpenFrom||(t.TabOpenFrom={}))},208:function(e,t,o){"use strict";function i(e,t,o){r.call(this,e,t),this._study=o,this.prepareLayout()}function n(e,t,o){r.call(this,e,t),this._study=o,this._property=e,this.prepareLayout()}var a=o(10),r=a.PropertyPage,l=a.GreateTransformer,p=a.LessTransformer,s=a.ToIntTransformer,d=a.ToFloatTransformer,h=a.SimpleComboBinder,c=a.BooleanBinder,b=a.DisabledBinder,u=a.ColorBinding,C=a.SliderBinder,y=a.SimpleStringBinder,g=o(47).addColorPicker,w=o(31).createLineStyleEditor,T=o(1122).createShapeLocationEditor,_=o(1123).createShapeStyleEditor,m=o(15).createLineWidthEditor,f=o(1124).createVisibilityEditor,L=o(1120).createHHistDirectionEditor,v=o(476).createPlotEditor,k=o(38).NumericFormatter,S=o(45),P=o(106).PlotType,x=o(13).getLogger("Chart.Study.PropertyPage");inherit(i,r),i.prototype.prepareLayout=function(){function e(e){
+return(new k).format(e)}var t,o,n,a,r,l,p,s,b,T,_,f,L,v,P,B,E,R,F,I,A,D,W,O,V,j,z,M,H,q,N,G,U,Y,K,Q;for(this._table=$(""),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),t=this._study.metaInfo(),o={},n=0;n0)for(n=0;n '),T.appendTo(this._table),_=$(" "),_.appendTo(T),f=$(" "),f.appendTo(_),L=$.t(b.name.value(),{context:"input"}),v=this.createLabeledCell(L,f).appendTo(T).addClass("propertypage-name-label"),P=$(" "),P.appendTo(T),P.addClass("colorpicker-cell"),B=g(P),E=$(" "),E.appendTo(T),R=m(),R.appendTo(E),F=$('').css({whiteSpace:"nowrap"}),F.appendTo(T),I=w(),I.render().appendTo(F),A=$(" "),A.appendTo(F),D=[d(b.value.value())],W="Change band",O=new y(A,b.value,D,!1,this.model(),W),O.addFormatter(e),this.bindControl(O),this.bindControl(new c(f,b.visible,!0,this.model(),W)),this.bindControl(new u(B,b.color,!0,this.model(),W)),this.bindControl(new h(I,b.linestyle,parseInt,!0,this.model(),W)),this.bindControl(new C(R,b.linewidth,!0,this.model(),W)));if(this._study.properties().bandsBackground&&(b=this._study.properties().bandsBackground,V=$.t("Background"),W=$.t("Change band background"),T=this._prepareFilledAreaBackground(b.fillBackground,b.backgroundColor,b.transparency,V,W),T.appendTo(this._table)),this._study.properties().areaBackground&&(b=this._study.properties().areaBackground,V=$.t("Background"),W=$.t("Change area background"),T=this._prepareFilledAreaBackground(b.fillBackground,b.backgroundColor,b.transparency,V,W),T.appendTo(this._table)),void 0!==(j=t.filledAreas))for(n=0;n '),_=$(" "),_.appendTo(T),f=$(" "),f.appendTo(_),
+this.bindControl(new c(f,b.visible,!0,this.model(),W+" visibility")),this.createLabeledCell(V,f).appendTo(T).addClass("propertypage-name-label"),T.appendTo(this._table),M=this._findPlotPalette(n,z),H=M.palette,q=M.paletteProps,this._prepareLayoutForPalette(0,z,H,q,W)):(T=this._prepareFilledAreaBackground(b.visible,b.color,b.transparency,V,W),T.appendTo(this._table)));for(N in t.graphics){G=t.graphics[N];for(U in G)b=this._property.graphics[N][U],i["_createRow_"+N].call(this,this._table,b)}Y=this._table.find(".visibility-switch.plot-visibility-switch"),1===Y.length&&(_=Y.parent(),_.css("display","none"),v=this._table.find(".propertypage-plot-with-palette"),1===v.length?v.css("display","none"):(v=this._table.find(".propertypage-name-label"),v.css("padding-left",0),v.find("label").attr("for",""))),K=this._prepareStudyPropertiesLayout(),this._table=this._table.add(K),S.isScriptStrategy(t)&&(Q=this._prepareOrdersSwitches(),this._table=this._table.add(Q)),this.loadData()},i.prototype._prepareOrdersSwitches=function(){var e,t,o,i,n,a,r,l=$(''),p="chart-orders-switch_"+Date.now().toString(36),s=$("").appendTo(l),d=$(' ').appendTo($("").appendTo(s));return $(''+$.t("Trades on Chart")+" ").appendTo($(" ").appendTo(s)),e="chart-orders-labels-switch_"+Date.now().toString(36),t=$(" ").appendTo(l),o=$(' ').appendTo($("").appendTo(t)),$(''+$.t("Signal Labels")+" ").appendTo($(" ").appendTo(t)),i="chart-orders-qty-switch_"+Date.now().toString(36),n=$(" ").appendTo(l),a=$(' ').appendTo($("").appendTo(n)),$(''+$.t("Quantity")+" ").appendTo($(" ").appendTo(n)),r=this._study.properties(),this.bindControl(new c(d,r.strategy.orders.visible,!0,this.model(),"Trades on chart visibility")),this.bindControl(new c(o,r.strategy.orders.showLabels,!0,this.model(),"Signal labels visibility")),this.bindControl(new b(o,r.strategy.orders.visible,!0,this.model(),"Signal labels visibility",!0)),this.bindControl(new c(a,r.strategy.orders.showQty,!0,this.model(),"Quantity visibility")),this.bindControl(new b(a,r.strategy.orders.visible,!0,this.model(),"Quantity visibility",!0)),l},i.prototype._prepareLayoutForPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b,y,w,T=t.id,_=this._study.properties().styles[T],f=this._findPlotPalette(e,t),L=f.palette,k=f.paletteProps,S="Change "+T;L?(o=$(' '),o.appendTo(this._table),i=$(" "),i.appendTo(o),i.addClass("visibility-cell"),n=$(" "),n.appendTo(i),this.bindControl(new c(n,_.visible,!0,this.model(),S)),a=$.t(_.title.value(),{context:"input"}),this.createLabeledCell(a,n).appendTo(o).addClass("propertypage-name-label propertypage-plot-with-palette"),this._prepareLayoutForPalette(e,t,L,k,S)):(o=$(' '),o.appendTo(this._table),
+i=$(" "),i.appendTo(o),i.addClass("visibility-cell"),n=$(" "),n.appendTo(i),a=$.t(this._study.properties().styles[T].title.value(),{context:"input"}),this.createLabeledCell(a,n).appendTo(o).addClass("propertypage-name-label"),r=$(" "),r.appendTo(o),r.addClass("colorpicker-cell"),l=g(r),p=$(" "),p.appendTo(o),s=m(),s.appendTo(p),d=$(""),d.appendTo(o),b=v(),b.appendTo(d),y=$(" "),y.appendTo(o),w=$(" "),w.appendTo(y),this.createLabeledCell("Price Line",w).appendTo(o),this.bindControl(new c(n,_.visible,!0,this.model(),S)),this.bindControl(new u(l,_.color,!0,this.model(),S,_.transparency)),this.bindControl(new C(s,_.linewidth,!0,this.model(),S,this._study.metaInfo().isTVScript)),this.bindControl(new h(b,_.plottype,parseInt,!0,this.model(),S)),this.bindControl(new c(w,_.trackPrice,!0,this.model(),"Change Price Line")))},i.prototype._prepareLayoutForBarsPlot=function(e,t){var o,i,n,a,r,l,p=t.id,s=this._study.properties().ohlcPlots[p],d=this._findPlotPalette(e,t),h=d.palette,b=d.paletteProps,C="Change "+p,y=$(' ');y.appendTo(this._table),o=$(" "),o.appendTo(y),o.addClass("visibility-cell"),i=$(" "),i.appendTo(o),this.bindControl(new c(i,s.visible,!0,this.model(),C)),n=s.title.value(),this.createLabeledCell(n,i).appendTo(y).addClass("propertypage-name-label"),h?(a=!0,this._prepareLayoutForPalette(e,t,h,b,C,a)):(r=$(" "),r.appendTo(y),r.addClass("colorpicker-cell"),l=g(r),this.bindControl(new u(l,s.color,!0,this.model(),C)))},i.prototype._prepareLayoutForCandlesPlot=function(e,t){var o,i,n,a,r,l,p,s,d;this._prepareLayoutForBarsPlot(e,t),o=t.id,i=this._study.properties().ohlcPlots[o],n="Change "+o,a=$(' '),a.appendTo(this._table),r=$(" "),r.appendTo(a),r.addClass("visibility-cell"),l=$(" "),l.appendTo(r),this.bindControl(new c(l,i.drawWick,!0,this.model(),n)),p="Wick",this.createLabeledCell(p,l).appendTo(a),s=$(" "),s.appendTo(a),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,i.wickColor,!0,this.model(),n))},i.prototype._prepareLayoutForShapesPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b=t.id,C=this._study.properties().styles[b],y=this._findPlotPalette(e,t),w=y.palette,m=y.paletteProps,f="Change "+b,L=$(' ');L.appendTo(this._table),o=$(" "),o.appendTo(L),o.addClass("visibility-cell"),i=$(" "),i.appendTo(o),this.bindControl(new c(i,C.visible,!0,this.model(),f)),n=$.t(this._study.properties().styles[b].title.value(),{context:"input"}),this.createLabeledCell(n,i).appendTo(L).addClass("propertypage-name-label"),a=$(" "),a.appendTo(L),r=_(),r.appendTo(a),this.bindControl(new h(r,C.plottype,null,!0,this.model(),f)),l=$(" "),l.appendTo(L),p=T(),p.appendTo(l),this.bindControl(new h(p,C.location,null,!0,this.model(),f)),w?this._prepareLayoutForPalette(e,t,w,m,f):(L=$(' '),
+L.appendTo(this._table),$(" ").appendTo(L),$(" ").appendTo(L),s=$(" "),s.appendTo(L),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,C.color,!0,this.model(),f,C.transparency)))},i.prototype._prepareLayoutForCharsPlot=function(e,t){var o,i,n,a,r,l,p,s,d,b=t.id,C=this._study.properties().styles[b],w=this._findPlotPalette(e,t),_=w.palette,m=w.paletteProps,f="Change "+b,L=$(' ');L.appendTo(this._table),o=$(" "),o.appendTo(L),o.addClass("visibility-cell"),i=$(" "),i.appendTo(o),this.bindControl(new c(i,C.visible,!0,this.model(),f)),n=$.t(this._study.properties().styles[b].title.value(),{context:"input"}),this.createLabeledCell(n,i).appendTo(L).addClass("propertypage-name-label"),a=$(" "),a.appendTo(L),r=$(' '),r.appendTo(a),r.keyup(function(){var e=$(this),t=e.val();t&&(e.val(t.split("")[t.length-1]),e.change())}),this.bindControl(new y(r,C.char,null,!1,this.model(),f)),l=$(" "),l.appendTo(L),p=T(),p.appendTo(l),this.bindControl(new h(p,C.location,null,!0,this.model(),f)),_?this._prepareLayoutForPalette(e,t,_,m,f):(L=$(' '),L.appendTo(this._table),$(" ").appendTo(L),$(" ").appendTo(L),s=$(" "),s.appendTo(L),s.addClass("colorpicker-cell"),d=g(s),this.bindControl(new u(d,C.color,!0,this.model(),f,C.transparency)))},i.prototype._isStyleNeedsConnectPoints=function(e){return[P.Cross,P.Circles].indexOf(e)>=0},i.prototype._prepareLayoutForPalette=function(e,t,o,i,n,a){var r,l,p,s,d,b,y,w,T,_,f,L,k,S,P,x=e,B=t.id,E=null,R=B.startsWith("fill");E=a?this._study.properties().ohlcPlots[B]:R?this._study.properties().filledAreasStyle[B]:this._study.properties().styles[B],r=0;for(l in o.colors)p=i.colors[l],s=$(' '),s.appendTo(this._table),$(" ").appendTo(s),d=$(" "),d.appendTo(s),d.addClass("propertypage-name-label"),d.html($.t(p.name.value(),{context:"input"})),b=$(" "),b.appendTo(s),b.addClass("colorpicker-cell"),y=g(b),this.bindControl(new u(y,p.color,!0,this.model(),n,E.transparency)),!R&&this._study.isLinePlot(x)&&(w=$(" "),w.appendTo(s),T=m(),T.appendTo(w),this.bindControl(new C(T,p.width,!0,this.model(),n,this._study.metaInfo().isTVScript)),_=$(""),_.appendTo(s),0===r&&(f=v(),f.appendTo(_),this.bindControl(new h(f,E.plottype,parseInt,!0,this.model(),n)),L=$(" "),k=$(' ').css({whiteSpace:"nowrap"}),S=$("").html($.t("Price Line")),P=$(""),P.append(L),k.append(P).append(S).appendTo(s),this.bindControl(new c(L,E.trackPrice,!0,this.model(),"Change Price Line")))),r++},i.prototype._prepareLayoutForArrowsPlot=function(e,t){var o,i,n,a,r,l,p,s=t.id,d=this._study.properties().styles[s],h="Change "+s,b=$(' ');b.appendTo(this._table),o=$(" "),o.appendTo(b),o.addClass("visibility-cell"),i=$(" "),i.appendTo(o),n=$.t(this._study.properties().styles[s].title.value(),{context:"input"}),
+this.createLabeledCell(n,i).appendTo(b).addClass("propertypage-name-label"),a=$(" "),a.appendTo(b),a.addClass("colorpicker-cell"),r=g(a),l=$(" "),l.appendTo(b),l.addClass("colorpicker-cell"),p=g(l),this.bindControl(new c(i,d.visible,!0,this.model(),h)),this.bindControl(new u(r,d.colorup,!0,this.model(),h,d.transparency)),this.bindControl(new u(p,d.colordown,!0,this.model(),h,d.transparency))},i.prototype._findPlotPalette=function(e,t){var o,i=e,n=t.id,a=null,r=null,l=this._study.metaInfo().plots;if(this._study.isBarColorerPlot(i)||this._study.isBgColorerPlot(i))a=this._study.metaInfo().palettes[t.palette],r=this._study.properties().palettes[t.palette];else for(o=0;o');return this._study.metaInfo().is_price_study||(e=this.createPrecisionEditor(),t=$(""),t.appendTo(o),$(""+$.t("Precision")+" ").appendTo(t),$("").append(e).appendTo(t),this.bindControl(new h(e,this._study.properties().precision,null,!0,this.model(),"Change Precision"))),"Compare@tv-basicstudies"===this._study.metaInfo().id&&(e=this.createSeriesMinTickEditor(),t=$(" "),t.appendTo(o),$(""+$.t("Override Min Tick")+" ").appendTo(t),$("").append(e).appendTo(t),this.bindControl(new h(e,this._study.properties().minTick,null,!0,this.model(),"Change MinTick"))),this._putStudyDefaultStyles(o),o},i.prototype._putStudyDefaultStyles=function(e,t){var o,i,n,a,r,l,p=null,s=this._study;return(!s.properties().linkedToSeries||!s.properties().linkedToSeries.value())&&($.each(this._model.m_model.panes(),function(e,t){$.each(t.dataSources(),function(e,o){if(o===s)return p=t,!1})}),this._pane=p,this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._study)?o="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._study)?o="right":this._pane.isOverlay(this._study)&&(o="none")),o&&(i=this,n={left:$.t("Scale Left"),right:$.t("Scale Right")},i._pane.actionNoScaleIsEnabled(s)&&(n.none=$.t("Screen (No Scale)")),a=this.createKeyCombo(n).val(o).change(function(){switch(this.value){case"left":i._model.move(i._study,i._pane,i._pane.leftPriceScale());break;case"right":i._model.move(i._study,i._pane,i._pane.rightPriceScale());break;case"none":i._model.move(i._study,i._pane,null)}}),r=this.addRow(e),$(" "+$.t("Scale")+" ").appendTo(r),l=$("").appendTo(r).append(a),t&&t>2&&l.attr("colspan",t-1)),e)},i.prototype.widget=function(){return this._table},i.prototype._prepareFilledAreaBackground=function(e,t,o,i,n){var a,r,l,p=$(' '),s=$(" ");return s.appendTo(p),a=$(" "),a.appendTo(s),this.createLabeledCell(i,a).appendTo(p).addClass("propertypage-name-label"),
+r=$(" "),r.appendTo(p),r.addClass("colorpicker-cell"),l=g(r),this.bindControl(new c(a,e,!0,this.model(),n+" visibility")),this.bindControl(new u(l,t,!0,this.model(),n+" color",o)),p},inherit(n,r),n.prototype.prepareLayout=function(){if(this._study.properties().linkedToSeries&&this._study.properties().linkedToSeries.value())return void(this._table=$());this._table=$()},n.prototype.widget=function(){return this._table},i._createRow_horizlines=function(e,t){var o=this.addRow(e),i=t.name.value(),n=$(" "),a=this.createColorPicker(),r=m(),l=w();$("").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$(" ").append(a).appendTo(o),$(" ").append(r).appendTo(o),$(" ").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_vertlines=function(e,t){var o=this.addRow(e),i=t.name.value(),n=$(" "),a=this.createColorPicker(),r=m(),l=w();$(" ").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$(" ").append(a).appendTo(o),$(" ").append(r).appendTo(o),$(" ").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_lines=function(e,t){var o=this.addRow(e),i=t.title.value(),n=$(" "),a=this.createColorPicker(),r=m(),l=w();$(" ").append(n).appendTo(o),this.createLabeledCell(i,n).appendTo(o),$(" ").append(a).appendTo(o),$(" ").append(r).appendTo(o),$(" ").append(l.render()).appendTo(o),this.bindControl(new c(n,t.visible,!0,this.model(),"Change "+i+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+i+" color")),this.bindControl(new h(l,t.style,parseInt,!0,this.model(),"Change "+i+" style")),this.bindControl(new C(r,t.width,!0,this.model(),"Change "+i+" width"))},i._createRow_hlines=function(e,t){var o,i,n,a=this.addRow(e),r=t.name.value(),l=$(" "),p=this.createColorPicker(),s=m(),d=w(),b=$(" ");$(" ").append(l).appendTo(a),this.createLabeledCell(r,l).appendTo(a),$(" ").append(p).appendTo(a),$(" ").append(s).appendTo(a),$(" ").append(d.render()).appendTo(a),$(" ").appendTo(a),$(" ").append(b).appendTo(a),this.createLabeledCell("Show Price",b).appendTo(a),this.bindControl(new c(l,t.visible,!0,this.model(),"Change "+r+" visibility")),this.bindControl(new u(p,t.color,!0,this.model(),"Change "+r+" color")),
+this.bindControl(new h(d,t.style,parseInt,!0,this.model(),"Change "+r+" style")),this.bindControl(new C(s,t.width,!0,this.model(),"Change "+r+" width")),this.bindControl(new c(b,t.showPrice,!0,this.model(),"Change "+r+" show price")),t.enableText.value()&&(a=this.addRow(e),$(' ').appendTo(a),o=$(" "),$(' ').append(o).appendTo(a),this.createLabeledCell("Show Text",o).appendTo(a),this.bindControl(new c(o,t.showText,!0,this.model(),"Change "+r+" show text")),i=TradingView.createTextPosEditor(),$(" ").append(i.render()).appendTo(a),this.bindControl(new h(i,t.textPos,parseInt,!0,this.model(),"Change "+r+" text position")),n=this.createFontSizeEditor(),$(' ').append(n).appendTo(a),this.bindControl(new h(n,t.fontSize,parseInt,!0,this.model(),"Change "+r+" font size")))},i._createRow_hhists=function(e,t){var o,i,n,a,r,d,b=t.title.value(),C=[],g=[],w=this.addRow(e),T=f();$(" ").append(T).appendTo(w),this.createLabeledCell(b,T).appendTo(w),this.bindControl(new c(T,t.visible,!0,this.model(),"Change "+b+" Visibility")),w=this.addRow(e),o=$(" "),o.attr("type","text"),o.addClass("ticker"),this.createLabeledCell($.t("Width (% of the Box)"),o).appendTo(w),$(" ").append(o).appendTo(w),i=[s(40)],i.push(l(0)),i.push(p(100)),this.bindControl(new y(o,t.percentWidth,i,!1,this.model(),"Change Percent Width")),w=this.addLabeledRow(e,"Placement"),n=L(),$(" ").append(n).appendTo(w),this.bindControl(new h(n,t.direction,null,!0,this.model(),"Change "+b+" Placement")),w=this.addRow(e),a=$(" "),$(" ").append(a).appendTo(w),this.createLabeledCell($.t("Show Values"),a).appendTo(w),this.bindControl(new c(a,t.showValues,!0,this.model(),"Change "+b+" Show Values")),w=this.addRow(e),r=this.createColorPicker(),this.createLabeledCell($.t("Text Color"),r).appendTo(w),$(" ").append(r).appendTo(w),this.bindControl(new u(r,t.valuesColor,!0,this.model(),"Change "+b+" Text Color"));for(d in t.colors)isNumber(parseInt(d,10))&&(w=this.addRow(e),C[d]=t.titles[d].value(),g[d]=this.createColorPicker(),$(" ").append(C[d]).appendTo(w),$(" ").append(g[d]).appendTo(w),this.bindControl(new u(g[d],t.colors[d],!0,this.model(),"Change "+C[d]+" color")))},i._createRow_backgrounds=function(e,t){var o=this.addRow(e),i=$(" "),n=t.name.value(),a=this.createColorPicker();$(" ").append(i).appendTo(o),this.createLabeledCell(n,i).appendTo(o),$(" ").append(a).appendTo(o),this.bindControl(new c(i,t.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+n+" color",t.transparency))},i._createRow_polygons=function(e,t){var o=this.addRow(e),i=t.name.value(),n=this.createColorPicker();$(" ").append(i).appendTo(o),$(" ").append(n).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color"))},i._createRow_trendchannels=function(e,t){var o=this.addRow(e),i=t.name.value(),n=this.createColorPicker()
+;$(" ").append(i).appendTo(o),$(" ").append(n).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color",t.transparency))},i._createRow_textmarks=function(e,t){var o=this.addLabeledRow(e),i=t.name.value(),n=this.createColorPicker(),a=this.createColorPicker(),r=this.createFontEditor(),l=this.createFontSizeEditor(),p=$(' '),s=$(' ');$(" ").append(i).appendTo(o),"rectangle"!==t.shape.value()&&$(" ").append(n).appendTo(o),$(" ").append(a).appendTo(o),$(" ").append(r).appendTo(o),$(" ").append(l).appendTo(o),$(" ").append(p).appendTo(o),$(" ").append(s).appendTo(o),this.bindControl(new u(n,t.color,!0,this.model(),"Change "+i+" color",t.transparency)),this.bindControl(new u(a,t.fontColor,!0,this.model(),"Change "+i+" text color",t.transparency)),this.bindControl(new h(l,t.fontSize,parseInt,!0,this.model(),"Change "+i+" font size")),this.bindControl(new h(r,t.fontFamily,null,!0,this.model(),"Change "+i+" font")),this.bindControl(new c(p,t.fontBold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new c(s,t.fontItalic,!0,this.model(),"Change Text Font Italic"))},i._createRow_shapemarks=function(e,t){var o=this.addRow(e),i=$(" "),n=t.name.value(),a=this.createColorPicker(),r=$(" ");r.attr("type","text"),r.addClass("ticker"),$(" ").append(i).appendTo(o),this.createLabeledCell(n,i).appendTo(o),$(" ").append(a).appendTo(o),this.createLabeledCell("Size",r).appendTo(o),$(" ").append(r).appendTo(o),this.bindControl(new c(i,t.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(a,t.color,!0,this.model(),"Change "+n+" back color",t.transparency)),this.bindControl(new y(r,t.size,null,!1,this.model(),"Change size"))},t.StudyStylesPropertyPage=i,t.StudyDisplayPropertyPage=n},267:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(14),a=o(10),r=a.FloatBinder,l=a.BooleanBinder,p=a.SliderBinder,s=a.ColorBinding,d=a.SimpleComboBinder,h=o(47).addColorPicker,c=o(31).createLineStyleEditor,b=o(15).createLineWidthEditor,u=o(65).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t){var o,i,n,a,p,d=t||$(" ").appendTo(this._table),c=$("");return c.appendTo(d),o=$(" "),o.appendTo(c),t&&o.css("margin-left","15px"),i=$(" "),i.appendTo(d),n=$(" "),n.appendTo(i),n.css("width","70px"),this.bindControl(new r(n,e.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),a=$(" "),a.appendTo(d),p=h(a),this.bindControl(new l(o,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),this.bindControl(new s(p,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),d},i.prototype.prepareLayout=function(){
+var e,t,o,i,n,a,r,C,y,g,w,T,_,m,f,L,v,k,S,P,x,B,E,R,F,I,A,D,W,O,V,j,z;for(this._div=$(document.createElement("div")).addClass("property-page"),e=this._linetool.properties().trendline,t=$("").appendTo(this._div).css("padding-bottom","3px"),e&&(o=$("").appendTo(t),i=$(" "),$("").append(i).appendTo(o),$(" ").append($.t("Trend Line")).appendTo(o),this.bindControl(new l(i,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),n=$(" ").appendTo(o),a=h(n),this.bindControl(new s(a,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),r=$(" ").appendTo(o),C=b(),C.appendTo(r),this.bindControl(new p(C,e.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$(" ").appendTo(o),g=c(),g.render().appendTo(y),this.bindControl(new d(g,e.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style"))),w=this._linetool.properties().levelsStyle,T=$(" ").appendTo(t),$("").appendTo(T),$(" "+$.t("Levels Line")+" ").appendTo(T),$("").appendTo(T),r=$(" ").appendTo(T),C=b(),C.appendTo(r),this.bindControl(new p(C,w.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$(" ").appendTo(T),g=c(),g.render().appendTo(y),this.bindControl(new d(g,w.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style")),this._table=$(document.createElement("table")).appendTo(this._div),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),_={},m=0;m<24;m++)f=m%8,T=_[f],L="level"+(m+1),_[f]=this.addLevelEditor(this._linetool.properties()[L],T);this.addOneColorPropertyWidget(this._table),v=$("").appendTo(this._div),k=$("").appendTo(v),this._linetool.properties().extendLines&&(S=$(" "),P=$("").append(S).append($.t("Extend Lines")),$("").append(P).appendTo(k)),this._linetool.properties().extendLeft&&(x=$(" "),P=$("").append(x).append($.t("Extend Left")),$("").append(P).appendTo(k)),this._linetool.properties().extendRight&&(B=$(" "),P=$("").append(B).append($.t("Extend Right")),$("").append(P).appendTo(k)),this._linetool.properties().reverse&&(E=$(" "),P=$("").append(E).append($.t("Reverse")),$("").append(P).appendTo(k)),R=$(" ").appendTo(v),F=$(" "),P=$("").append(F).append($.t("Levels")),$("").append(P).appendTo(R),I=$(" "),P=$("").append(I).append($.t("Prices")),$("").append(P).appendTo(R),A=$(" "),P=$("").append(A).append($.t("Percents")),$("").append(P).appendTo(R),D=$("").appendTo(this._div),
+W=$(""+$.t("left")+" "+$.t("center")+" "+$.t("right")+" "),O=$(""+$.t("top")+" "+$.t("middle")+" "+$.t("bottom")+" "),T=$(""),T.append(""+$.t("Labels")+" ").append(W).append("  ").append(O),T.appendTo(D),V=$("").appendTo(this._div),T=$("").appendTo(V),j=$(" "),$("").append(j).appendTo(T),this.createLabeledCell($.t("Background"),j).appendTo(T),z=u(),$(" ").append(z).appendTo(T),this.bindControl(new l(I,this._linetool.properties().showPrices,!0,this.model(),"Change Gann Fan Prices Visibility")),this.bindControl(new l(F,this._linetool.properties().showCoeffs,!0,this.model(),"Change Gann Fan Levels Visibility")),this.bindControl(new l(j,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.bindControl(new p(z,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this._linetool.properties().extendLines&&this.bindControl(new l(S,this._linetool.properties().extendLines,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendLeft&&this.bindControl(new l(x,this._linetool.properties().extendLeft,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendRight&&this.bindControl(new l(B,this._linetool.properties().extendRight,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().reverse&&this.bindControl(new l(E,this._linetool.properties().reverse,!0,this.model(),"Change Fib Retracement Reverse")),this.bindControl(new d(W,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Labels Horizontal Alignment")),this.bindControl(new d(O,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Labels Vertical Alignment")),this.bindControl(new l(A,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},399:function(e,t,o){"use strict";function i(e,t,o){p.call(this,e,t),this._linetool=o,this.prepareLayout()}function n(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var a=o(14),r=o(81),l=o(10),p=l.PropertyPage,s=l.SliderBinder,d=o(65).createTransparencyEditor,h=o(121);inherit(i,r),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l=$(''),p=$('').data({"layout-tab":h.TabNames.inputs,"layout-tab-priority":h.TabPriority.Inputs});this._table=l.add(p),r.prototype.prepareLayoutForTable.call(this,l),e=$("").appendTo(p),$("").append($.t("Avg HL in minticks")).appendTo(e),t=$(" ").appendTo(e),
+o=$(" ").addClass("ticker").appendTo(t),e=$(" ").appendTo(p),$("").append($.t("Variance")).appendTo(e),i=$(" ").appendTo(e),n=$(" ").addClass("ticker").appendTo(i),a=this._linetool.properties(),this.bindInteger(o,a.averageHL,$.t("Change Average HL value"),1,5e4),this.bindInteger(n,a.variance,$.t("Change Variance value"),1,100),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,a),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,p,h,c;this._widget=$(""),e=$("
").appendTo(this._widget),t=this.createColorPicker(),o=this.createColorPicker(),i=this.createColorPicker(),n=this.createColorPicker(),a=this.createColorPicker(),r=$(" ").data("hides",$(n).add(a)),l=$(" ").data("hides",$(i)),p=this.addLabeledRow(e,$.t("Candles")),$("").prependTo(p),$(" ").append(t).appendTo(p),$(" ").append(o).appendTo(p),p=this.addLabeledRow(e,$.t("Borders"),r),$(" ").append(r).prependTo(p),$(" ").append(n).appendTo(p),$(" ").append(a).appendTo(p),$(" ").appendTo(p),p=this.addLabeledRow(e,$.t("Wick"),l),$(" ").append(l).prependTo(p),$(" ").append(i).appendTo(p),$(" ").appendTo(p),e=$("").appendTo(this._widget),p=$("").appendTo(e),$("").append($.t("Transparency")).appendTo(p),h=d(),$(" ").append(h).appendTo(p),c=this._linetool.properties(),this.bindColor(t,c.candleStyle.upColor,"Change Candle Up Color"),this.bindColor(o,c.candleStyle.downColor,"Change Candle Down Color"),this.bindBoolean(l,c.candleStyle.drawWick,"Change Candle Wick Visibility"),this.bindColor(i,c.candleStyle.wickColor,"Change Candle Wick Color"),this.bindBoolean(r,c.candleStyle.drawBorder,"Change Candle Border Visibility"),this.bindColor(n,c.candleStyle.borderUpColor,"Change Candle Up Border Color"),this.bindColor(a,c.candleStyle.borderDownColor,"Change Candle Down Border Color"),this.bindControl(new s(h,c.transparency,!0,this.model(),"Change Guest Feed Transparency"))},n.prototype.widget=function(){return this._widget},t.LineToolGhostFeedInputsPropertyPage=i,t.LineToolGhostFeedStylesPropertyPage=n},400:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(14),r=o(81),l=o(10),p=l.BooleanBinder,s=l.SimpleComboBinder,d=l.SimpleStringBinder,h=l.ColorBinding,c=l.SliderBinder,b=o(31).createLineStyleEditor,u=o(15).createLineWidthEditor;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,C,y,g,w,T,_;this._res=$(""),this._table=$('
').appendTo(this._res),e=u(),t=b(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Line"),$("
").append(o).appendTo(i),$(" ").append(e).appendTo(i),$(' ').append(t.render().css("display","block")).appendTo(i),n=$(" "),
+i=$(" ").appendTo(this._table),$('').append($("").append(n).append($.t("Show Price"))).prependTo(i),a=$(" "),i=$("").appendTo(this._table),$('').append($("").append(a).append($.t("Show Text"))).prependTo(i),i=this.addLabeledRow(this._table,"Text:"),r=this.createColorPicker(),l=this.createFontSizeEditor(),C=this.createFontEditor(),y=$(' '),g=$(' '),$("").append(r).appendTo(i),$(" ").append(C).appendTo(i),$(" ").append(l).appendTo(i),$(" ").append(y).appendTo(i),$(" ").append(g).appendTo(i),i=$(" ").appendTo(this._table),$("").append($.t("Text Alignment:")).appendTo(i),w=$(""+$.t("left")+" "+$.t("center")+" "+$.t("right")+" "),T=$(""+$.t("top")+" "+$.t("middle")+" "+$.t("bottom")+" ").data("selectbox-css",{display:"block"}),$(" ").append(w).appendTo(i),$(" ").append(T).appendTo(i),_=$("