Gesundheit

Starting Template

This script sets defaults that I like to start with:
  • Trade commission set to 0.25%
  • Allow multiple buys before sells
  • Fixed trade size

Also included are setting a minimum desired gain (change gain_protection to 0 if you want to sell regardless of your gain), and buying only if it will reduce your average bought price (change avg_protection to 0 to turn this feature off).

This strategy only takes long positions since Gunbot does not make short positions.

We also start the backtesting at a specific time, to avoid going over the maximum of 2000 trades. Especially helpful when trying to tune a high frequency strategy, or when comparing the efficacy of a strategy on candlesticks with different time periods (this is why I did not use max bars back).

Cheers!
نص برمجي مفتوح المصدر

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

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

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

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