allanster

How To Count Decimals

allanster Wizard מעודכן   
Custom f_nDecimals() function returns precision of decimal numbers of the following forms:
const, input, simple, and series of the following types: float, integer, and string.
Error checking is performed for valid numbers and invalid values return NaN.

NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
הערות שחרור:
Revision 1

Added a compact refactored equivalent version of function: f_nDecimals().
Renamed original annotated version of function to: f_nDecimal5().
Added column to matrix table to compare equivalency.
הערות שחרור:
Cosmetic.
הערות שחרור:
Revision 2

Implemented a more detailed grid for testing higher precision values. Increased precision of example output values.
הערות שחרור:
Cosmetic.
הערות שחרור:
Cosmetic.

lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
סקריפט קוד פתוח

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

כתב ויתור

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

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