w1ld3r / crypto-signal

The #1 Automated Technical Analysis (TA) & Algo. Trading tool for Coinbase, Bittrex, Binance, and more! (Track over 500+ coins)
http://cryptosignal.dev
MIT License
76 stars 37 forks source link

Problem with ichimoku #53

Closed mosa789 closed 2 years ago

mosa789 commented 2 years ago

Hello There's a problem when I change alert_frequency in Ichimoku indicator to once then I don't receive any signal at the moment of crossing Senko a and b. What's the problem?

Here is my config

settings:
    log_level: INFO
    update_interval: 60
    start_worker_interval: 1
    market_data_chunk_size: 1

exchanges:
    binance:
        required:
            enabled: true
        all_pairs:
            - USDT
        future: true            
        exclude:
            - USDC
            - PAX
            - BUSD
            - TUSD
            - EUR
            - SUSD
            - GBP
            - UTK

indicators:
    bbp:
        - enabled: false
    rsi:
        - enabled: false    
    ichimoku:
        - enabled: true
          alert_enabled: true
          alert_frequency: once
          signal:
            - leading_span_a
            - leading_span_b
          hot: true
          cold: true
          candle_period: 5m
    iiv:
        - enabled: false
    stoch_rsi:
        - enabled: false
    momentum:
        - enabled: false
    macd:
        - enabled: false
    obv:
        - enabled: false
    mfi:
        - enabled: false
informants:
    lrsi:
        - enabled: false
    vwap:
        - enabled: false
    sma:
        - enabled: false
    ema:
        - enabled: false
    bollinger_bands:
        - enabled: false
    ohlcv:
        - enabled: true
          signal:
            - high
            - low
            - close
            - open
            - volume
          candle_period: 5m
          period_count: 100
        - enabled: true
          signal:
            - high
            - low
            - close
            - open
            - volume
          candle_period: 1h
          period_count: 20  

conditionals:
  - label: "BUY Signal5"
    hot:
      - ichimoku: 0
  - label: "Sell Signal5"
    cold:
      - ichimoku: 0
Badn1nja commented 2 years ago

I think your trying to overcomplicate this by using Conditionals; Try the below config; https://pastebin.com/W3dZgzbB

This will signaled when PA closes above span a/span b; (reversed for hot regarding the below) span_cold = ichimoku_values['leading_span_a'][index] < ichimoku_values['leading_span_b'][index] close_cold = dataframe['close'][index] < ichimoku_values['leading_span_a'][index] if cold_thresh: ichimoku_values.at[ichimoku_values.index[index], 'is_cold'] = span_cold and close_cold

If you want just SPAN_A/SPAN_B Crosses then you want to look at using the custom ichimoku strategy to remove the PA sanity check, this will increase fakeouts though as it will signal when the PA isn't confirmed in anyway