![見出し画像](https://assets.st-note.com/production/uploads/images/123763934/rectangle_large_type_2_f16053ad256205ad614f141a0bdb46dd.png?width=1200)
Pine Script™ (v5) の覚書 - 4 : MTF移動平均線を表示する (1)
今回使うもの request.security
request.securityとその引数
request.security(symbol, timeframe, expression, gaps, lookahead, ignore_invalid_symbol, currency) → series <type>
request.security を使うと指定したsymbol(銘柄)の指定した時間足の値を取得することができる。
本稿では、request.securityの必須要素としてsymbol(syminfo.tickerid: 現在表示している銘柄固定), timeframe(D: 日足固定), expressionに限定する。
request.securityの基本的な使い方
myvalue=request.security(syminfo.tickerid, timeframe, 計算させたいもの)
続く↓
いいなと思ったら応援しよう!
![rca](https://d2l930y2yx77uc.cloudfront.net/assets/default/default_profile_3-39088fff430aa9ec11d6e2a385dbcad45c8b79bde6c0c9ded10cd7abb960174f.png?width=600&crop=1:1,smart)