Breaking-changes

We do our best to make every next version fully compartible with the previous one, but sometimes big changes requires you to make minor changes in your code when upgrading to a new version.

Note: you can check Charting Library version by executing TradingView.version() in a browser console.

Here is the list of breaking changes:

Version 1.12

Charting Library

  • charting_library/charting_library.min.js now is UMD module.
    If you just inline this script into HTML - nothing changed.
    But if import it as a module you should import widget, version and onready functions straight from it.
  • searchSymbolsByName is removed from JS-API, use searchSymbols instead.

Study overrides:

  • Overrides for Overlay should be applied only via studies_overrides (and applyStudiesOverrides in runtime). In previous versions you had to use overrides and applyOverrides). See [[Studies-Overrides|Studies-Overrides]] page.
  • Since this version you cannot override showStudyArguments and showLastValue using options keyword.

Trading Terminal

  • hasHistory flag is removed. Use historyColumns to display History in Account Manager.

The following stuff is still supported in Trading Terminal, but will be deprecated in future versions:

  • subscribePL and unsubscribePL. The broker should call plUpdate method of the Host every time when the profit is changed.
  • supportDOM removed. DOM widget visibility can be set using dome_widget featureset.

The Trading Controller is replaced with [[Broker API]].

The following changes should be applied to your Trading Controller implementation to move to new Broker API:

  • Method setHost is removed. Host should be passed to the constructor of Broker API.
  • Method buttonDropdownItems removed. Broker API should update [[Broker API|Trading-Host]] using setButtonDropdownActions.
  • Methods configFlags and durations are removed. Use [[Widget Constructor]] fields instead.
  • All methods that returned $.Deferred should be modified to return Promise.
  • Method chartContextMenuItems is renamed to chartContextMenuActions.
  • Method isTradable changed to return a Promise instead of a Boolean value.
  • All string constants ("working", "buy" etc.) should be replaced with the appropriate number constants.
  • Position avg_price renamed to avgPrice.
  • tradingController field in the [[Widget Constructor]] is removed. Use brokerFactory instead.

Version 1.11

Trading Terminal

The following stuff is still supported in Trading Terminal, but will be deprecated in future versions:

  • supportDOME renamed to supportDOM.
  • Changed signature of `showClosePositionDialog.
  • showEditBracketsDialog renamed to showPositionBracketsDialog, changed signature.

Version 1.10

  • Default behavior of Volume indicator is changed.

Previous behavior: Volume indicator is added/removed when an instrument or a resolution is switched depending on volume support by the instrument. You can get back to this behavior by disabling create_volume_indicator_by_default_once featureset.

New behavior: Volume indicator is added on first load of an empty chart if it is supported by an active instrument.

Version 1.9

  • We don't compile Pine scripts anymore. You can still use scripts compiled before.

Version 1.8 of Trading Terminal

  • Chart has no option to show only actual orders anymore. Appropriate methods have been removed.
  • showOrderDialog receives an object instead of arguments list
  • showSampleOrderDialog removed, use [[showOrderDialog|Trading-Host#showorderdialogorder-handler]] instead
  • showOrderDialog removed from [[Broker API|Broker API]], use placeOrder and modifyOrder receive silently argument instead
  • reversePosition, closePosition, cancelOrder have an additional argument silently. They should should appropriate dialogs by themselves from now.

Version 1.7

  • Since this version it is not enough to call setSymbol with the same symbol. You should call onResetCacheNeededCallback from subscribeBars first. Then you can use setSymbol or new resetData method of the chart.
  • JSAPI protocol version 1 is not supported any more. nextTime and noData must be provided.

Version 1.5

  • Added source argument to MACD. You should change MACD creation code to pass source also.
    chartWidget.chart().createStudy('MACD', false, false, [12, 26, "close", 9])

Version 1.4

  • Override transparency is not supported anymore. We added transparency support to every color property. Use rgba form to define a color with transparency. Example:
    "symbolWatermarkProperties.color" : "rgba(60, 70, 80, 0.05)"

Version 1.3

  • Override paneProperties.gridProperties.* is not supported anymore.
    Please use paneProperties.vertGridProperties.* and paneProperties.horzGridProperties.*

  • Override mainSeriesProperties.candleStyle.wickColor is not supported anymore.
    Use mainSeriesProperties.candleStyle.wickUpColor and mainSeriesProperties.candleStyle.wickDownColor

?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末霎冯,一起剝皮案震驚了整個濱河市芯杀,隨后出現(xiàn)的幾起案子怕犁,更是在濱河造成了極大的恐慌扣甲,老刑警劉巖,帶你破解...
    沈念sama閱讀 212,454評論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件币砂,死亡現(xiàn)場離奇詭異建峭,居然都是意外死亡,警方通過查閱死者的電腦和手機决摧,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,553評論 3 385
  • 文/潘曉璐 我一進店門亿蒸,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人蜜徽,你說我怎么就攤上這事祝懂。” “怎么了拘鞋?”我有些...
    開封第一講書人閱讀 157,921評論 0 348
  • 文/不壞的土叔 我叫張陵砚蓬,是天一觀的道長。 經(jīng)常有香客問我盆色,道長灰蛙,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,648評論 1 284
  • 正文 為了忘掉前任隔躲,我火速辦了婚禮摩梧,結果婚禮上,老公的妹妹穿的比我還像新娘宣旱。我一直安慰自己仅父,他們只是感情好,可當我...
    茶點故事閱讀 65,770評論 6 386
  • 文/花漫 我一把揭開白布浑吟。 她就那樣靜靜地躺著笙纤,像睡著了一般。 火紅的嫁衣襯著肌膚如雪组力。 梳的紋絲不亂的頭發(fā)上省容,一...
    開封第一講書人閱讀 49,950評論 1 291
  • 那天,我揣著相機與錄音燎字,去河邊找鬼腥椒。 笑死阿宅,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的笼蛛。 我是一名探鬼主播洒放,決...
    沈念sama閱讀 39,090評論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼滨砍!你這毒婦竟也來了拉馋?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 37,817評論 0 268
  • 序言:老撾萬榮一對情侶失蹤惨好,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后随闺,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,275評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,592評論 2 327
  • 正文 我和宋清朗相戀三年望侈,在試婚紗的時候發(fā)現(xiàn)自己被綠了泣特。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,724評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡散罕,死狀恐怖分歇,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情欧漱,我是刑警寧澤职抡,帶...
    沈念sama閱讀 34,409評論 4 333
  • 正文 年R本政府宣布,位于F島的核電站误甚,受9級特大地震影響缚甩,放射性物質發(fā)生泄漏。R本人自食惡果不足惜窑邦,卻給世界環(huán)境...
    茶點故事閱讀 40,052評論 3 316
  • 文/蒙蒙 一擅威、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧冈钦,春花似錦郊丛、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,815評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至驾窟,卻和暖如春庆猫,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背绅络。 一陣腳步聲響...
    開封第一講書人閱讀 32,043評論 1 266
  • 我被黑心中介騙來泰國打工月培, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留嘁字,地道東北人。 一個月前我還...
    沈念sama閱讀 46,503評論 2 361
  • 正文 我出身青樓杉畜,卻偏偏與公主長得像纪蜒,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子此叠,可洞房花燭夜當晚...
    茶點故事閱讀 43,627評論 2 350

推薦閱讀更多精彩內(nèi)容