Taystee1's Posts
Nairaland Forum › Taystee1's Profile › Taystee1's Posts
1 2 (of 2 pages)
iLegendd:25x leverage |
iLegendd:Please, how do we invest in these precious metals (gold and silver), are we to buy stocks from companies that deal with these metals? |
Taystee1:Places with emoji is bracket close. |
This pine script will be useful for you forex traders, how to use; - Open a chart of your choice. -Below the chart, go to pine editor copy the code, click "Add to Chart" to apply the strategy to your chart. This can only be used on trading view, RSI divergence+EMA Crossover+MACD Strategy trade signal. // This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Taystee //@version=5 indicator("RSI Divergence + EMA Crossover + MACD Strategy", overlay=true) // --- Inputs --- stop_loss_pct = input.float(1.5, title="Stop Loss %" // Stop loss percentagetake_profit_pct = input.float(3.0, title="Take Profit %" // Take profit percentagetrail_stop_pct = input.float(2.0, title="Trailing Stop %" // Trailing stop percentage// Additional Inputs rsi_length = input.int(14, title="RSI Length" ![]() rsi_overbought = input.int(70, title="RSI Overbought Level" ![]() rsi_oversold = input.int(30, title="RSI Oversold Level" ![]() ema_fast_length = input.int(12, title="Fast EMA Length" ![]() ema_slow_length = input.int(26, title="Slow EMA Length" ![]() macd_fast_length = input.int(12, title="MACD Fast Length" ![]() macd_slow_length = input.int(26, title="MACD Slow Length" ![]() macd_signal_length = input.int(9, title="MACD Signal Length" ![]() // --- RSI Calculation --- rsi = ta.rsi(close, rsi_length) // --- EMA Calculation --- ema_fast = ta.ema(close, ema_fast_length) ema_slow = ta.ema(close, ema_slow_length) ema_crossover_up = ta.crossover(ema_fast, ema_slow) ema_crossover_down = ta.crossunder(ema_fast, ema_slow) // --- MACD Calculation --- [macd_line, signal_line, _] = ta.macd(close, macd_fast_length, macd_slow_length, macd_signal_length) macd_histogram = macd_line - signal_line macd_buy_signal = ta.crossover(macd_line, signal_line) macd_sell_signal = ta.crossunder(macd_line, signal_line) // --- Buy/Sell Signals --- buy_signal = ema_crossover_up or macd_buy_signal sell_signal = ema_crossover_down or macd_sell_signal // --- Plotting Buy/Sell on Chart --- plotshape(buy_signal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, text="BUY" ![]() plotshape(sell_signal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small, text="SELL" ![]()
|
tosinhtml:😂 |
1 2 (of 2 pages)
// Stop loss percentage