# Awesome Oscillator Saucer

> Awesome Oscillator Saucer is a strategy that trades EURGBP on 1-hour bars. It holds at most 1 open trade.

Source: https://algobarsx.com/docs/ex-57-awesome-saucer/

```algobarsx
strategy "Awesome Oscillator Saucer"
    market: EURGBP
    bars: 1h
    max_open: 1

ao = awesome_osc()

sequence saucer within 5 bars:
    step first_red: ao > 0 and ao < ao[1]
    step second_red: ao > 0 and ao < ao[1]
    step green_bar: ao > 0 and ao > ao[1]
    reset_if: ao < 0

when saucer.completed:
    buy risk: 0.75%, stop: saucer.first_red.low, target: 2R
```
What this script says

Awesome Oscillator Saucer is a strategy that trades EURGBP on 1-hour bars. It holds at most 1 open trade.

It calculates `ao` as the awesome oscillator.

`saucer` completes when these steps happen in order within 5 bars: `first_red`, when `ao` is above 0 and `ao` is below the previous bar's `ao`; then `second_red`, when `ao` is above 0 and `ao` is below the previous bar's `ao`; then `green_bar`, when `ao` is above 0 and `ao` is above the previous bar's `ao`. It starts over if `ao` is below 0.

When `saucer` completes, it buys at market, risking 0.75% of the balance, with a stop at the low of the `first_red` step and with a target 2R from the entry.
