Pine Script: MA Cross

MA Cross adalah strategi teknikal mudah menggunakan persilangan moving average dan exponentially weighted moving average. Purata di ambil pada spesifik bilangan hari atau bar seperti 10 hari atau 20 hari.

Script asal MA Cross daripada pengguna Tradingview HPotter, https://www.tradingview.com/u/HPotter

Berikut adalah demo MA Cross.

Pine Script Code

One Reply to “Pine Script: MA Cross”

  1. Bro how to write the below code correctly

    signal= HLv==HLv1==HLv2==-1 ? sell : buy
    if signal == buy
    plotshape(Buy,title=”Buy”, color=green,
    style=shape.arrowup,location=location.belowbar, text=”Buy”)
    else
    plotshape(Sell,title=”Sell”, color=red, style=shape.arrowdown,text=”Sell”)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.