Skip to content

Commit

Permalink
Update 99 Examples.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Oct 22, 2024
1 parent 7190f55 commit 7dd4580
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<h4>Example 1: Shorting Penny Stock Top Gainers</h4>
<p>
The following algorithm example adds a universe of penny stocks that have experienced the greatest upward momentum over the last two trading days.
For each asset in the universe, it monitors the hourly <a href='/docs/v2/writing-algorithms/indicators/supported-indicators/bollinger-bands'>Bollinger Bands</a>.
The following algorithm adds a <a href='https://www.quantconnect.com/docs/v2/writing-algorithms/universes/equity/fundamental-universes'>universe</a> of penny stocks that have experienced the greatest upward momentum over the last two trading days.
For each asset in the universe, it monitors an hourly <a href='/docs/v2/writing-algorithms/indicators/supported-indicators/bollinger-bands'>Bollinger Bands</a> indicator.
When an asset breaks above the upper band, it shorts the asset.
It exits each position when the asset drops 10% from the entry price or when it reverts back below the middle Bollinger Band.
It exits each position when the asset drops 10% from the entry price or when the price reverts back below the middle Bollinger Band.
</p>
<div class="section-example-container">
<pre class="csharp">using QuantConnect.Data.Shortable;
Expand Down

0 comments on commit 7dd4580

Please sign in to comment.