Differences
This shows you the differences between two versions of the page.
pinescript:demonstrations:print_logs [2025/02/11 21:16] – created admin | pinescript:demonstrations:print_logs [2025/08/27 06:49] (current) – created derrickdivine5 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Print Logs ====== | + | Cannabis clones make life easier for anyone starting a garden. Every clone is a direct copy of a healthy mother plant. In other words, your grow stays uniform and If you cherished this article and also you would like to acquire more info relating to [[https:// |
- | ===== log.error() ===== | + | People often ask where to buy cannabis clones. The answer is to check reliable sources, where growers share info about shipping, care, and genetics. Some vendors now ship clones directly to your door, without needing to hunt down a local shop. |
- | Converts the formatting string and value(s) into a formatted string, and sends the result to the "Pine logs" menu tagged with the " | + | The first step with any new clone is inspection. Avoid any clones with spots, yellowing, or pests. Give it a new home with light, airy substrate. Keep light low for the first days, then increase over time. This keeps stress low. |
- | The formatting string | + | Growers |
- | + | ||
- | ==== Arguments ==== | + | |
- | + | ||
- | **message (series string)** Log message. | + | |
- | + | ||
- | ==== Example ==== | + | |
- | + | ||
- | <code JavaScript [enable_line_numbers=" | + | |
- | // | + | |
- | strategy(" | + | |
- | bracketTickSizeInput = input.int(1000, " | + | |
- | + | ||
- | longCondition = ta.crossover(ta.sma(close, | + | |
- | if (longCondition) | + | |
- | limitLevel = close * 1.01 | + | |
- | log.info(" | + | |
- | strategy.order(" | + | |
- | + | ||
- | log.info(" | + | |
- | strategy.exit(" | + | |
- | + | ||
- | if strategy.opentrades > 10 | + | |
- | log.warning(" | + | |
- | + | ||
- | last10Perc = strategy.initial_capital / 10 > strategy.equity | + | |
- | if (last10Perc and not last10Perc[1]) | + | |
- | log.error(" | + | |
- | </ | + | |
- | + | ||
- | ===== log.info() ===== | + | |
- | + | ||
- | Converts the formatting string and value(s) into a formatted string, and sends the result to the "Pine logs" menu tagged with the " | + | |
- | + | ||
- | The formatting string can contain literal text and one placeholder in curly braces {} for each value to be formatted. Each placeholder consists of the index of the required argument (beginning at 0) that will replace it, and an optional format specifier. The index represents the position of that argument in the function' | + | |
- | + | ||
- | ==== Arguments ==== | + | |
- | + | ||
- | **message (series string)** Log message. | + | |
- | + | ||
- | ==== Example ==== | + | |
- | + | ||
- | <code JavaScript [enable_line_numbers=" | + | |
- | // | + | |
- | strategy(" | + | |
- | bracketTickSizeInput = input.int(1000, | + | |
- | + | ||
- | longCondition = ta.crossover(ta.sma(close, | + | |
- | if (longCondition) | + | |
- | limitLevel = close * 1.01 | + | |
- | log.info(" | + | |
- | strategy.order(" | + | |
- | + | ||
- | log.info(" | + | |
- | strategy.exit(" | + | |
- | + | ||
- | if strategy.opentrades > 10 | + | |
- | log.warning(" | + | |
- | + | ||
- | last10Perc = strategy.initial_capital / 10 > strategy.equity | + | |
- | if (last10Perc and not last10Perc[1]) | + | |
- | log.error(" | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ===== log.warning() ===== | + | |
- | + | ||
- | Converts the formatting string and value(s) into a formatted string, and sends the result to the "Pine logs" menu tagged with the " | + | |
- | + | ||
- | The formatting string can contain literal text and one placeholder in curly braces {} for each value to be formatted. Each placeholder consists of the index of the required argument (beginning at 0) that will replace it, and an optional format specifier. The index represents the position of that argument in the function' | + | |
- | + | ||
- | ==== Arguments ==== | + | |
- | + | ||
- | **message (series string)** Log message. | + | |
- | + | ||
- | ==== Example ==== | + | |
- | + | ||
- | <code JavaScript [enable_line_numbers=" | + | |
- | // | + | |
- | strategy(" | + | |
- | bracketTickSizeInput = input.int(1000, | + | |
- | + | ||
- | longCondition = ta.crossover(ta.sma(close, | + | |
- | if (longCondition) | + | |
- | limitLevel = close * 1.01 | + | |
- | log.info(" | + | |
- | strategy.order(" | + | |
- | + | ||
- | log.info(" | + | |
- | strategy.exit(" | + | |
- | + | ||
- | if strategy.opentrades > 10 | + | |
- | log.warning(" | + | |
- | + | ||
- | last10Perc = strategy.initial_capital / 10 > strategy.equity | + | |
- | if (last10Perc and not last10Perc[1]) | + | |
- | log.error(" | + | |
- | + | ||
- | </ | + |