tradingstrategy-ai / trade-executor

A Python framework for managing positions and trades in DeFi
https://tradingstrategy.ai
Other
101 stars 28 forks source link

update trading strategy #960

Closed AlexTheLion123 closed 3 months ago

AlexTheLion123 commented 3 months ago

Example

indicators.add(
        "ema",
        pandas_ta.ema,
        {"length": 10},
        IndicatorSource.close_price,
    )

    indicators.add(
        "ema_4h",
        pandas_ta.ema,
        {"length": 10},
        IndicatorSource.close_price,
        time_bucket=TimeBucket.h4,
    )

image