livingdraculaog

LazerALERT V1

So, I'm playing around with a new fork of Laser Eyes called, "LaserALERT" . It is specifically designed to be used on Discord Severs via alert-conditions and web alerts.
The idea is to reuse the logic of Laser Eyes to create custom alerts such as for the EMA trends, StrongDown,Down,NA,UP,StrongUP.

I got enough for a working demo but its still too buggy and frankly I could use some help from other pinescript devs because I cant get working right...


Ideally it should:
1. Send a message when the market changes from bullish to bearish ...
2. When the market is bullish and there is a strongDOWN and UP trend, it should throw a message and print values displayed in the UI table (EntryPrice,ExitPrice,ExpectedProfit,ExpectedLoss,StopLoss).

Problems I'm running into:
Cant figure out how to use alertconditions with dynamic variables because tradingview requires a string to be a constant instead of a local variable...
Cant display the message via webhooks with just code. You currently have to load the indicator, ADD new alert, then set condition to LaserALERT, then set the alertcondition such as "strong up", then add the webhook URL and json in the message...

If you know how to do this better please DM me and we can setup a time to hack together over discord.

Related:

How to use the indicators on your own discord server:
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?