Telegram-Crypto-Alerts icon indicating copy to clipboard operation
Telegram-Crypto-Alerts copied to clipboard

Alarm Trigger = Only Once/Every Time

Open abtahizadeh opened this issue 2 years ago • 9 comments

@hschickdevs Thanks for this fantastic bot

Alarm is trigger once, It will be deleted after notification Please add an option to make an alarm always used. (every time) For example, when the price of Bitcoin reach 37500 to warn every time Until the alarm is removed. (of course, to prevent spam, you can set a minute limit, if the price is still 37500 every x minutes) can set an expiration date like TradingView for Alarms.

alarm

abtahizadeh avatar Nov 22 '23 04:11 abtahizadeh

Hi @abtahizadeh! Thank you so much for the contribution and suggestion. I will definitely take this into account.

I love this idea. Would you rather this be an optional parameter when creating each alert, or a global parameter that you can set in the config which applies to all alerts?

hschickdevs avatar Nov 22 '23 04:11 hschickdevs

Hello @hschickdevs

I think both options are effective. For example the command line be added after which any added alarm will be permanent Of course, your opinion is more important for the command text

/alarms expire 0 (never) /alarms expire 2d (2days) /alarms expire 1w (1week)

or

/newalert BTC/USDT PRICE ABOVE 35700 NoExpire

abtahizadeh avatar Nov 22 '23 04:11 abtahizadeh

This is great advice @abtahizadeh !

I will update the issue once this is implemented. Stay tuned!

hschickdevs avatar Nov 22 '23 04:11 hschickdevs

Thank you @hschickdevs I think this issue should be taken into consideration for example, when the price is in that range Alert every 5 , 15 minutes or 1 hour (Warning that the price is still 37500) Because the robot may give a repeated warning whenever that price is reached

abtahizadeh avatar Nov 22 '23 04:11 abtahizadeh

@abtahizadeh yea, we can do it this way! There are many ways to handle this issue

hschickdevs avatar Nov 22 '23 04:11 hschickdevs

Hello @hschickdevs Not specified when you can add this feature?

abtahizadeh avatar Jun 30 '24 06:06 abtahizadeh

Hello again @abtahizadeh, I apologize as I've been very busy with my full-time work. I will try to add this feature this coming weekend (July 5-7). Thank you for your patience.

hschickdevs avatar Jun 30 '24 19:06 hschickdevs

Hello again @hschickdevs,Thank you I hope you find an opportunity to add this feature.

abtahizadeh avatar Jul 13 '24 09:07 abtahizadeh

Writing this here for notes, this issue has been raised by another user of the bot. Here are their ideas:

for indicator alerts:

  • use the provided interval to validate the alert trigger on every new candle (corresponding interval)
  • for example: RSI alert for 4h interval if above 70 -> alert is fired every 4h as as long as the RSI stays over 70

for simple price checks (percentage):

  • if set in percentage change (24h), validate alert trigger every 24h for percentage change in relation to the initial set price (first trigger) / last trigger price (further alert trigger)

for simple price checks (absolut): -i guess only one shot alert makes sense here

you could also define a new parameter on alert creation like "trigger" to be able to set to:

  • single (oneshot)
  • minute (every minute)
  • candle / interval (every defined interval length)

hschickdevs avatar Aug 15 '24 15:08 hschickdevs

Hello there @abtahizadeh, I hope that you're still around. I ended up adding this feature on the heels of multiple user requests, and finally getting some time to maintain the repository to make sure that it doesn't go stale.

If you are still around, please see the commit and changelog here: https://github.com/hschickdevs/Telegram-Crypto-Alerts/commit/398b13fcb9ceb71329e96035738cbe3c03011202

Hope you enjoy!

hschickdevs avatar Feb 16 '25 06:02 hschickdevs