Thumpyr

PCT Trailing Stoploss-Strategy


I am not a financial advisor and this is not financial advice. This is provided for illustration only for a Percent based Trailing Stoploss.

I have been looking for a Percent based Trailing Stoploss and have not been able to find one that would work for me so I wrote my own. This works in both a Strategies and Indicators I put comments inline of where to add or remove comments// depending on which one you are aiming for. The simple EMA crossovers are there just to give the strategy something to do. To use, copy the Stoploss section, the inputs at the top, and the reset under the sell section to your own script. When I first started out I found the code for removing the redundant signals and then used it in most of my scripts. For the life of me I do not remember where I got it - either in a comment in Tradingview or on a reddit post, so if you wrote that part, thank you.

About me:
I have only been working with PineScript since January 2022 and have never been much of a coder from a professional standpoint but decided to jump in and learn Pine mainly because I am a crap, emotional trader and this way I can remove that aspect of it and lose my money programmatically as opposed to making it a conscious decision :)
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

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