// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © dandrideng //@version=5 indicator(title="Pinbar Indicator", shorttitle="Pinbar", overlay=true, max_bars_back=1000, max_lines_count=400, max_labels_count=400) import dandrideng/merge_pinbar/1 as mp //pinbar pattern draw_pinbar = input.bool(defval=true, title="Draw Pinbar Pattern Alert?", group="Pinbar Patttern") pinbar_period = input.int(defval=240, title="Pinbar Statistic Period", minval=1, step=1, group="Pinbar Patttern") max_merged_bars = input.int(defval=2, title="Max Merged Bars", minval=1, step=1, group="Pinbar Patttern") min_strength = input.float(defval=1.5, title="Min Pinbar Strength", minval=0.1, step=0.1, group="Pinbar Patttern") to_intstr(x) => str.tostring(x, "#") to_floatstr(x) => str.tostring(x, "#.###") [pinbar_type, pinbar_bars, pinbar_strength] = mp.merge_pinbar(pinbar_period, max_merged_bars) if pinbar_type == 1 and pinbar_strength >= min_strength and draw_pinbar pinbar_label = label.new(x=bar_index, y=low) label.set_text(pinbar_label, "Bull Pinbar: "+ to_intstr(pinbar_bars) + "\nStrength: " + to_floatstr(pinbar_strength)) label.set_color(pinbar_label, color.new(color.blue, 40)) label.set_textcolor(pinbar_label, color.white) label.set_style(pinbar_label, label.style_label_up) if pinbar_type == -1 and pinbar_strength >= min_strength and draw_pinbar pinbar_label = label.new(x=bar_index, y=high) label.set_text(pinbar_label, "Bear Pinbar: "+ to_intstr(pinbar_bars) + "\nStrength: " + to_floatstr(pinbar_strength)) label.set_color(pinbar_label, color.new(color.purple, 40)) label.set_textcolor(pinbar_label, color.white) label.set_style(pinbar_label, label.style_label_down) //end of file
时间: 2024-03-26 18:37:53 浏览: 12
这段代码是一个基于 Pine Script 的 pinbar 指标,用于在 TradingView 平台上显示pinbar 模式的信号。它使用了 dandrideng/merge_pinbar 库来合并多个k线条,以便更准确地识别pinbar模式。该指标允许用户自定义pinbar的统计周期、最大合并条数、最小强度等参数,并且可以在图表上显示对应的标签。
相关问题
geckodriver 0.30.0 (d372710b98a6 2021-09-16 10:29 +0300) The source code of this program is available from testing/geckodriver in https://hg.mozilla.org/mozilla-central. This program is subject to the terms of the Mozilla Public License 2.0. You can obtain a copy of the license at https://mozilla.org/MPL/2.0/.
感谢您提供的关于 geckodriver 的信息。这是 geckodriver 的版本信息和许可证细节。根据提供的信息,geckodriver 0.30.0 是Mozilla Public License 2.0的许可下发布的。根据该许可,您可以在 https://mozilla.org/MPL/2.0/ 获取许可证的副本。
geckodriver 是一个独立的驱动程序,用于连接 Selenium WebDriver 和 Firefox 浏览器。它允许您使用 Selenium WebDriver 来控制和自动化 Firefox 浏览器的行为。
如果您需要了解更多关于 geckodriver 的信息,或者需要找到特定版本的 geckodriver,请访问 https://github.com/mozilla/geckodriver。在该页面上,您可以找到 geckodriver 的源代码、发布版本以及详细的文档和使用说明。
请确保您在使用 geckodriver 时遵守其许可证条款,并根据需要获取相应的许可证副本。
PyPi url https://pypi.python.org/pypi/Quandl
根据提供的引用内容,我无法找到关于PyPi url https://pypi.python.org/pypi/Quandl的相关信息。很抱歉无法为您提供答案。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [n8_Visualizing Multivariate_sns_3D plot_matplotlib.dates_mpl_finance_aapl stock_EMA_RSI_Bollinger](https://blog.csdn.net/Linli522362242/article/details/121172551)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]