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 abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?