En.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. /* 指标库模块 */
  2. export default {
  3. /* 指标库页面 */
  4. EtaBasePage: {
  5. tab_menu: 'Catagory',
  6. add_edb_btn: 'Add Indicator',
  7. calculation_edb_btn: 'Calculation',
  8. replace_edb_btn: 'Indicator Replacement',
  9. algorithm_btn: 'Code Algorithm',
  10. adjustment_btn: 'Data Adjustment',
  11. search_placeholder: 'Indicator ID/Indicator Name',
  12. add_first_menu_btn: 'Add first-level catalogue',
  13. total_show: 'Total {limit} indicators',
  14. time_show: 'Creat Time',
  15. no_quote_edb: 'No cited calculated indicators',
  16. no_quote_chart: 'No associated charts available for this indicator',
  17. refresh_ing_msg: 'Updating data...',
  18. /* 添加指标弹窗 */
  19. complany_pholder: 'Company ID',
  20. no_search: 'The indicator is not searched',
  21. next_step: 'Next step',
  22. prev_step: 'Previous step',
  23. improve_info: 'Information improvement',
  24. belong_menu: 'Affiliated Catalogues',
  25. add_success_msg: 'Indicators added successfully',
  26. econ_base: 'Economic Database',
  27. date_serie: 'Date Series',
  28. stock_input_pholder: 'Please enter the stock code, only one stock code can be queried at a time',
  29. edb_input_pholder: 'Please enter the indicator codes, separated by commas for multiple indicator codes',
  30. stocks_input_pholder: 'Please enter the stock codes, separated by commas for multiple stock codes',
  31. edb_wind_tip: 'When entering "CG" in the Wind Financial Terminal, a code generator will pop up, which can be used to obtain codes for other indicators',
  32. edb_ifind_tip: 'Use Excel iFind plug-in / date series function, according to the selected indicator to obtain the indicator code, futures and stock common code can be ticked below',
  33. future_common_edb: 'Future Common indicators',
  34. stock_common_edb: 'Stock Common indicators',
  35. option_selectable:'Parameter (Optional)',
  36. pre_price: 'Previous Closing Price',
  37. op_price: 'Opening Price',
  38. high_price: 'Highest Price',
  39. average_price: 'Average Price',
  40. low_price: 'Lowest Price',
  41. close_price: 'Closing Price',
  42. settle_price: 'Settlement Price',
  43. trade_volume: 'Trading Volume',
  44. turnover: 'Turnover',
  45. incre_decre: 'Percentage Increase/Decrease',
  46. fluctua: 'Fluctuation',
  47. turn_rate: 'Turnover Rate',
  48. open_inter: 'Open Interest',
  49. open_val: 'Value of Open Positions',
  50. fluctua_day: 'Daily Amplitude',
  51. have_edb_tip1:'该数据已存在数据库,名称为{name},目录为:{menu},如需重新添加,请删除原指标',
  52. have_edb_tip2:'该数据已存在数据库,名称为{name},目录为:{menu}',
  53. exist_edb_tips: 'The following indicators already exist in the indicator pool, please do not re-enter them!',
  54. forbid_edb_tips: 'You currently do not have the permission to view this indicator. If you need access, please contact the administrator.',
  55. complate_info: 'Complete Information',
  56. no_companyid_msg: 'Please input Company ID',
  57. no_edbid_msg: 'Please input Indicator ID',
  58. no_source_msg:'Please select a source',
  59. no_database_msg:'Please select database',
  60. search_hint:'Searching data...',
  61. /* 替换指标弹窗 */
  62. origin_edb: 'Original Indicator',
  63. replace: 'Replace to',
  64. replace_all: 'Replace all',
  65. replace_tip: 'Note: After replacement, all references to the original metric in charts, tables, calculated metrics, and logic diagrams will be substituted with the replacement metric.',
  66. replace_success_msg: 'This replacement will last for a longer period of time, confirm the replacement?',
  67. replace_ing_msg: 'The replacement is currently in progress, please be patient',
  68. input_origin_vaild: 'Original Indicator can not be empty',
  69. input_replace_vaild: 'Indicator Replacement not be empty',
  70. /* 目录弹窗 */
  71. parent_menu: 'Prev Catalogue',
  72. menu_name: 'Catalogue Name',
  73. input_menu_msg: 'Catalogue name cannot be empty',
  74. /* 计算指标弹窗 */
  75. normal_calculate_tab: 'Conventional Calculation',
  76. batch_calculate_tab: 'Batch Calculation',
  77. calculate_title: 'Calculation',
  78. calculate_edit_title: 'Edit Calculation',
  79. calculate_view_title: 'View Calculation',
  80. add_more_param: 'Add more parameters',
  81. create_edb_time_index: 'Generate Indicator Time Series',
  82. null_val_deal: 'Null Value Handling',
  83. null_val_deal_0:'View Nearest Value Within 35 Days Before and After',
  84. null_val_deal_1:'Do Not Calculate',
  85. null_val_deal_2:'Forward Fill',
  86. null_val_deal_3:'Backward Fill',
  87. null_val_deal_4:'Equal to Zero',
  88. null_val_del_hint:`1. find the latest value of 35 days before and after: When there is no value on the date series participating in the calculation, the index to find the nearest value forward/back as the value of the day to calculate, traversal allows across the year, up to 35 days before, up to 35 days after <br>
  89. 2. do not calculate: as long as an indicator has no value on a certain date (that is, null value), the calculated indicator has no value on that date <br>
  90. 3. Fill the previous value: empty value is first filled with the most recent previous value. When there is no previous value, fill with the last value <br>
  91. 4. post-value filling: the null value is first filled with the most recent post-value, when there is no previous value, fill with the post-value <br>
  92. 5. equal to 0: the null value is 0 value to participate in the calculation <br>
  93. Note: The processing of missing values here applies to all time periods of the data`,
  94. max_null_val: 'MAX、MIN Null Value Handling',
  95. max_null_val_2:'Skip null',
  96. max_null_val_hint:`If there is a null value in the MAX and MIN formulas, handle it according to the following rules: <br>
  97. 1. equal to 0, null value with 0 to participate in the calculation; <br>
  98. 2. Skip the null value, remove the null value indicator, and calculate the remaining indicators. If all indicators of the date are null values, the date has no value;`,
  99. calculate_formula: 'Calculation Formula',
  100. input_formula_msg: 'Please input formula',
  101. input_formula_valid: 'Calculation Formula can not be blank',
  102. input_date_msg: 'Select date',
  103. formula_examp: 'Formula Example',
  104. formula_examp_hint:`1. support new segments, to achieve different segments use different formulas, if no new segments, all date sequences are calculated with a unified formula <br>
  105. 2. A new formula and time node need to be configured to add segments. The new formula is used before (excluding) the time node, and the configured formula is used after (including) the time node.
  106. 3. the segmented time node is not allowed to repeat, not allowed to exceed the date interval of the first indicator`,
  107. func_examp: 'Function Support',
  108. add_segm:'Add segment',
  109. num_overrun_msg: 'The number of indicators added has reached the limit.',
  110. label_move_way: 'Moving Mode',
  111. label_n_val: 'N equals to',
  112. label_calendar: 'Calendar',
  113. label_calendar_placeholder:'Please select a calendar',
  114. label_val_type: 'Data Retrieval',
  115. val_type_end: 'Period-End Value',
  116. val_type_average: 'Average Value',
  117. /* 指标拼接弹窗 */
  118. concat_tab_1:'Direct Splicing',
  119. concat_tab_2:'Year-over-Year Cumulative Value Concatenation',
  120. label_concat_date: 'Splicing Date',
  121. label_concat_date_before: 'Before Splicing',
  122. label_concat_date_after: 'After Splicing',
  123. label_concat_edb: 'Indicator to be spliced',
  124. label_onyear_date: 'Year-on-Year (YoY) Indicator',
  125. label_end_date:'End Date',
  126. /* 拟合残差弹窗 */
  127. label_self_var: 'Independent Variable',
  128. label_depend_var: 'Dependent Variable',
  129. label_fit_date: 'Fitting Time Period',
  130. ph_start: 'Start Time',
  131. ph_to_now: 'So Far',
  132. ph_end: 'End Time',
  133. move_type_tab1: 'Standard Indicator',
  134. move_type_tab2: 'Lead Days',
  135. /* 扩散指数弹窗 */
  136. add_more_edb: 'Add more indicators',
  137. label_diff_date: 'Diffusion Index Date',
  138. label_date_tab1: 'Union of All Dates',
  139. label_date_tab2: 'Union of Part of Dates',
  140. /* 最新值弹窗 */
  141. latest_val: 'latest value',
  142. /* 批量计算弹窗 */
  143. title_batch_calc : 'Batch Calc - Select',
  144. title_batch_save : 'Batch Save Results',
  145. default_select_text : 'Default',
  146. mean_imputation_select_text : 'Mean Imputation',
  147. formula_example_text : 'Formula Example: A+100, or A*2',
  148. formula_example_text_a_b : 'A+B, or A/B, A/(A+B)',
  149. formula_lable: "Formula",
  150. metric_label_b: "Metric B",
  151. alpha_value_lable: "Alpha Value",
  152. equal_zeto: "Equal to Zero",
  153. sum_radio_label: "Sum",
  154. average_radio_label: "Average",
  155. pending_metrics: "Pending Metrics (<{num})",
  156. label_classify:'Metric Category',
  157. select_frequency: "Choose Frequency",
  158. table_col_creator:'Creator',
  159. label_all_check:'Select All List',
  160. full_metric_name:'Full Metric Name',
  161. origin_full_metric_name:'Full name of the original indicator',
  162. add_to_selections:'Add to Selections',
  163. serial_num:'Serial Number',
  164. search_value_days_options:'Search Nearest Value Within 35 Days Before and After',
  165. not_alculate_options:'Do Not Calculate',
  166. forward_fill_options:'Forward Fill',
  167. backward_fill_options:'Backward Fill',
  168. edbTagA:'Metric A',
  169. edbTagB:'Metric B',
  170. specify_series_label:'Specify Metric Time Series',
  171. union_series_label:'Union of All Metric Time Series',
  172. numeric_greater_msg:'Please enter a numeric alpha value greater than 0 and less than 1',
  173. select_indicator_msg:'Please select indicator B',
  174. limit_indicators_msg:'The limit for batch adding indicators has been reached',
  175. gen_metric_name_label:'Gen Metric Name',
  176. metric_name_input:'Enter Metric Name',
  177. catalogue_directory:'Catalogue / Directory',
  178. subdirectory_radio:'Subdirectory',
  179. directory_radio:'Same Directory',
  180. calculating_batch:'Calculating Batch...',
  181. complete_information_msg:'Please fill in the complete information',
  182. please_which_take_msg:'Please wait for the calculation to complete, which may take 2-3 minutes',
  183. time_duration_num:'Enter a valid number',
  184. time_duration_type:'Select the correct time period'
  185. },
  186. /* 代码运算页面 */
  187. CodeCountPage: {
  188. run_btn: 'Run',
  189. res_show: 'Results Display',
  190. tab_info: 'Basic Information',
  191. tab_edb: 'Indicator Information',
  192. res_search: 'Query results',
  193. res_search_tip: 'show the structure of the table where the indicator is located and retrieve the indicator code',
  194. copy_code: 'Copy Code',
  195. noenough_info_msg: '请填写完整基础信息',
  196. run_msg: 'Please run code first',
  197. no_code_msg: 'Please input code',
  198. run_ing: 'Runing',
  199. run_success: 'Run successfully',
  200. table_name: 'Table Name',
  201. field_name: 'Field Name',
  202. field_instru: '*Field Description',
  203. res_show_col1: 'Date',
  204. res_show_col2: 'Value',
  205. opt_tip_btn:'Operation instruction',
  206. opt_tip_btn_text:`<div>1. Enter the code in the code input box to invoke the index library indicators for analysis and calculation. After running, output the analysis results:</div>
  207. <div>2. Click on the index information, select the data source and search for the index ID/index name, then display the table structure where the index is located, and you can copy and fetch the index code with one click:</div>
  208. <div>3. Add a line of code at the end of the calculation for formatted output, where "raw" is the data after final calculation (fill in with actual variable names):</div>
  209. <div>result = format_data(raw, "data_time", "value")</div>
  210. <div>4. Here is a runnable code example (the code to fetch index data needs to be replaced according to the system query):</div>
  211. <br />
  212. <div># Fetching Index Data Code:</div>
  213. <div>sql1 = f'""'SELECT data_time,\"value\" FROM edb_data_ths WHERE edb_code = 'S004414853' ;'""'</div>
  214. <div>raw = pandas_fetch_all(sql1, db)</div>
  215. <div># Index Calculation Method Code:</div>
  216. <div>raw['value'] = raw['value'] + 1</div>
  217. <div># Date Format Conversion Code:</div>
  218. <div>raw['data_time'] = raw['data_time'].apply(lambda x: x.strftime("%Y-%m-%d"))</div>
  219. <div># Print Calculation Result Code:</div>
  220. <div>result = format_data(raw, "data_time", "value")</div>`
  221. },
  222. /* 数据调整页面 */
  223. AdjustDataPage: {
  224. usetip_msg: 'Use Instructions',
  225. usetip: `Data adjustment:<br>1、Adjust the historical data of the selected indicator and saved, this indicator will be updated based on the adjusted data.<br>
  226. 2、Support adding future data to the selected indicator, and data correction when the indicator is updated to the same date in the future<br>
  227. 3、Select the table, use "Ctrl + F" to call the fast search function, support quickly locate the data in the table.<br>
  228. Note: The system only takes data from columns A and B.`,
  229. search_res: '查询结果',
  230. or_edbid: 'Original Indicator ID',
  231. or_edbname: 'Original Indicator Name',
  232. choose_edb: 'Select indicators',
  233. input_content_msg: 'Please input table content'
  234. }
  235. }