OlympusTrader.insight.executors.filled package

Submodules

OlympusTrader.insight.executors.filled.basicStopLoss module

class OlympusTrader.insight.executors.filled.basicStopLoss.BasicStopLossExecutor(strategy, **kwargs)

Bases: BaseExecutor

### Executor for Basic Stop Loss

This executor is used to check if the insight has crossed the stop loss level. If the price crosses the stop loss level, the position is closed. Ideally this executor should be used in conjunction simple orders types with no OCO or bracket orders as the broker will close the position if the stop loss level is crossed.

Parameters:

(BaseStrategy) (strategy) – The strategy instance

Note: You should have already set the stop loss price in the insight before using this executor.

Author:

@isaac-diaby

run(insight)

Run the executor.

OlympusTrader.insight.executors.filled.basicTakeProfit module

class OlympusTrader.insight.executors.filled.basicTakeProfit.BasicTakeProfitExecutor(strategy, **kwargs)

Bases: BaseExecutor

### Executor for Basic Take Profit This executor is used to take profit on insights that have reached the take profit price.

Parameters:

(BaseStrategy) (strategy) – The strategy instance

Author:

@isaac-diaby

run(insight)

Run the executor.

OlympusTrader.insight.executors.filled.closeExhaustedInsight module

class OlympusTrader.insight.executors.filled.closeExhaustedInsight.CloseExhaustedInsightExecutor(strategy, **kwargs)

Bases: BaseExecutor

### Executor for Closing Exhausted Insights This executor is used to close exhausted insights.

Parameters:

(BaseStrategy) (strategy) –

The strategy instance

Author:

@isaac-diaby

run(insight)

Run the executor.

OlympusTrader.insight.executors.filled.closeMarketChanged module

class OlympusTrader.insight.executors.filled.closeMarketChanged.CloseMarketChangedExecutor(strategy, **kwargs)

Bases: BaseExecutor

### Executor for Closing Market Changed Insights This executor is used to close insights that have the market changed flag to true.

Parameters:

(BaseStrategy) (strategy) – The strategy instance

Author:

@isaac-diaby

run(insight)

Run the executor.

Module contents