lamBOTghini-ALERTador & SL/TP V3

I publish the code again in case someone is interested in learning. I am not an expert, I learned from others who published their scripts and for this reason I do the same.
If someone tries to sell you a script it is because they do not make money with it in trading and they need to sell it to earn something.

It is a simple combination algorithm of 3 EMA with stop loss and Take profit and with alerts.


¡Mucho ánimo a los Venezolanos!
¡Saludos desde España!
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 las Normas internas. Puede marcarlo como favorito para usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


Thanks for the great script. Works far better than a lot of others that claim Pro. Please people, don't just take this, recode or rename to sell.
anyone testing it yet for autoview ?
Hi Xavi,

Very nice script. One question:

Could you tell me how I can get out of the operation, instead of defining a percentage profit take, using the SAR?

Thank you very much.
XaviZ neodani
@neodani, you're welcome Dani

The easiest way I think could be this... you can add this in the initial part of the script:

// SAR

Sst = input (0.02, "SAR start")
Sinc = input (0.02, "SAR inc")
Smax = input (0.2, "SAR max")
pSAR = sar (Sst, Sinc, Smax)
plot (pSAR, style = cross)

And then a second condition in ShortCond:

... or (pSAR > open and rising (pSAR, 2))

And I would change the SAR settings to 0.04,0.04,0.2 or better
neodani XaviZ

Thank you, it works!

I miss marking the exact crossing in some way when it comes in and when it comes out of the operation. Is it possible in any way?

On the other hand, some reason why you chose hlc3 instead of close? I already know that hlc3 means the mean of O, H and C.


@XaviZ, your script is awesome especially when you publish code for everyone.
I have a question. Why do you use source=hlc3 instead of close?
Thanks you
XaviZ linhvn123
@linhvn123, YW... With hlc3 Less real-time price fluctuation than close