# Examples

### RSI mean reversion

```mermaid
flowchart TD
  MD[Market Data\nEURUSD 1H] --> RSI[RSI\nperiod: 14]
  RSI --> L[Compare\nRSI < 30]
  RSI --> H[Compare\nRSI > 70]
  L --> BUY[Buy Order]
  H --> SELL[Sell Order]
```

Notes

* Direction is auto-detected as long & short.
* Start with wide thresholds, then tighten.

### SMC: Order Block + FVG confirmation

```mermaid
flowchart TD
  MD[Market Data] --> SHL[Swing Highs/Lows\nswing_length: 50]
  SHL --> OB[Order Blocks]
  MD --> FVG[Fair Value Gaps]

  OB --> OB1[Compare\nOB == 1]
  FVG --> FVG1[Compare\nFVG == 1]

  OB1 --> AND[AND Gate]
  FVG1 --> AND
  AND --> BUY[Buy Order]
```

Notes

* OB needs Swing Highs/Lows input.
* Keep conditions explicit.

### Multi-timeframe RSI confirmation

```mermaid
flowchart LR
  MD1[Market Data\nEURUSD 1H] --> RSI1[RSI 1H]
  RSI1 --> C1[Compare\nRSI < 30]

  MD1 --> RS[Resample\n4H]
  RS --> RSI4[RSI 4H]
  RSI4 --> C4[Compare\nRSI < 30]

  C1 --> AND[AND Gate]
  C4 --> AND
  AND --> BUY[Buy Order]
```

Notes

* Use higher timeframe as a filter.
* Keep the base timeframe for entries.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.quantbytes.net/bot-studio/examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
