profghibli

WaveTrend [LazyBear] Backtestable

Written as a custom script for WillStar44

The underlying indicator is written by @LazyBear and a visual update was previously written by @LoneStar108. I did try to reach out to LazyBear, but as you know he has not been active on TV for years... The indicator is an oscillator, tends to give lots of false positives, so additional conditions need to be used (probably simply using crosses alone is not a good idea).

Style 1 makes the backtest of Enter Long on every green cross, and Enter Short on every red cross. Style 2 however only uses green crosses when the oscillator is in oversold zone and red crosses in the overbought zone. That way, as you can see there are some amazing entries and exits. BUT at the same time, that way you can stay against the trend for a long time, there is no innate "get me out" mechanism, so if you use Style 2, a Stop-Loss is a MUST!

Additionally, from my side %-based Stop-Loss, Take Profit and Trailing Stop are added.

If you wish to use this, drop a PM.

Thanks, LazyBear and LoneStar108
__________________________________________________________________________

To opt NOT to use take profit or stop loss or trailstop just set the corresponding % to 0

Be careful of TradingView's way of calculating Trailing Stop Loss that always assumes the price inside the candle always moved in the direction that favors the trade in the backtest

More here: backtest-rookies.com/2018/06/08/...
__________________________________________________________________________

If you are an authorized user of this script and something is not working/looks wrong please PM me.
نص برمجي للمستخدمين المدعوين فقط

الوصول إلى هذا النص مقيد للمستخدمين المصرح لهم من قبل المؤلف وعادة ما يكون الدفع مطلوباً. يمكنك إضافته إلى مفضلاتك، لكن لن تتمكن من استخدامه إلا بعد طلب الإذن والحصول عليه من مؤلفه. تواصل مع profghibli للحصول على مزيد من المعلومات، أو اتبع إرشادات المؤلف أدناه.

لا تقترح TradingView الدفع مقابل النصوص البرمجية واستخدامها حتى تثق بنسبة 100٪ في مؤلفها وتفهم كيفية عملها. في كثير من الحالات، يمكنك العثور على بديل جيد مفتوح المصدر مجانًا في المكتبة العامة.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

تحذير: يرجى القراءة قبل طلب الوصول.