Dest123

VolumeVsVSMAComparison

Volume vs the volume sma .

Blue is low volume , green is normal, yellow is high, and red is very high.

Top bar is 100sma, middle is 25sma, and bottom is 5 sma .
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
//@version=2
study("VolumeVsVSMAComparison")
//strategy("Testing")

//changePosition(up) =>
  //  strategy.close_all()
//    up ? strategy.entry("buy", strategy.long, 10) : strategy.entry("sell", strategy.short, 10)
  //  up

smaVal = 100
lowVolume = volume < sma(volume,smaVal)*0.8
highVolume = volume > sma(volume,smaVal)*1.5
mediumHighVolume = volume > sma(volume,smaVal)*1

smaVal2 = 25
lowVolume2 = volume < sma(volume,smaVal2)*0.8
highVolume2 = volume > sma(volume,smaVal2)*1.5
mediumHighVolume2 = volume > sma(volume,smaVal2)*1

smaVal3 = 5
lowVolume3 = volume < sma(volume,smaVal3)*0.8
highVolume3 = volume > sma(volume,smaVal3)*1.5
mediumHighVolume3 = volume > sma(volume,smaVal3)*1

change = sma((close-open),1)
goingUp = ((change > change[1]))// and (change[1] > change[2]))

plot(close,"", lowVolume ? blue : highVolume ? red : mediumHighVolume ? orange : green, linewidth=3)
plot(close-5,"", lowVolume2 ? blue : highVolume2 ? red : mediumHighVolume2 ? orange : green, linewidth=3)
plot(close-10,"", lowVolume3 ? blue : highVolume3 ? red : mediumHighVolume3 ? orange : green, linewidth=3)

//changePosition(goingUp)
//if (not na(goingUp[1]))
    //if (goingUp != goingUp[1])
        //if ((lowVolume[1] or lowVolume[2]) and highVolume) or (highVolume[1] and not highVolume)
        //if goingUp
            //strategy.entry("buy", strategy.long, strategy.position_size == 0 ? 10 : 20)
        //else
//            strategy.entry("sell", strategy.short, strategy.position_size == 0 ? 10 : 20)

//plot(strategy.equity, "", blue)
//plot(strategy.netprofit+100)
//plot(close, "", (goingUp ? green : red))
//plot(open, "", (((sma(open,3) > sma(open,3)[1]) and (sma(open,3)[1] > sma(open,3)[2])) ? green : red))

//plot(macd, color=blue)
//plot(signal, color=orange)