algozinitech

PEERTRADING WITH MOVING AVEREAGE

Peer Stocks Script Using TradingView
APIBridge, TradingView

You may want to optimize your entry conditions based on reference with peer stocks. For example, you may want to BUY HDFCBANK when the price of HDFC bank is in uptrend. Similarly when the price of ICICIBANK is also in uptrend. We will show you how to setup algo trading using such complex conditions, using a very simple strategy.

Peer Stocks Algo Strategy Logic
Entries will be taken only when Moving Average Crossover happens. Even though this tutorial uses Moving Average, you can use other indicators like SuperTrend, VWAP, RSI etc.

We will have a buy condition in current stock if candle crosses above moving average and the peer stock is bullish (peer stock is trading above moving average)

We will have a sell condition in current stock if candle crosses below moving average and peer stock is bearish (peer stock trading below moving average)

Explanation of logic with example: Say we have current stock as INFOSYS and peer stock as TCS. We may want to trade bullish if stock crosses above moving average. For that to we are also checking Peer TCS is in uptrend so that we filter our trades.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?