Candle size (text)

0
(0)

The indicator displays the size of the column. The size is calculated based on the next system: "subtracted" 減 "subtraction". "Decimal" 和 "Decimal" may be any of the 4 values ​​(opening value, the very best value, the bottom value or closing value).

The variety of columns that show the size may be restricted to the enter parameters ( InpNumberOfBars ). This quantity is not going to change till the brand new column is opened:

About synchronization of columns and graphic objects.

Graphic object calculation

The identify of the item is saved within the m_arr_names [] array and its size is the same as the InpNumberOfBars enter parameter. Why will we use an array as a substitute of a easy string variable? That is reserved for future functions.

The identify of the item

The identify of the item corresponds to the 'index' of the column, and is constructed based on the next system:

確認 [指數] = m_prefix + ( "high_" 或者 "low_" ) + TimeToString (時間 [指數])

When you must delete all objects

Indicators are uninstalled within the following instances :

  • Take away the metric from the chart;
  • Shut the terminal (if the indicator is operating on the chart);
  • If the template is loaded when the indicator is run on the chart;
  • Shut the chart of the operational indicators;
  • If the symptoms run previously settings file and modify the settings file;
  • Modify the range and / or interval of the transaction during which the indicator runs the chart;
  • Modified index enter parameters.

On this approach, we'll utterly delete the created graphic object:

  • In OnDeinit ()
  • In OnInit () (there is just one case, that's, if there may be an object to be deleted)
  • In OnCalculate (), when prev_calculated == 0.

We have now to clear m_arr_names [] array:

  • In OnCalculate (), when prev_calculated == 0 or when prev_calculated! = Rates_total

Save constants for the variety of formation objects:

When the brand new column seems, the prev_calculated! = Rates_total situation is triggered, during which case all objects are deleted, 和 m_arr_names [] array is to be cleared.

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.