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. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?