Coinrule

Moving Average Scalper

The main goal of a scalping strategy is to open and close trades frequently, profiting from small gains and limiting the downside risk.

This strategy, on average, manages to close trades within one day, meaning that you are not exposed to the risk of holding that coin for long. In this way, market conditions affect much less the overall performance of the trading system.

The setup of this strategy uses four moving averages combined with an unconventional approach. On one side, the strategy aims to catch assets trading in a downtrend but on the verge of a possible reversal. Then, the goal of the trading strategy is not to ride the eventual uptrend but to close the trade with minimal profit so that it can scan the market for a new opportunity again.

ENTRY

The buy order is placed on assets that most likely are about to have at least a short-term "relief rally." To capture this setup, the strategy buys when

the MA9 crosses above the MA50
the MA50 is lower than the MA100
the MA100 is lower than the MA200

EXIT

The trading system closes the trade when the MA9 crosses above the MA200, which could be the first major resistance the asset faces before developing a more sustained uptrend.

As a reminder, the goal of the strategy is not to catch the whole upside of the asset but has a more conservative approach. This allows keeping the risk of the strategy low.

Pro tip: The 15-min time frame has proven to return the best results on average. The strategy can work well also in the 5-min time frame.


The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
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?

Comentarios

Stop_loss= ((input (2))/100)
Take_profit= ((input (8))/100)

longStopPrice = strategy.position_avg_price * (1 - Stop_loss)
longTakeProfit = strategy.position_avg_price * (1 + Take_profit)

Is left in the script but not active in the strategy.

You can add, in case, a stop loss or take profit with fixed percentage by adding in strategy.close( )

"close < longStopPrice or close > longTakeProfit"
+3 Responder
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Sobre Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter