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.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

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"
+4 Reply
Brewtanius Coinrule
@Coinrule, I’m new to your system and wanted to know if you provide the for actions, and strategy. Like above?
+4 Reply
How do I add RSI in this?
Reply