我需要帮助创建一个TradingView警报条件使用两个指标:随机和市场解放。该策略在于,只有当stoch在渠道之外时,才会触发来自Market Liberator的分歧(它具有内置的分歧警报)。
这是可能的吗?here is an image
发布于 2021-07-20 03:35:37
如果'Market Liberator‘指示器的源代码被关闭--我担心这是不可能的。
然而,你的屏幕截图中的“市场解放分子”看起来像是从免费的公共开源脚本中抄袭过来的,它们有不同的名字,其中最受欢迎的- vumanchu cipher B
如果Market Liberator是开源密码指示器的副本-您只需在分歧警报中包含一个基于随机的额外条件,如以下示例所示(使用Vumanchu的market Cipher B脚本):
...
// Stoch indicator and inputs:
periodK = input(14, title="%K Length", minval=1)
smoothK = input(1, title="%K Smoothing", minval=1)
periodD = input(3, title="%D Smoothing", minval=1)
k = sma(stoch(close, high, low, periodK), smoothK)
d = sma(k, periodD)
// Stoch outside the 20-80 channel:
bool stochBuy = d < 20
bool stochSell = d > 80
// Divergence alerts from the MC script with additional stoch condition:
// bullish
alertcondition(buySignalDiv and stochBuy, 'Buy (Big green circle + Div)', 'Buy & WT Bullish Divergence & WT Overbought')
// bearish
alertcondition(sellSignalDiv and stochSell, 'Sell (Big red circle + Div)', 'Buy & WT Bearish Divergence & WT Overbought')https://stackoverflow.com/questions/68442706
复制相似问题