Runbot Documentation
How it worksIndicatorsTriggers BoxesNFTs
  • Introduction
  • Interactive Tutorial
  • HOW IT WORKS
    • Box synergies
    • Signal list
      • Long/Short signal
      • Cancel signal
      • Stop signal
      • Custom signal
    • Glossary
  • Parimutuels Markets
  • Strategy Boxes
    • Strategy list
    • Strategy management (Backtest box)
    • Signals Box
    • Selectors Box
    • Indicators box
      • Offset Candle
      • Signal creation
      • Signal duration rule
  • Indicators
    • Basic triggers
    • Runbot Indicators
      • RSI
      • Candle
      • MACD
      • MA
      • Stochastic
      • Streak
      • ATR
      • Bollinger Bands
      • Funding (8h Rates)
      • Orderflow
      • Liquidations
      • Pivot Points
      • ATR Bands
      • Fibonacci
      • CHOP
      • Potential Cumulative Liquidations
      • Open Interest
      • Volume Profile
      • Ichimoku
      • SAR
      • TD9
      • VWAP/MVWAP
      • Calendar
      • SuperTrend
      • CCI
      • Fear & Greed Index
      • MA Bands
      • Volume Anomaly
      • Orderbook
      • AI News Sentiment
    • #AI Indicators: Harmonia
    • VeloData Indicators
      • Aggregated Datas
        • Premium Index
        • Volume Index
      • Options Markets
        • Options Premium Index
        • Option Volume
        • Option Skew
        • Implied Volatility
        • Delta
        • Vega
        • Gamma
  • Triggers Boxes
    • Entry in position rules
      • Majority of signals
      • Unanimity of signals
      • Equality
      • Minimum number of signals
      • Maximum number of signals
      • No previous trade
    • Exit position rules
      • Stop %/ATR
      • Confirmation stop %/ATR
      • TP ATR %/ATR
      • TP/SL signal
      • Trailing %/ATR
      • Decaying TP %/ATR
      • Magnetic TP %/ATR
      • Stop candle %/ATR
      • TP Candle %/ATR
      • Number of candles
      • Opposite trade
    • Adjust position rules
      • Increase/Decrease order size
      • Delay between two triggers
      • Signals occurs
      • Max position size
  • Risk management Boxes
    • Position size
      • Leverage
      • Constant USD
      • Orderbook
      • Risk % capital per %/ATR
      • Risk constant USD per %/ATR
      • Candle distance
    • Entry in position methods
      • Market order
      • Slippage market
      • Sequential Market
      • Pyramid orders
      • Delay
  • Runbot NFTs
    • Connect your Web3 Wallet
    • Strategy NFTs
    • Mint Open-Source NFT
    • Mint Rental NFT
    • Community NFTs Indicators
      • Black Flamingo Indicators
      • Harmonia Indicators
      • VeloData Indicators
    • FAQ Marketplace & NFTs
  • Webhooks (Trading Bots)
    • BingX (free bots)
    • Bitget (free bots)
    • Phemex (free bots)
    • Blofin (free bots)
    • OKX
    • Bybit
    • Tealstreet
    • Mizar
    • WunderTrading
    • Alertatron
    • Zignaly
    • Discord
    • Custom URL
  • Advanced Tools
    • Strategies Composer
    • Strategy Optimiser
      • Random Search
      • Simulated annealing
      • Combinatorial
      • Tips to Optimize your strategy
  • Free plan and Credits
Powered by GitBook
On this page

Was this helpful?

  1. Strategy Boxes
  2. Indicators box

Signal duration rule

PreviousSignal creationNextBasic triggers

Last updated 5 months ago

Was this helpful?

In the previous example, we have seen how to create a signal. But you also sometimes need to determine for how long the signal will exist.

If your strategy only has 1 signal, then you'll not need the signal duration feature. Because as soon as your signal is triggered, your strategy will immediatly execute the order.


However, if your strategy requires 2 longs signals to execute an order, you might need a signal duration rule to meet the requirements.

It will depend of your type of signal trigger. For example, if you create a long signal with the "cross signal" feature, this will be activated only during the next candle. That can be a very short period of time and you might never meet the second long signal at the same time.


If you have a long signal from a "in zone" trigger, your signal might be longer, since the indicator can stay in that zone for many more candles/time, which makes things easier to meet others signals at the same time and then trade.

Click on "add a new signal duration rule" to add an existence time of your signal once it is created. You can either choose a duration time, like 1x1 hour candle or let the signal be activated until you trigger another specific signal. See next examples.


Ex 1: [There is a minimum of 2 long signals] We want to open a long position only if we are triggering 2 longs signals at the same time.

In that example, we want the RSI to cross up the level 20 and at the same time the Stochastic to be in the zone [0;40] to execute a long order. The long signal from the RSI will be activated during 1 hour after it has been triggered. The long signal from the Stochastic will be activated only when it is in the [0;40] zone.

-> If the Stochastic is in the zone at 35, and then later the RSI cross up the level 20, the bot will open a long position (the duration rule here doesn't matter).

-> If the RSI cross up the level 20 and then 1 hour later the Stochastic is still not in the zone [0;40], the bot will not open any positon.

-> If the RSI cross up the level 20 and 45 minutes after the Stochastic just entered the zone, the bot will open a long position. That long is possible because the RSI signal is activated during 1 hour. Without this duration rule, the long signal would only be activated for 15 minutes (i.e. the next candle of the same period), so there would be no trade.

It is also possible to create the signal not only for a specific time, but until another signal is triggered.

In this example, as soon as a stop signal is triggered, the long signal is canceled.

Another possibility, is to delay the activation of the long signal. In this example, we wait for 1 hour before placing a long signal.