Buy and Sell signals from MACD and RSI scriptThis code includes various input parameters that users can configure, including RSI and MACD periods, RSI overbought and oversold levels, MACD timeframes and signal period, and stop loss and take profit levels.
By using the input() function, users can easily change the values of these parameters through the script's settings/inputs, without needing to modify the code itself
//@version=5
// Author: divinedestinyman
strategy("RSI-MACD Strategy with Multiple Timeframes", overlay=true)
// Define input parameters
rsi_timeframe = input(title="RSI Timeframe", type=input.resolution, defval="D")
rsi_period = input(title="RSI Period", type=input.integer, defval=14)
rsi_overbought = input(title="RSI Overbought Level", type=input.integer, defval=70)
rsi_oversold = input(title="RSI Oversold Level", type=input.integer, defval=30)
macd_timeframe = input(title="MACD Timeframe", type=input.resolution, defval="D")
macd_fast = input(title="MACD Fast Period", type=input.integer, defval=12)
macd_slow = input(title="MACD Slow Period", type=input.integer, defval=26)
macd_signal = input(title="MACD Signal Period", type=input.integer, defval=9)
stop_loss = input(title="Stop Loss", type=input.float, defval=0.02)
take_profit = input(title="Take Profit", type=input.float, defval=0.02)
// Calculate RSI and MACD values
rsi_value = request.security(syminfo.tickerid, rsi_timeframe, rsi(close, rsi_period))
= request.security(syminfo.tickerid, macd_timeframe, macd(close, macd_fast, macd_slow, macd_signal))
// Generate buy and sell signals
rsi_buy_signal = crossover(rsi_value, rsi_oversold)
rsi_sell_signal = crossunder(rsi_value, rsi_overbought)
macd_buy_signal = crossover(macd_line, macd_signal_line)
macd_sell_signal = crossunder(macd_line, macd_signal_line)
// Plot RSI and MACD lines
plot(rsi_value, color=color.yellow, title="RSI")
plot(macd_line, color=color.blue, title="MACD Line")
plot(macd_signal_line, color=color.red, title="MACD Signal Line")
// Execute long and short trades based on signals
if (rsi_buy_signal and macd_buy_signal)
strategy.entry("Buy", strategy.long)
if (rsi_sell_signal and macd_sell_signal)
strategy.entry("Sell", strategy.short)
// Close long and short trades based on signals
if (macd_sell_signal and strategy.position_size > 0)
strategy.close("Buy")
if (macd_buy_signal and strategy.position_size < 0)
strategy.close("Sell")
// Set stop loss and take profit levels for long and short positions
strategy.exit("Exit Long", "Buy", stop=close * (1 - stop_loss), limit=close * (1 + take_profit))
strategy.exit("Exit Short", "Sell", stop=close * (1 + stop_loss), limit=close * (1 - take_profit))
Buysell
Cronos CRO Price Targets for this weekThis week I predict another selloff in the stock and crypto market after the CPI report on January 12.
My price targets for Bitcoin BTC are:
CRO/USDT short
Entry Range: $0.06 - 0.07
Price Target 1: $0.055
Price Target 2: $0.045
Price Target 3: $0.038
Stop Loss: $0.085
Polygon MATIC bullish ahead of the FOMC Press ConferenceI am bullish on Polygon MATIC ahead of the FOMC Press Conference.
Those are my price targets:
MATIC/USDT
Entry Range: $0.85 - 90
Take Profit 1: $0.96
Take Profit 2: $1.07
Take Profit 3: $1.19
Stop Loss: $0.77
AAVE most likely to go downAAVE, previously LEND, is one of the lending companies that are not down yet.
Most likely it will feel the contagion of FTX on others.
I have a short position in it since this post:
AAVE/USDT short
Entry Range: $57 - 59
Price Target 1: $50
Price Target 2: $37
Price Target 3: $20
Stop Loss: $69
GMX prediction for the end of the yearThis week we have the CPI report and the FED meeting. I expect the stock market to go down and cypto to fallow it.
My price target for GMX for the end of the year are the following:
GMX/USDT short
Entry Range: $55 - 60
Price Target 1: $51
Price Target 2: $45
Price Target 3: $38
Stop Loss: $69
Bitcoin SV BSV prediction for the end of the yearpreviews chart
BSV/USDT short
Entry Range: $44.50 - 46
Price Target 1: $41
Price Target 2: $38
Price Target 3: $35
Stop Loss: $51
Arweave AR Crypto Market after the ElectionsMy forecast is that we will see a bearish outcome for the crypto market after the November 8th Elections, especially for Arweave AR, which is overvalued.
AR/USDT short
Entry Range: $15 - 17
Take Profit 1: $14
Take Profit 2: $11
Take Profit 3: $8.79
Stop Loss: $18
Chiliz CHZ Crypto Market after the ElectionsMy forecast is that we will see a bearish outcome for the crypto market after the November 8th Elections, especially for Chiliz CHZ , which is overvalued.
CHZ/USDT short
Entry Range: $0.27 - 0.28
Take Profit 1: $0.24
Take Profit 2: $0.21
Take Profit 3: $0.18
Stop Loss: $0.32
Litecoin LTC Crypto Market after the ElectionsMy forecast is that we will see a bearish outcome for the crypto market after the November 8th Elections, especially for Litecoin LTC, which is overvalued.
LTC/USDT short
Entry Range: $68 - 70
Price Target 1: $65
Price Target 2: $62
Price Target 3: $56
Stop Loss: $83
Curve DAO Token CRV Crypto Market after the ElectionsMy forecast is that we will see a bearish outcome for the crypto market after the November 8th Elections, especially for Curve DAO Token CRV, which is overvalued.
CRV/USDT short
Entry Range: $0.95 - 1.05
Price Target 1: $0.86
Price Target 2: $0.78
Price Target 3: $0.72
Stop Loss: $1.21
Basic Attention Token BAT Basic Attention Token BATMy forecast is that we will see a bearish outcome for the crypto market after the November 8th Elections, especially for Basic Attention Token BAT, which is overvalued.
BAT/USDT short
Entry Range: $0.32 - 0.34
Take Profit 1: $0.30
Take Profit 2: $0.28
Take Profit 3: $0.26
Stop Loss: $0.38
THETA 3 weeks Price TargetsOn November 8th we will have the Midterm Elections in the U.S.
I think we will see a 3 week rally ahead of the elections, followed by a sharp decline afterwards.
The small bull run should start this week!
THETA/USDT
Entry Range: $0.95 - 1.05
Take Profit 1: $1.20
Take Profit 2: $1.50
Take Profit 3: $1.68
Stop Loss: $0.85
Polygon MATIC 3 Weeks Price TargetOn November 8th we will have the Midterm Elections in the U.S.
I think we will see a 3 week rally ahead of the elections, followed by a sharp decline afterwards.
The small bull run should start this week!
MATIC/USDT
Entry Range: $0.76 - 0.81
Take Profit 1: $0.87
Take Profit 2: $0.94
Take Profit 3: $1.03
Stop Loss: $0.68