OPEN-SOURCE SCRIPT

MA Win Rate

244
Moving Average Cross Win Rate

This simple yet useful script calculates the percentage of times a moving average crossover successfully predicts price movement.

Win Conditions:

1] A Golden Cross (fast MA crossing above slow MA) where the price moves up afterward.
2] A Death Cross (fast MA crossing below slow MA) where the price moves down afterward.

In this script, I have used a Simple Moving Average (SMA) for illustration.

You can modify the code to apply any type of moving average and test its accuracy.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน