fiki

Turtles Modified Alerts

Alerts for famous Turtle Trading Rules. Based on work from tmr0 and ossettia. It can be used with Autoview.

If you have any advice on how to further improve the script, please let me know by PM or comment below. Thanks!

Please hit on "Like" if you find this script useful so that others can find it easier. Thanks!

*** The information and script provided here are no recommendation to buy or sell. They are just an idea for educational and discussion purposes. ***
Catatan Pelepasan: Alerts for famous Turtle Trading Rules. Based on work from tmr0 and ossettia. Compatible with Autoview.

Please "Like" if you find this script useful. Thanks!

Update v2: Label positioning and naming below (buy) and above (sell) bars added to better visualize entries and exits.

*** The information and script provided here are no recommendation to buy or sell. They are just an idea for educational and discussion purposes. ***
Catatan Pelepasan: Added background color: red = short / blue = long.

Please like if you find this script useful. Thanks!
Catatan Pelepasan:
  • Updated to Pine Script v4
  • Changed shape of label
  • Changed label colors to better distinguish between fast and long signals

Please like if you find this script useful. Thanks!
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan

Komen

Here is my Autoview code for XBTUSD on BitMEX for the ones interested. Please adapt accordingly to your needs.

a=enter-fast-L d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=long l=5 q=100 t=limit ro=0

a=enter-slow-L d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=long l=5 q=100 t=limit ro=0

a=exit-fast-S d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=long l=5 q=100 t=limit ro=1

a=exit-slow-S d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=long l=5 q=100 t=limit ro=1

a=exit-fast-L d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=short l=5 q=100 t=limit ro=1

a=exit-slow-L d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=short l=5 q=100 t=limit ro=1

a=enter-fast-S d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=short l=5 q=100 t=limit ro=0

a=enter-slow-S d=1
a=bitmex-testnet e=bitmex-testnet s=XBTUSD b=short l=5 q=100 t=limit ro=0
+5 Balas
Thank you so much for this awesome script! If you don't mind my asking, may I know how to backtest this script for a particular chart? I copied the script and pasted in the pine editor, then, added to a chart. However, there is nothing in the "strategy tester" tab. It just says something like "in order to test your strategy, apply your strategy to the chart, and select the stock symbol and period you want to test with". What I want to do here is that by changing the parameters in the script and simulating the profits in the strategy tester tab, I would like to find the best parameters (i.e. intervals) for the script for myself. Thanks a lot for your time in advance.
Balas
eskt eskt
sorry, never mind. I changed the declaration from study to strategy, and added the "original code from strategy" and worked. By the way, do you know how to change the unit of stock? It is currently "1" unit, but I would like to change it to 100 units.
Balas
eskt eskt
I found the place to change the unit. Sorry, again, but please never mind. Thanks.
Balas
thanks for putting in the time and responding to everything detailed. What time frame in ur experience has this worked out best for (in any derivatives exchange, bitmex, binance, etc) and what other pairs?
Balas
Hello there
I have 2 questions:

1. What does these lines means in the script...
prevL1 = 0
prevL1 := exitL1_filt ? 1 : enterL1_filt ? -1 : prevL1
enterL1_final = enterL1_filt and prevL1 == 1
exitL1_final = exitL1_filt and prevL1 == -1
Can you explain that please?
What does do " := " in Pine script. I'm newbie in Pine and this operator isn't working in Pine v.4 apparently. Am I right?

2.Does this script use N (Same ATR) for pyramiding and adding more units as explained in the original idea?

Thanks a lot for your time
Balas
fiki MomoJumbo
@MomoJumbo, Hi MomoJumbo. Here are my answers:

1. There are some drawing issues when you convert from a strategy to a study with alerts. So you need to handle these issues with this code. Check out e.g. https://www.youtube.com/watch?v=KcBce_06OP0

2. No, there is no pyramiding used. Basically, the script above is just a conversion of the strategy into a study with alerts so you can use it with e.g. ProfitView.

Hope that helped.
Balas
@fiki,

Thanks a lot
Can I ask some more help?

1. How can we have plotted the price (for example price of "enterL1_final") Instead of text (for example "OFL") beside the shape on chart?

2. Is there any way to plot shape aside the bar at the exact price Instead of below or above the bar?

3. I wanna add pyramiding & stop to script but couldn't say to the Compiler to get last entry price or last pyramiding price.
Is there any chance to get an specified price and use it for next calculations?

Thank you so much for your time.
Wish you luck
Balas
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Kawan-kawan yang dirujuk Coin Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar