- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX
To create a new candlestick pattern a developer should create a new class and inherit it from BulkowskiCandlestickPatternBase class. Then a developer must implement the following things:
- bool function IsPattern which defines rules of candlestick pattern detection;
- property ResultSignalType which defines type the pattern signal;
- property NumberOfCandleLines which defines how many candles need for pattern detection;
- property TrendDirection which defines leading trend direction;Â
public class TestCandlestickPattern : BulkowskiCandlestickPatternBase
{
public override SignalType ResultSignalType => SignalType.BullishReversal;
public override int NumberOfCandleLines => 3;
public override TrendDirection LeadingTrend => TrendDirection.Down;
#region Overrides of BulkowskiCandlestickPatternBase
/// <inheritdoc />
protected override bool IsPattern(BarSeriesBackwardIndexer input)
{
//write your code here
return true;
}
#endregion
}
Provided example shows how to create a candlestick pattern wich will consist of 3 candles and define bullish reversal when general trend is down.Â
BarSeriesBackwardIndexer is a class that allows to use backward indexing working with bar series.
There is an object in the BulkowskiCandlestickPatternBase class, that can be helpful in candlestick pattern development. This object is Context that have type of BulkowskiCandlePatternCalculationContext.
- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX