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 de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?