---
# System prepended metadata

title: SuperTrend strategy
tags: [Pine Script]

---

---
tags: Pine Script
---
[TOC]
# SuperTrend strategy
1. 
![](https://i.imgur.com/QvPuKLM.png)

![](https://i.imgur.com/j5puBop.png)

2. 
![](https://i.imgur.com/YXbJVlS.png)

![](https://i.imgur.com/gkKEcEM.png)

3. 
![](https://i.imgur.com/aI2v2cC.png)
![](https://i.imgur.com/UUY9nHK.png)

## 進場機制
QQE白線收在紅線上方 ＝> long
QQE白線收在藍線上方 ＝> short
price > ema200  => long
price < ema200 => short

1. ST出現buy訊號 and k棒收在ema200之上
2. QQE直方圖需要在零軸以下位階(紅、灰、無色皆可)
![](https://i.imgur.com/QUh5L9P.png)
3. 當QQE白色信號線在零軸以下 並小於任和一個直方圖
 ![](https://i.imgur.com/cITQn63.png)
4. 滿足三條件後的關鍵K棒一定要收漲，否則要等QQE重新換過顏色(藍轉紅...)
5. 停損設在關鍵K棒 ST之上
6. 停利 :當QQE白色信號在藍4並大於某個藍色直方圖
![](https://i.imgur.com/T3trm3L.png)
