yatrader2

FUNCTION: Specify lengths in time (or bars)

yatrader2 업데이트됨   
This is a function to give measures in time rather than bars...

I often want to measure in things in time rather than bars and change the sample rate (the candle size)
without reconfiguring my settings. This is a handy function for setting you input lengths in time units
(or bars when you want that)

For example
  • I want a 3 hour moving average, regardless of whether I have 5 minute candles or 30 min candles...
    I want a 200 day moving average, regardless of whether I have 1 day or 1 week candles...

This is designed for you to put in your own scripts for your own purpose, but you can use this as is for time constant moving averages
or as an indicator on an indicator.


This shows the same moving averages 45 min / 3 hours in aqua / fuchsia and 1 day / 1 week in red / green

First row: On an extended session chart with 10m, 30m and 60m candles (all of them use the same settings (day length is 16 hours) everything else default.
Second row: On a standard session chart with 10m, 30m and 60m candles (all of them use the same settings everything else default.
릴리즈 노트:
Since the nice folks @pinecoders decided to feature this, I figured I should go the extra mile and save you the trouble of having to set your day and week lengths (but you can still do by selecting common sessions, or setting your own manually).

You can see the settings here: https://snipboard.io/wtbaqx.jpg, but I guess I can't embed non TV images :(

By default the script will guess your day and week length, and will do so correctly for:
  • CME and COMEX (23x5)
  • NYSE, NASDAQ, AMEX and OTC (6.5x5 if you are viewing the regular session and 16x5 if you are viewing the extended session)
  • All crypto, because the default if an exchange is not handled is 24x7

If you aren't sure if it has guessed correctly, you can see the guess printed in the Data Window.

Here's a screen shot showing the same thing as the initial release, but the defaults are use everywhere. (I also added one more column, showing CME and Coinbase)
오픈 소스 스크립트

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

면책사항

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

차트에 이 스크립트를 사용하시겠습니까?