Volatility Expansion Levels

UnknownUnicorn29453368 · study · 19 行 · 点赞 1,374 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © dadoesploso
 
//@version=4
 
study(title="Automatic Order Block", overlay=true)
 
lenght = 20
 
if ((open[1] > close[1]) and (close > open) and (open < close[1] and close > open[1])) and (sma(close, 21) > sma(close, 55))
    
    box.new(left=bar_index[1], top=high[1], right=bar_index + lenght, bottom=low[1], 
	 border_color=color.green, border_width=2, bgcolor=color.green)
	 
	 
if ((open[1] < close[1]) and (close < open) and (open > close[1] and close < open[1])) and (sma(close, 21) < sma(close, 55))
    
    box.new(left=bar_index[1], top=high[1], right=bar_index + lenght, bottom=low[1], 
	 border_color=color.red, border_width=2, bgcolor=color.red)

← 返回列表