johannduplessis

Peterbolic SAR Strategy

This is a strategy version of the Peterbolic SAR:
ملاحظات الأخبار: Updated strategy with latest bug fixes from the original script:
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة

التعليقات

How can we make this Multi time frame?
رد
Good work and very nice coding of Pine V4.
Looks very great. Regard,Author of LBLS indicator (https://www.tradingview.com/u/MarxBabu/#published-scripts)
رد
Thx for your hard work and sharing it!

I´m using the Peterbolic SAR from caseybowman for about a week very intensly. Now I saw that you made the strategy out of it. When I look at the trades in the chart, then the long/short position were opened the next candle after the trigger candle. I´m not sure if this is the right way, because as caseybowman described "... Note that the trigger does not require a close above or below the setup, those levels only need to be penetrated intra candle....". In my opinion the trade should be opened right after hitting the high/low of the setup candle and not the candle after the trigger candle.

I think it would increase the profit a lot. But maybe i am totally wrong...

Maybe you can take a look at it.
رد
@florian78, Thanks! Yes the default way Tradingview works is to open the trade on the candle after the signal, but when I trade it I also open as soon as the previous high/low has been broken. I agree it should increase profitability. I'll investigate and see if I can change the default behaviour.
رد
How can I set the indicator to show 4 hour candles?
رد
Love your Strategy Tester for this indicator. If you could add a way to pick a start date, or date range, this would help a lot.

Thank you for your hard work!
رد
johannduplessis DainBolling
@DainBolling, Hi Dain, thanks! Unfortunately we are at the mercy of TradingView's backtester which means we can't specify a date range.
+1 رد
Nakitxu johannduplessis
@johannduplessis, Yes, you can, with something like this:

// === INPUT BACKTEST RANGE ===
FromMonth = input(defval = 10, title = "From Month", minval = 1, maxval = 12)
FromDay = input(defval = 1, title = "From Day", minval = 1, maxval = 31)
FromYear = input(defval = 2019, title = "From Year", minval = 2017)
ToMonth = input(defval = 1, title = "To Month", minval = 1, maxval = 12)
ToDay = input(defval = 1, title = "To Day", minval = 1, maxval = 31)
ToYear = input(defval = 9999, title = "To Year", minval = 2017)

// === FUNCTION EXAMPLE ===
start = timestamp(FromYear, FromMonth, FromDay, 00, 00) // backtest start window
finish = timestamp(ToYear, ToMonth, ToDay, 23, 59) // backtest finish window
window() => time >= start and time <= finish ? true : false // create function "within window of time"

Simply add "and window()" in the entry or your buy and shell orders, like this:

if (TC and up and window())
strategy.entry("PBSARLE", strategy.long, comment="PBSARLE")

if (TC and not up and window())
strategy.entry("PBSARSE", strategy.short, comment="PBSARSE")
+1 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير الأصدقاء المُحالون العملات الافتراضية تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج