Giter Site home page Giter Site logo

Comments (26)

w1ld3r avatar w1ld3r commented on August 27, 2024 1

I don't think I will have time, the next few month, to take a look at this issue ...
Happy that everything is' working for you now !

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024 1

You can use my fork, it's fully working with new changes of the main branch.

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

It's better if you use this config file (the one in the documentation).

The one you've found was just for dev/debug purpose an so, it's not working with the current release.

settings:
  log_level: INFO
  update_interval: 120
  start_worker_interval: 2
  market_data_chunk_size: 1
  timezone: Europe/Paris

exchanges:
  kraken:
    required:
      enabled: true
    all_pairs:
      - USD

indicators:
  rsi:
    - enabled: true
      alert_enabled: true
      alert_frequency: always
      signal:
        - rsi
      hot: 30
      cold: 70
      candle_period: 1h
      period_count: 14
    - enabled: true
      alert_enabled: true
      alert_frequency: always
      signal:
        - rsi
      hot: 40
      cold: 60
      candle_period: 1d
      period_count: 14
  bollinger:
    - enabled: true
      candle_period: 1h
      alert_enabled: true
      alert_frequency: always
      period_count: 25
      std_dev: 2.5
      signal:
        - low_band
        - close
        - up_band
      mute_cold: false
    - enabled: true
      candle_period: 1d
      alert_enabled: true
      alert_frequency: always
      period_count: 25
      std_dev: 2.5
      signal:
        - low_band
        - close
        - up_band
      mute_cold: false
  aroon_oscillator:
    - enabled: true
      alert_enabled: true
      alert_frequency: always
      sma_vol_period: 50
      period_count: 14
      signal:
        - aroon
      candle_period: 1h

conditionals:
  - label: "Signal to buy"
    hot:
      - rsi: 0
      - rsi: 1
    cold:
      - bollinger: 0
  - label: "Signal to buy"
    hot:
      - rsi: 1
  - label: "Signal to sell"
    cold:
      - rsi: 1
      - rsi: 0
    hot:
      - aroon_oscillator: 0

notifiers:
    telegram:
        required:
            token: X
            chat_id: Y
        optional:
            parse_mode: html
            template: "[{{market}}] {{indicator}} {{status}} {{values}} {{ '\n' -}}"

Just replace the X and Y with your token and chat id.

You can also modify the timezone if you don't live in Paris.

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

It's because you have to modify app/defaults.yml and set alert_enabled: true to alert_enabled: false or in your app/config.yml
define all indicators in app/defaults.yml and set them to enabled: false if you don't need infos on them or alert_enabled: false if you don't want to receive notifications.

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

To simplify ;) If I set alert_enabled: false in my config for each individual indicator (rsi and mfi for example) I will ONLY get the conditional notifs ?

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

No you have to set alert_enabled to false only for indicators you don't want to receive notifications.
If you want, when I come back home, I can give you an example of the app/defaults.yml to use with the config file given above.

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

ok thanks. I've tested again, and still not getting the conditional labeled notif ;)
In my config as you can see I've set everything else to false, so notif are fast ! This si great.
But still not succeeding to make it work for conditionals !
Does it mean I have to setup things in defaults ? rather than my personal config ???
ok See you later then, thanks

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Try this config.yml:

settings:
  log_level: INFO
  update_interval: 900
  start_worker_interval: 2
  market_data_chunk_size: 1
  timezone: Europe/Paris

exchanges:
  kraken:
    required:
      enabled: true
    all_pairs:
      - EUR
    exclude:
      - XBTEUR.d
      - ETHEUR.d
      - USDC
      - USDT
      - MLN

indicators:
  rsi:
    - enabled: true
      alert_enabled: true
      alert_frequency: multi
      signal:
        - rsi
      hot: 30
      cold: 70
      candle_period: 1h
      period_count: 14
    - enabled: true
      alert_enabled: true
      alert_frequency: multi
      signal:
        - rsi
      hot: 40
      cold: 60
      candle_period: 1d
      period_count: 14
    - enabled: true
      alert_enabled: true
      alert_frequency: multi
      signal:
        - rsi
      hot: 30
      cold: 70
      candle_period: 1d
      period_count: 14
  momentum:
    - enabled: false
      alert_enabled: false
  mfi:
    - enabled: false
      alert_enabled: false
  obv:
    - enabled: false
      alert_enabled: false
  stoch_rsi:
    - enabled: false
      alert_enabled: false
  macd_cross:
    - enabled: true
      candle_period: 1d
      alert_enabled: true
      alert_frequency: always
      signal:
        - macd
        - signal
      mute_cold: false
  ichimoku:
    - enabled: false
      alert_enabled: false
  iiv:
    - enabled: false
      alert_enabled: false
  ma_crossover:
    - enabled: true
      candle_period: 1d
      alert_enabled: true
      alert_frequency: once
      exponential: true
      ma_fast: 50
      ma_slow: 120
      signal:
        - open
        - close
  bollinger:
    - enabled: true
      candle_period: 1h
      alert_enabled: true
      alert_frequency: always
      period_count: 25
      std_dev: 2.5
      signal:
        - low_band
        - close
        - up_band
      mute_cold: false
    - enabled: true
      candle_period: 1d
      alert_enabled: true
      alert_frequency: always
      period_count: 25
      std_dev: 2.5
      signal:
        - low_band
        - close
        - up_band
      mute_cold: false
  aroon_oscillator:
    - enabled: true
      alert_enabled: true
      alert_frequency: always
      sma_vol_period: 50
      period_count: 14
      signal:
        - aroon
      candle_period: 1h

informants:
    lrsi:
        - enabled: false
    vwap:
        - enabled: false
    sma:
        - enabled: false
    ema:
        - enabled: false
          alert_enabled: false
    bollinger_bands:
        - enabled: false
    ohlcv:
        - enabled: false

conditionals:
  - label: "Buy short"
    hot:
      - rsi: 0
      - rsi: 1
      - bollinger: 0
    cold:
      - aroon_oscillator: 0

notifiers:
    telegram:
        required:
            token: X
            chat_id: Y
        optional:
            parse_mode: html
            template: "[{{market}}] {{indicator}} {{status}} {{values}} {{ '\n' -}}"

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

Just tried. I'm getting all the notifications !

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Only conditional notifications ?

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

The only things that can cause this is that you are not using my fork

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

I've followed your installation steps.
Then I did : docker build -t dev/crypto-signals:latest .
docker run --rm -ti -v $PWD/app:/app dev/crypto-signals:latest

I will redo the : git checkout develop
to test it

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

git checkout develop
M Dockerfile
M LICENSE
M Makefile
M README.md
M default-config.yml
M docker-compose.dev.yml
M docker-compose.yml
Already on 'develop'
Your branch is up-to-date with 'origin/develop'.

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Here is the steps I'm doing to reproduce your issue:

git clone https://github.com/w1ld3r/crypto-signal.git
cd crypto-signal/
touch app/config.yml && echo "settings:
  log_level: INFO
  update_interval: 900
  start_worker_interval: 2
  market_data_chunk_size: 1
  timezone: Europe/Paris

exchanges:
  kraken:
    required:
      enabled: true
    all_pairs:
      - EUR
    exclude:
      - XBTEUR.d
      - ETHEUR.d
      - USDC
      - USDT
      - MLN

indicators:
  rsi:
    - enabled: true
      alert_enabled: true
      alert_frequency: multi
      signal:
        - rsi
      hot: 100
      cold: 1
      candle_period: 1h
      period_count: 14
  momentum:
    - enabled: false
      alert_enabled: false
  mfi:
    - enabled: false
      alert_enabled: false
  obv:
    - enabled: false
      alert_enabled: false
  stoch_rsi:
    - enabled: false
      alert_enabled: false
  macd_cross:
    - enabled: false
      alert_enabled: false
  ichimoku:
    - enabled: false
      alert_enabled: false
  iiv:
    - enabled: false
      alert_enabled: false
  ma_crossover:
    - enabled: false
      alert_enabled: false
  bollinger:
    - enabled: false
      alert_enabled: false
  aroon_oscillator:
    - enabled: false
      alert_enabled: false

informants:
    lrsi:
        - enabled: false
    vwap:
        - enabled: false
    sma:
        - enabled: false
    ema:
        - enabled: false
          alert_enabled: false
    bollinger_bands:
        - enabled: false
    ohlcv:
        - enabled: false

conditionals:
  - label: test 1
    hot:
      - rsi: 0
  - label: test 2
    cold:
      - rsi: 0

notifiers:
    telegram:
        required:
            token: X
            chat_id: Y
        optional:
            parse_mode: html
            template: \"[{{market}}] {{indicator}} {{status}} {{values}} {{ '\n' -}}\"" > app/config.yml
docker build -t dev/crypto-signals:latest .
docker run --rm -ti -v $PWD/app:/app dev/crypto-signals:latest

And every things is working fine ...

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Yes but it's the README of the main project and I haven't touch it

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

LOL .... Ok so this is the problem LOL
I'm sorry but I followed the steps in YOUR repo ;)
I did not think about this... very sorry !!
So I do not need to git the main one, I just git yours right ?

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Yes. I've modify the README to not mislead.

from crypto-signal.

bluetyphoon77 avatar bluetyphoon77 commented on August 27, 2024

Great ! It will help beginners like me ;)
By the way you speak french ? are you french ? ;)
PS: I still need to find how to get accurat results with stochrsi if you don't mind ....

from crypto-signal.

zooz124 avatar zooz124 commented on August 27, 2024

Hello, i supose 1 condition (label) is the max right? i tried 2 labels but only one works, the last one always.

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Hello @zooz124, ou can have as many condition you want. The label will just replace the {{status}} value for a notification.
I you only get alert for your second condition it's because the first one is never triggered. Don't hesitate to share your config.yml file for adjustement ;)

from crypto-signal.

zooz124 avatar zooz124 commented on August 27, 2024

Hi thanks for responding quickly, fist of all i changed some files with the help of this:
CryptoSignal@069cc31

That was necessary or your current git is fully prepared for conditionals? thank you very much.

from crypto-signal.

zooz124 avatar zooz124 commented on August 27, 2024

@w1ld3r Thank you very much! It worked finally, awesome job man.

Do you have in mind to implement divergences (macd,rsi,price) in the future, I think it would be very helpful.

from crypto-signal.

w1ld3r avatar w1ld3r commented on August 27, 2024

Glad to know you like it. It can be great yes. If you like create a Feature request issue.

from crypto-signal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.