TradingView · MT5 · MT4 · cTrader · Bookmap · NinjaTrader · Quantower · Sierra Chart · ProRealTime · GoCharting · MotiveWave · Vela · JForex · TradeStation · ATAS · AmiBroker · thinkorswim · Tradovate · backtrader · Backtesting.py · NautilusTraderMITRecipeレシピ
Trend Pullback Composite
Uptrend state (EMA 21 above EMA 89), a real dip (RSI at or below 40 on one of the last 5 bars), then recovery: RSI crossing back above 45 on a closed bar.
上昇トレンド(EMA 21がEMA 89より上)のあいだに、直近5本のどこかでRSIが40以下まで下がり(本当の押し目)、確定足でRSIが45を上抜けた(回復)足を知らせます。
Structure reviewed — not runtime tested構造のみ確認・実行検証なし ORIGINAL BSV SOURCE
Open code — no sign-upコードを開く(無料・登録不要)
Summaries and source are both open. Viewing, copying and downloading BSV-provided source needs no sign-up.解説もコードも登録なしで開けます。BSVが提供するコードの閲覧・コピー・ダウンロードに登録は要りません。
Blocks in this recipeこのレシピのブロック
| id | type |
|---|---|
ema_fast | indicator.ema |
ema_slow | indicator.ema |
rsi | indicator.rsi |
trend_up | signal.threshold |
rsi_pullback_level | signal.threshold |
pullback | signal.recent |
rsi_above_trigger | signal.threshold |
rsi_at_or_below_trigger | signal.threshold |
below_trigger_before | signal.recent |
trigger | signal.combine |
setup | signal.combine |
plot_fast | visual.plot |
plot_slow | visual.plot |
alert | alert.condition |
Changelog変更履歴
- 2026-10-04 Follow-up: the pullback level is now 40 (its own block, rsi_pullback_level, editable in the Builder) and the trigger stays at 45, so the recipe means a real dip, then recovery. With both at 45 the pullback condition was redundant (the trigger already needs RSI at or below 45 on the bar before). BSV test data: the alert condition still holds on every checker's bars, fewer times than with 45. Download the starters again.追加の修正:押し目の水準を40にしました(専用のブロック rsi_pullback_level で、Builderで変更できます)。トリガーは45のままなので、「本当の押し目のあとの回復」を意味する条件になりました。どちらも45だったときは、トリガーが1本前のRSI 45以下をすでに求めるため、押し目の条件が実質的に効いていませんでした。BSVのテストデータでは、すべてのチェッカーのデータで条件が成立します(45のときより回数は少なくなります)。ひな形はダウンロードし直してください。
- 2026-10-04 Functional fix: the old condition needed the EMA 21 / 89 cross-up event and RSI at or below 45 on the same bar, which almost never happens (BSV test data: never). Now: trend state EMA 21 above EMA 89, pullback = RSI at or below 45 on one of the last 5 bars (bars is editable), trigger = RSI crosses back above 45 on a closed bar. With both levels at 45 the cross already implies the pullback; lower the pullback level (rsi_pullback_level) to require a deeper dip. Download the starters again.機能の修正:以前の条件は、EMA 21/89の上抜けの瞬間とRSI 45以下が同じ足で起きることを求めていて、ほとんど成立しませんでした(BSVのテストデータでは一度も成立せず)。新しい条件:トレンド状態はEMA 21がEMA 89より上、押し目は直近5本のどこかでRSIが45以下(本数は変更できます)、トリガーは確定足でRSIが45を上抜けたとき。どちらの水準も45のままだと、上抜けの時点で押し目の条件も満たされます。より深い押し目を求めるときは押し目の水準(rsi_pullback_level)を下げてください。ひな形はダウンロードし直してください。
Pre-generated starters生成済みのひな形
Generated by the BSV generator from this recipe. TODO markers are blocks the target cannot express yet — resolve them before use.このレシピからBSVジェネレーターで生成しました。TODOは出力先でまだ表現できないブロックです。使う前に解消してください。
| Target出力先 | TODO markersTODOの数 |
|---|---|
| TradingView · Pine v6 | 0 |
| MT5 · MQL5 | 1 |
| cTrader · C# | 0 |
| MT4 · MQL4 | 1 |
| cTrader · Python | 0 |
| Bookmap · Python | 0 |
| NinjaTrader 8 · NinjaScript | 0 |
| Quantower · C# | 0 |
| Sierra Chart · ACSIL C++ | 0 |
| ProRealTime · ProBuilder | 1 |
| GoCharting · Lipi | 0 |
| MotiveWave · Java | 0 |
| Vela · JavaScript | 0 |
| JForex · Java | 0 |
| TradeStation · EasyLanguage | 0 |
| ATAS · C# | 0 |
| AmiBroker · AFL | 0 |
| thinkorswim · thinkScript | 0 |
| Tradovate · JavaScript | 0 |
| backtrader · Python | 0 |
| Backtesting.py · Python | 0 |
| NautilusTrader · Python | 0 |
How to use使い方
- Open code (no sign-up) to get the recipe JSON and twenty-two pre-generated starters (Pine v6, MQL5, MQL4, cTrader C#, cTrader Python, Bookmap Python, NinjaTrader 8, Quantower, Sierra Chart ACSIL, ProRealTime, GoCharting Lipi, MotiveWave Java, Vela JavaScript, JForex Java, TradeStation EasyLanguage, ATAS C#, AmiBroker AFL, thinkorswim thinkScript, Tradovate JavaScript, backtrader Python, Backtesting.py Python, NautilusTrader Python).
- Paste the starter for your platform, compile it there and resolve every TODO marker.
- Or edit the recipe JSON and re-run the generator yourself.
- 登録なしでレシピJSONと生成済みのひな形22種類(Pine v6・MQL5・MQL4・cTrader C#・cTrader Python・Bookmap Python・NinjaTrader 8・Quantower・Sierra Chart(ACSIL)・ProRealTime・GoCharting(Lipi)・MotiveWave(Java)・Vela(JavaScript)・JForex(Java)・TradeStation(EasyLanguage)・ATAS(C#)・AmiBroker(AFL)・thinkorswim(thinkScript)・Tradovate(JavaScript)・backtrader(Python)・Backtesting.py(Python)・NautilusTrader(Python))を開きます。
- 使うプラットフォーム用のひな形を貼り付けてコンパイルし、TODOをすべて解消します。
- レシピJSONを編集してジェネレーターを自分で実行し直すこともできます。
Verification scope確認の範囲
| Source出典 | ORIGINAL BSV source, MIT licenseBSVオリジナルのソース・MITライセンス |
| Catalog statusカタログ上の状態 | Structure reviewed — not runtime tested構造のみ確認・実行検証なし |
| Compile / build on the platformプラットフォームでのコンパイル・ビルド | Not performed by BSVBSVでは未実施 |
| Backtest / demo / live runバックテスト・デモ・実運用 | Not performed未実施 |
| Order placement発注機能 | None — visual/alert starter onlyなし(表示・アラートのみ) |
Filesファイル
trend-pullback-composite.json · 5039 bytestrend-pullback-composite.pine-v6.pine · 1047 bytestrend-pullback-composite.mql5.mq5 · 4091 bytestrend-pullback-composite.ctrader.cs · 2910 bytestrend-pullback-composite.mql4.mq4 · 2653 bytestrend-pullback-composite.ctrader-python.py · 2976 bytestrend-pullback-composite.bookmap-python.py · 6817 bytestrend-pullback-composite.ninjatrader.cs · 3260 bytestrend-pullback-composite.quantower.cs · 3268 bytestrend-pullback-composite.sierra-acsil.cpp · 3796 bytestrend-pullback-composite.prorealtime.txt · 1820 bytestrend-pullback-composite.gocharting-lipi.lipi · 1561 bytestrend-pullback-composite.motivewave.java · 4442 bytestrend-pullback-composite.vela.js · 7322 bytestrend-pullback-composite.jforex.java · 3929 bytestrend-pullback-composite.easylanguage.txt · 1657 bytestrend-pullback-composite.atas.cs · 5632 bytestrend-pullback-composite.amibroker.afl · 1822 bytestrend-pullback-composite.thinkscript.ts · 1839 bytestrend-pullback-composite.tradovate.js · 4321 bytestrend-pullback-composite.backtrader.py · 3714 bytestrend-pullback-composite.backtesting-py.py · 5344 bytestrend-pullback-composite.nautilus.py · 7788 bytes