andrew_allen

PROSTRATS Pine Script for Swing Trading

This is a simple script for swing trading. It uses my 2 favorite indicators; the Choppiness Index as well as Fibonacci Retracement. This script is meant to run on the 4 hour time frame, in my case I use BTCUSD. It will buy when 2 conditions are met. The first is that the Choppiness Index is above 54.5 on the Daily Time frame, which means the price has potential to swing high or low. I used the security() function to ensure this takes place on the daily time frame because larger time frames tend to dominate smaller time frames in terms of overall swings. The second condition is that the price has to cross above the 1 level of the Fibonacci Retracement. This ensures that the swing is going to be an upwards swing, as opposed to a downwards one. The measure I took to ensure that the Fibonacci Retracement level of 1 is above the 0 level is to make sure that the r value of the 1 level is greater than the r value of the 0 level.
The sell condition is programmed to execute when either the price crosses above the 1.618 level(profit target) or cross below the 0 level(stop loss).
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?