jason5480

tts_convention

jason5480 מעודכן   
Library "tts_convention"
This library can convert the start, end, cancel start, cancel end deal conditions that are used in the
"Template Trailing Strategy" script into a signal value and vice versa. The "two channels mod div" convention is unsed
internaly and the signal value can be composed/decomposed into two channels that contain the afforementioned actions
for long and short positions separetely.

getDealConditions(signal)
  getDealConditions - Get the start, end, cancel start and cancel end deal conditions that are used in the "Template Trailing Strategy" script by decomposing the given signal
  Parameters:
    signal (int): - The signal value to decompose
  Returns: An object with the start, end, cancel start and cancel end deal conditions for long and short

getSignal(dealConditions)
  getSignal - Get the signal value from the composition of the start, end, cancel start and cancel end deal conditions that are used in the "Template Trailing Strategy" script
  Parameters:
    dealConditions (DealConditions): - The deal conditions object that containd the start, end, cancel start and cancel end deal conditions for long and short
  Returns: The composed signal value

DealConditions
  Fields:
    startLongDeal (series__bool)
    startShortDeal (series__bool)
    endLongDeal (series__bool)
    endShortDeal (series__bool)
    cnlStartLongDeal (series__bool)
    cnlStartShortDeal (series__bool)
    cnlEndLongDeal (series__bool)
    cnlEndShortDeal (series__bool)
הערות שחרור:
v2
minor improvement use constants instead of literals
הערות שחרור:
v3
Minor typo and documentation changes
הערות שחרור:
v4
Added some documentation
הערות שחרור:
v5
  • Some minor optimizations using `const` variables where it was possible
  • Update signal_datagram library

If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY
ספריית Pine

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

כתב ויתור

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

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

העתק את השורה הבאה והדבק אותה בסקריפט שלך.