OPEN-SOURCE SCRIPT

Aroon Oscillator Strategy

Telah dikemas kini
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
Nota Keluaran
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.
Nota Keluaran

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

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian