Skip to main content
Latest Crypto Fear & Greed Index


New Pine Script: Scalper 5min

This strategy is adapted from TradingView strategy Super Scalper 5min by VinayKumarKV.  

Strategy Description: Uses ATR, EMA, RSI. Specifically for 5min TF.

Potential ROI Monthly (in sideway/bullish): 5%

Recommended Settings:

Pair: BTCUSDT 

Time frame: 5mins

Initial Capital: 50

Base Currency: Default

Order Size: 11 USDT

Pyramiding: 4 orders

Commission: 0.1 %

Take Profit: High + ATR * 5

Stop Loss: Low - ATR * 2


//@version=5
strategy("Scalper5min[capayam.com]", overlay=true)
source = close
atrlen = input.int(7, "ATR Period")
mult = input.float(2, "ATR Multi", step=0.1)
smoothing = input.string(title="ATR Smoothing", defval="WMA", options=["RMA", "SMA", "EMA", "WMA"])
ma_function(source, atrlen) =>
    if smoothing == "RMA"
        ta.rma(source, atrlen)
    else
        if smoothing == "SMA"
            ta.sma(source, atrlen)
        else
            if smoothing == "EMA"
                ta.ema(source, atrlen)
            else
                ta.wma(source, atrlen)
atr_slen = ma_function(ta.tr(true), atrlen)
upper_band = atr_slen * mult + close
lower_band = close - atr_slen * mult

// Create Indicator's
ShortEMAlen = input.int(20, "Fast EMA")
LongEMAlen = input.int(100, "Slow EMA")
shortSMA = ta.ema(close, ShortEMAlen)
longSMA = ta.ema(close, LongEMAlen)
RSILen1 = input.int(33, "Fast RSI Length")
RSILen2 = input.int(200, "Slow RSI Length")
rsi1 = ta.rsi(close, RSILen1)
rsi2 = ta.rsi(close, RSILen2)
atr = ta.atr(atrlen)


//RSI Cross condition
RSILong = rsi1 > rsi2
RSIShort = rsi1 < rsi2

// Specify  conditions
longCondition = open < lower_band
shortCondition = open > upper_band
GoldenLong = ta.crossover(shortSMA,longSMA)
Goldenshort = ta.crossover(longSMA,shortSMA)

plotshape(shortCondition, title="Sell Label", text="Sell", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
plotshape(longCondition, title="Buy Label", text="Buy", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
plotshape(Goldenshort, title="Golden Sell Label", text="Golden Crossover Short", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.blue, textcolor=color.white, transp=0)
plotshape(GoldenLong, title="Golden Buy Label", text="Golden Crossover Long", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.yellow, textcolor=color.white, transp=0)
// Execute trade if condition is True
if (longCondition)
    stopLoss = low - atr * 2
    takeProfit = high + atr * 5
    strategy.entry("long", strategy.long, when = RSILong)


if (shortCondition)
    stopLoss = high + atr * 2
    takeProfit = low - atr * 5
    strategy.entry("short", strategy.short, when = RSIShort)


// Plot ATR bands to chart

////ATR Up/Low Bands

plot(upper_band)
plot(lower_band)

// Plot Moving Averages
plot(shortSMA, color = color.red)
plot(longSMA, color = color.yellow)

Comments

Popular posts from this blog

How to use trading bots?

 This video here explains how to install trading bot using TradingView and Trader Adaptor TraderAdapter link:  https://tradeadapter.com/ More detailed explanation and walk through updated on this page here.. How to start your own trading bots

Reserve Audit vs Exchange Reserves Data

If  you look into this top crypto exchanger list, there are some with Reserve Audit and some with the latter. Some with none at all. The list here by CoinMarketCap   https://coinmarketcap.com/rankings/exchanges/   What is Reserve Audit? A reserve audit is a process that involves verifying and validating the financial reserves held by a cryptocurrency exchange. It is conducted to ensure that the exchange has sufficient funds to cover its customers' deposits and withdrawals. The audit typically involves independent third-party firms or auditors who examine the exchange's bank accounts and cryptocurrency wallets to confirm the existence and accuracy of the declared reserves. The purpose of a reserve audit is to enhance transparency and instill confidence in the exchange's operations. What is Exchange Reserves Data? Exchange reserve data refers to the information or data related to the reserves held by a cryptocurrency exchange. This data can include details about the types and

Comparison between 2 Smart Rebalance Bot

Smart rebalance is one of the kinda new features offered by many Centralized exchanger (CEX). And it has come to my liking during bull run u can cover many tokens than just run 1 single token with 1 bot. Because most tokens/coins price do not move parallel to each other, it will automatically buy at low, sell at high each coins in order to rebalance the proportion that you have preset.  But this strategy works best during bullrun. During bearish period, when all coins go down, u will still see decline of the portfolio worth. Usually i use this bot for coins that i have high convictions on them i would HODL them for long.  Here, I just wanna share smart rebalance bots from 2 different CEX. They are from Kucoin and BitGet. The following are the snapshots of the running bot after 60days. BitGet Smart Rebalance Bot Kucoin Smart Rebalance Bot I started out with Bitget first, then after several hours, i decided to make comparison with Kucoin. I ran them for two months.  I chose BTC, ETH, LIN