RobertD7723

ConditionZero

This study is a proof of concept analysis of situations that can lead to divide with zero or divide by zero conditions. Such situations can lead to mathematical errors, and can increase the potential for false alerts.

One common formula that is prone to this situation is:

pct=(high-close)/(high-low)

This is used to calculate percentage change of a candlestick.

Common outcomes are 0/0, 0/x, x/0, where x is a non zero value.

Visualizing this situation allows for more robust script development and deployment.

There are no user configurations.

Join my Patreon for exclusive access to Jackrabbit TV,

www.patreon.com/RD3277
סקריפט קוד פתוח

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

כתב ויתור

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

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