Rule Number 1 Signals

This script takes the Rule #1 3 tools and plots them on the graph, to provide an additional level of indication for when to sell and when to buy.
ملاحظات الأخبار: Close instead of buy
ملاحظات الأخبار: Minor cosmetic changes
ملاحظات الأخبار: exit on 2 signals as per rule number 1
ملاحظات الأخبار: More aggressive closing tactic to take profits if things don't go well
ملاحظات الأخبار: Added comments and made the entry criteria based off of three period entry for each of the three tools.

Included an experimental stop loss strategy - though will port this over to another future script with comprehensive support resistance.
ملاحظات الأخبار: Cleanup
ملاحظات الأخبار: Switch back to simple moving average as per the book, and implement a look back mechanism for sell signal (to be in line with the buy signal)
ملاحظات الأخبار: Simplify script - resulting in higher win rates
ملاحظات الأخبار: Simplify script
ملاحظات الأخبار: Cleanup + refine the strategy to wait for 2 signals and then enter on the third as per the book.

Allowing for more signals per timeframe
ملاحظات الأخبار: Update to Pine script version 4
نص برمجي مفتوح المصدر

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

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


Amazing job Bro, I follow it and let you know it works perfectly!
+1 رد
SunilHalai Doran-M
@Doran-M, thanks mate, glad it helped you
Doran-M SunilHalai
@SunilHalai, I just want to share something with you, I changed inputs manually for different Symbols and the Time periods and the results were wonderful!
for example: AAPL, 4h
Fast Length: 1
Slow Length: 28
MACD Length: 9
SMA Signal: 44
Stochastic Length: 15

Net Profit: 1.47%, 1474$
Total Closed Trade: 54
Percent Profit: 61%
Max Down: 0.05%

Can you try that and tell me do I have the right assumption or not?

SunilHalai Doran-M
@Doran-M, Thanks for sharing, those results seem really good. I have not tested this strategy live/forward testing, so will need to verify. I would expect the results might not be up to those standards in real life trading however

I like your scripts very much. Thanks a lot for sharing.
I did change a minor thing: strategy.entry("buy", strategy.long, comment="BUY")

I know wealth-lab has a possibility to optimize settings.
Is this possible with tradingview?