This strategy is quite simple, it only uses strategy uses EMA and SMA crossover. Since now is bullish season, this bot able to catch bullish momentum upon starting, and it will exit the position when the momentum ends.
Strategy Description: It buys when the EMA200 line crosses up SMA800 line. Exit when EMA200 crosses down EMA220. The exit strategy works almost like trailing stop loss.
Potential ROI Monthly (in bullish trend): 0-15%
Recommended Settings:
Pair: BTCUSDT, ETHUSDT
Time frame: 1min
Initial Capital: 100
Base Currency: Default
Order Size: 90 USDT
Pyramiding: 1 order
Commission: 0.1 %
*This bot works best at TF 1min with large market caps ie. BTC,ETH. For smaller market caps, its recommended to use TF 5mins.
//@version=4
strategy("EMA Crossover[www.capayam.com]", overlay=true)
// TF1min works best with large market cap coins ie BTC,ETH, TF5min workes better with smaller caps ie FET, ATOM
// Define input parameters
ema200_length = input(200, title="Fast EMA (default 200)")
sma800_length = input(800, title="Slow SMA (default 800)")
ema220_length = input(220, title="Slow EMA (default 220)")
// Calculate EMAs and SMAs
ema200 = ema(close, ema200_length)
sma800 = sma(close, sma800_length)
ema220 = ema(close, ema220_length)
// Plot the EMAs and SMAs on the chart
plot(ema200, color=color.blue, title="EMA 200")
plot(sma800, color=color.red, title="SMA 800")
plot(ema220, color=color.green, title="EMA 220")
// Define strategy logic
longCondition = crossover(ema200, sma800)
exitCondition = crossunder(ema200, ema220)
// Execute strategy orders
strategy.entry("Long", strategy.long, when=longCondition)
strategy.close("Long", when=exitCondition)
Comments
Post a Comment