PROTECTED SOURCE SCRIPT
M2 Global Liquidity Index - 10 Week Lead

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// CalmMonkey
// Mik3Christ3ns3n's M2 Global Liquidity Index Moved forward 10 weeks.
// M2 Money Stock for CNY+USD+EUR+JPY+GBP
//version=6
indicator('M2 Global Liquidity Index - 10 Week Lead (4H)', overlay=false, scale=scale.left)
// Define offset in weeks
offset_weeks = 12
// Convert weeks to milliseconds (1 week = 7 days * 86400000 ms/day)
offset_ms = offset_weeks * 7 * 86400000
// --- 각 자산을 4시간봉(240분)으로 변경 ---
cnm2 = request.security("ECONOMICS:CNM2", "240", close)
cnyusd = request.security("FX_IDC:CNYUSD", "240", close)
usm2 = request.security("ECONOMICS:USM2", "240", close)
eum2 = request.security("ECONOMICS:EUM2", "240", close)
eurusd = request.security("FX:EURUSD", "240", close)
jpm2 = request.security("ECONOMICS:JPM2", "240", close)
jpyusd = request.security("FX_IDC:JPYUSD", "240", close)
gbm2 = request.security("ECONOMICS:GBM2", "240", close)
gbpusd = request.security("FX:GBPUSD", "240", close)
// --- 합산 ---
total = (cnm2 * cnyusd + usm2 + eum2 * eurusd + jpm2 * jpyusd + gbm2 * gbpusd) / 1000000000000
// Plot with the time offset (주 단위 오프셋 그대로 유지)
plot(total, color=color.yellow, linewidth=2, offset=offset_weeks * 7)
// CalmMonkey
// Mik3Christ3ns3n's M2 Global Liquidity Index Moved forward 10 weeks.
// M2 Money Stock for CNY+USD+EUR+JPY+GBP
//version=6
indicator('M2 Global Liquidity Index - 10 Week Lead (4H)', overlay=false, scale=scale.left)
// Define offset in weeks
offset_weeks = 12
// Convert weeks to milliseconds (1 week = 7 days * 86400000 ms/day)
offset_ms = offset_weeks * 7 * 86400000
// --- 각 자산을 4시간봉(240분)으로 변경 ---
cnm2 = request.security("ECONOMICS:CNM2", "240", close)
cnyusd = request.security("FX_IDC:CNYUSD", "240", close)
usm2 = request.security("ECONOMICS:USM2", "240", close)
eum2 = request.security("ECONOMICS:EUM2", "240", close)
eurusd = request.security("FX:EURUSD", "240", close)
jpm2 = request.security("ECONOMICS:JPM2", "240", close)
jpyusd = request.security("FX_IDC:JPYUSD", "240", close)
gbm2 = request.security("ECONOMICS:GBM2", "240", close)
gbpusd = request.security("FX:GBPUSD", "240", close)
// --- 합산 ---
total = (cnm2 * cnyusd + usm2 + eum2 * eurusd + jpm2 * jpyusd + gbm2 * gbpusd) / 1000000000000
// Plot with the time offset (주 단위 오프셋 그대로 유지)
plot(total, color=color.yellow, linewidth=2, offset=offset_weeks * 7)
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。