tweakerID

Modulo Logic + EMA Strat

To understand this strategy first we need to look into the Modulo (%) operator. The modulo returns the remainder numerator
of a division's quotient (the result). If we do 5 / 3, we get 1 and 2/3 as a result, where the remainder is 2 (two thirds, in this case). This can be
used for many things, for example to determine when a number divides evenly into another number. If we divide 3/3, our result is 1,
with no remainder numerator, hence our modulo result is 0. In this strategy, we compare a given number (divisor, user defined) with the
the closing price of every candle (dividend, user defined) to determine if the result between their division is an even number.
If the answer is true, we have an entry signal. If this signal occurs below the EMA (length is defined by the user) we go short and
viceversa for longs. This logic can be reversed. In this case, the modulo works as a random-like filter for a moving average strategy
that usually struggles when the market is ranging and crosses are too often.
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.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?