OPEN-SOURCE SCRIPT
Moving Average Gradient

The 'Moving Average Gradient' (MAG) is basically a measure of the gradient of a moving average.
Firstly a moving average (SMA or EMA) is overlayed onto the chart.
Then the gradient of this moving average is calculated and plotted below.
An optional smoothing average is also applied to the gradient.
This MAG is my own invention and is entirely new, as far as I know.
I've found it to be useful for divergences.
It can also be quite similar to the Stochastic, and works well taking a BUY signal when the gradient crosses over its moving average, and SELL when it crosses under.
In fact I backtested both this MAG, and the Stochastic as a comparison, within a strategy using the above signals, and the MAG delivered better results.
The strategy on BTCUSD 15 minute also included:
* 4hr MACD Signal change > 0.0034 %
* 4hr MACD Signal value < 0.5 %
...for BUY, with the opposite for SELL.
And if you think that strategy involved writing Pine Script code, then you're probably not familiar with my suite of strategy tools published on here.
I was able to very quickly and easily create and backtest that strategy without writing any code at all, using just:
* MAG or Stochastic
* MACD
* Simple BUY/SELL Indicator - to create the strategy rules using the above indicators (or I could've used my Custom BUY/SELL Indicator)
* Simple Pyramid Strategy - to run the backtesting strategy (or I could've used my Complex Single Trade Strategy)
Firstly a moving average (SMA or EMA) is overlayed onto the chart.
Then the gradient of this moving average is calculated and plotted below.
An optional smoothing average is also applied to the gradient.
This MAG is my own invention and is entirely new, as far as I know.
I've found it to be useful for divergences.
It can also be quite similar to the Stochastic, and works well taking a BUY signal when the gradient crosses over its moving average, and SELL when it crosses under.
In fact I backtested both this MAG, and the Stochastic as a comparison, within a strategy using the above signals, and the MAG delivered better results.
The strategy on BTCUSD 15 minute also included:
* 4hr MACD Signal change > 0.0034 %
* 4hr MACD Signal value < 0.5 %
...for BUY, with the opposite for SELL.
And if you think that strategy involved writing Pine Script code, then you're probably not familiar with my suite of strategy tools published on here.
I was able to very quickly and easily create and backtest that strategy without writing any code at all, using just:
* MAG or Stochastic
* MACD
* Simple BUY/SELL Indicator - to create the strategy rules using the above indicators (or I could've used my Custom BUY/SELL Indicator)
* Simple Pyramid Strategy - to run the backtesting strategy (or I could've used my Complex Single Trade Strategy)
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน