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このレシピのブロック

idtype
ema_fastindicator.ema
ema_slowindicator.ema
rsiindicator.rsi
trend_upsignal.threshold
rsi_pullback_levelsignal.threshold
pullbacksignal.recent
rsi_above_triggersignal.threshold
rsi_at_or_below_triggersignal.threshold
below_trigger_beforesignal.recent
triggersignal.combine
setupsignal.combine
plot_fastvisual.plot
plot_slowvisual.plot
alertalert.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 v60
MT5 · MQL51
cTrader · C#0
MT4 · MQL41
cTrader · Python0
Bookmap · Python0
NinjaTrader 8 · NinjaScript0
Quantower · C#0
Sierra Chart · ACSIL C++0
ProRealTime · ProBuilder1
GoCharting · Lipi0
MotiveWave · Java0
Vela · JavaScript0
JForex · Java0
TradeStation · EasyLanguage0
ATAS · C#0
AmiBroker · AFL0
thinkorswim · thinkScript0
Tradovate · JavaScript0
backtrader · Python0
Backtesting.py · Python0
NautilusTrader · Python0

How to use使い方

  1. 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).
  2. Paste the starter for your platform, compile it there and resolve every TODO marker.
  3. Or edit the recipe JSON and re-run the generator yourself.
  1. 登録なしでレシピ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))を開きます。
  2. 使うプラットフォーム用のひな形を貼り付けてコンパイルし、TODOをすべて解消します。
  3. レシピ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 bytes
  • trend-pullback-composite.pine-v6.pine · 1047 bytes
  • trend-pullback-composite.mql5.mq5 · 4091 bytes
  • trend-pullback-composite.ctrader.cs · 2910 bytes
  • trend-pullback-composite.mql4.mq4 · 2653 bytes
  • trend-pullback-composite.ctrader-python.py · 2976 bytes
  • trend-pullback-composite.bookmap-python.py · 6817 bytes
  • trend-pullback-composite.ninjatrader.cs · 3260 bytes
  • trend-pullback-composite.quantower.cs · 3268 bytes
  • trend-pullback-composite.sierra-acsil.cpp · 3796 bytes
  • trend-pullback-composite.prorealtime.txt · 1820 bytes
  • trend-pullback-composite.gocharting-lipi.lipi · 1561 bytes
  • trend-pullback-composite.motivewave.java · 4442 bytes
  • trend-pullback-composite.vela.js · 7322 bytes
  • trend-pullback-composite.jforex.java · 3929 bytes
  • trend-pullback-composite.easylanguage.txt · 1657 bytes
  • trend-pullback-composite.atas.cs · 5632 bytes
  • trend-pullback-composite.amibroker.afl · 1822 bytes
  • trend-pullback-composite.thinkscript.ts · 1839 bytes
  • trend-pullback-composite.tradovate.js · 4321 bytes
  • trend-pullback-composite.backtrader.py · 3714 bytes
  • trend-pullback-composite.backtesting-py.py · 5344 bytes
  • trend-pullback-composite.nautilus.py · 7788 bytes