OPEN-SOURCE SCRIPT

Aroon Oscillator Strategy

已更新
This is simple strategy based on Aroon Oscillator. I have found that using length 144 or 169 on hourly chart shows excellent results.

Tested on SPY , QQQ and AAPL. Especially when you look at AAPL results , it has 60% profitable in recent trades. ( Dont assume this will be same for other stocks or ETFs)


Aroon Oscillator setting : 169 ( 169 is square root of 13 ... you can also use fib level 144 , which is square root of 12 )


BUY
When Aroon Oscillator crosses above zero line

Add
if Long position is already opened, and current close is less than BUY price and RSI 13 crossing above 30 line

Exit
when Aroon Oscialltor crosses below zero line

Stop Loss
default stop loss has been set to 5%


Note: I have not plotted RSI to the chart. Please include RSI 13 to see how position gets added ... Also add ema 169 to see how the price is aligned with the Aroon Oscillator


Warning
For the educational purposes only
版本注释
I have added another parameter to whether exitOnAroonOscialltor cross down to zero. Since script already has logic to capture partial profits when Osc crossdown below 90, at some point all the long positions will be emptied out.

This will also allow us to stay in the traded by sticking to our stoploss 5% , rather than just exiting on a whipsaw signal.
版本注释

1. Stop Loss calculation fixed
2. Entry quantity and Addition quantity calculation has been changed
3. bar color changed to purple when Aroon Oscillator is above 90
4. if Aroon Osc cross down zero setting is selected --- stop loss value is not considered , it simply exits on oscillator crossing below zero line
aroon_oscillatoreemanimohaneeMoving AveragesOscillatorsRelative Strength Index (RSI)Trend Analysistrendfollowing

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明