APIBridge, TradingView
Strategy Premise
A moving average can be a very effective indicator. Many traders use exponential moving averages, an effective type of moving average indicator, to trade in a variety of markets.
Strategy Logic
Long Entry Condition: When closing Price > MA 200 and closing Price < MA 5 and RSI < 10, Send LE
Long Exit Condition : closing Price > MA200 and closing Price < ma5 and high > ma5 and closing Price > ma200 and closing Price < MA 5 and RSI < 10 or closing Price > MA 200 and closing Price < MA5 and RSI < 10 or closing Price > ma200 and closing Price < MA5 and RSI < 10 or closing Price > MA200 and closing Price < MA5 and RSI < 10, Send LX
Short Entry Condition: When closing Price < ma200 and closing Price > ma5 and RSI > 90, Send SE
Short Exit Condition: closing Price < ma200 and closing Price > MA5 and low < ma5 and closing Price < MA200 and closing Price > MA 5 and RSI1 > 90 or closing Price < ma200 and closing Price > MA 5 and RSI > 90 or closing Price < MA200 and closing Price > MA5 and RSI > 90 or closing Price < ma200 and closing Price > MA5 and RSI > 90, Send SX
TradingView Settings
1st STEP: Firstly, download The Pine Script Algo here
2nd STEP: Then, open desired Chart in trading View with normal Candlestick, Select desired timeframe of the chart, Go to the pine editor section, remove the default code, paste the downloaded code, save the file and to chart
3rd STEP: Once Strategy is applied to the chart, click on settings to optimize parameters for your own trading.
Setting Up Alert
Before setting up an alert make sure that You have selected the desired script, timeframe, strategy settings, API bridge is configured and running. Finally, click in settings add alert and paste {{strategy.order.comment}} in message box.
Important: do not change any settings during live trading.
NOTE: The pinescript works both with webhook alerts (TV Pro plan) and normal popup alerts (TV free plan).
Thus, in this way, one can trade in various financial markets using exponential moving averages on the TradingView platform.
Recent Discussion