1. Know which output you are asking for
An indicator can display a value calculated from chart data. A rule marker can show that a particular condition happened on a bar. A strategy or order workflow has different responsibilities, and a plot does not by itself create one. Start by choosing a visible result: a line, a band, a number in a separate panel or a marker that reports a crossing. Describe how you would recognize that result when you first add the script to a chart.
Separate what a displayed value measures from what you may decide later. A band shows levels according to its calculation. A crossover marker records a relationship between two values under a given rule. Neither decides how much money to use, when to submit an order or whether a trade is appropriate. The template should represent the requested calculation faithfully without adding a decision the user did not supply.
Write the prompt in the language of the chart you want. For example: “Write Arth Script for Bollinger Bands with length 24 and width 2.5.” That asks for a named indicator and two settings, not a strategy, a forecast or an outcome. If the instruction only says “show trend,” ask which calculation defines the trend, what should be plotted and how the chart should behave when no value is ready.
If you still do not know the desired rule, start with a simple template and learn how its inputs affect the chart. Keep demonstration settings labelled as examples. Do not ask the template to choose a period merely because a popular default appears in the source. The aim of a starter is to make adjustments visible so you can confirm what the code actually represents.
2. Say where the script should appear on the chart
Some outputs are meaningful on the same scale as a price. A moving average of the close or a band around a price average is naturally compared to the candle values. An oscillator uses a different scale and often belongs in its own panel. A rule marker can be useful either way depending on the chart convention. Include that choice in your prompt instead of relying on a preview image to suggest it.
Ask for readable plot names. A chart with three lines should make it clear which is the basis and which are the upper and lower levels. If an example has a separate direction value, name it distinctly from the main line. A person inspecting a screenshot may have trouble guessing whether a line comes from the calculation or is a constant reference. Named outputs also make it easier to confirm the script is plotting the requested fields.
Do not infer that every drawing feature or companion language operation is available. The supported operations are those in the Arth editor and the runtime version you are using. If the example requests a plot that cannot be drawn the same way in your version, describe the alternative honestly. A plain line that communicates the rule is preferable to a screenshot of an effect the editor does not produce.
Check the requested chart input as well. A script that reads the chart close follows the candles on the chart you open. A separately specified timeframe needs explicit support and alignment. Changing the chart timeframe changes the meaning of each bar. Do not describe a result as using fifteen-minute candles unless you actually know those are the candles the runtime supplied.
3. Read input declarations and default values before pressing Run
An editor input declaration says something about how the code is meant to be changed. Check the label, the type and the default. A length ordinarily needs an integer count of bars. A multiplier may be a decimal. A level may represent a value on an oscillator scale rather than a number of bars. If the template supplies a minimum or a range, check what happens when you give it a value outside that range.
Search for where the input is used in the formula. It is possible to see a settings box for one value while the calculation still refers to a different number. The input should flow into the behavior it claims to control. For a band template, confirm that a length feeds the average and deviation window if that is the rule you requested, and that the multiplier actually scales the band width. Changing a label is not the same as modifying the calculation.
Some downloaded files preserve editor settings and some supply a fixed value for a demonstration. The instructions should tell you which kind you received. If a field is meant to be changed in the editor after the script is pasted, they should identify the control. If the assistant filled a value at download time, check the generated source before pasting it. If the value is absent, do not assume a hidden setting will make up for it.
Try one setting at a time against the same sample chart. If you change length, multiplier and timeframe together, it may be difficult to tell which one explains the different plot. A saved screenshot can help with the comparison, but keep the exact source and chart interval too. A layout image by itself does not establish which settings the runtime used.
4. Compare a fixed template with a supported filled request
Quanty Code can organize template files, instructions and tests. Where the wording and settings fit a supported template, the returned source can keep the implementation and change only the named inputs. Read the response files rather than assuming all phrasing matches the same starter. A sentence that sounds similar to a supported request can still ask for an additional calculation that the original template does not implement.
For a practical comparison, request the ordinary template first. Then request the same template with one supported setting changed. Compare the files and look for the actual declaration or value that changed. Check that unrelated defaults and plot names stayed the same. If a description gives the original example defaults, the source is the place to confirm the values in your downloaded script. A label or caption should not override what the code actually runs.
Treat a custom output differently if it changes the meaning of the rule. Replacing a 20-bar period with a 24-bar period is easier to check than replacing the whole moving-average formula. Adding a new timeframe, changing the input source or making a plot depend on a separate session creates other assumptions. Those changes deserve new test cases. A generated adaptation is not the same as the original reviewed template just because part of the code is familiar.
Save the complete answer files. A template may include a small example dataset or an explanation of where to paste the source. Keep those instructions with the code if you want a teammate to reproduce what you did. A copied code block without its version note and test command makes it easy to compare the wrong result or to open the script in a different environment than the one intended.
5. Make crossings and thresholds unambiguous
A rule that says “above” can mean every bar whose reading is above a threshold, or specifically the first bar on which the reading crosses from below or equal to above. These rules can look similar on a chart with only one affected candle. Over a longer stretch, the first produces repeated markers and the second does not. Decide which one you need before asking for code or interpreting a test.
Specify how equality should be handled. If a value was exactly on the line on the previous bar and moves above it now, should that count? If it has stayed exactly on the line for several bars, when is it allowed to produce an event? Different formulas can treat those relationships differently. The easiest way to spot an unintended rule is to write a sequence that includes below, equal, above and above again.
Use made-up values for the first test. Suppose the indicator reading is 28, 30, 31 and 34 on four bars and the threshold is 30. Under a rule that crosses from at or below to strictly above, only the third bar crosses. Under a rule that reports every value strictly above, both the third and fourth bars are true. That example states the behavior without pretending to recommend an indicator threshold.
Check the opposite direction separately if your prompt asks for it. A cross above and a cross below are not the same event and may need separate plot values or labels. Do not infer that a negative marker represents a recommendation to sell. It is only an encoding for the condition you wrote. State the encoding in the instructions so readers know what a positive, negative or zero reading means.
6. Define warm-up and missing values
A rolling calculation may not have enough observations at the beginning. A moving average that needs twenty valid bars cannot necessarily produce a meaningful value on the first five. Decide whether the script should show a gap, leave the plot blank or use another documented behavior until enough data exists. Filling the beginning with a zero can make the chart appear to show an actual zero rather than a not-ready state.
Missing values later in the series create a separate question. If a bar is absent, decide whether the calculation uses the available sequence, restarts, or reports that the series is incomplete. A chart plot that skips a missing value does not by itself tell you how the underlying calculation treated it. If a temporal boundary is important, use a sample where the issue is visible rather than reviewing only a smooth price sequence.
A crossover generally needs both a current and previous valid reading for the relationship being compared. Ask what happens on the first ready bar or immediately after a gap. Treating an absent previous value as zero can create a marker that the intended rule did not authorize. Include a case in which the indicator becomes available just across the threshold, so you can see whether the code marks an event too early.
Also test a flat sequence if the formula uses a denominator or compares changes. Some values may be uninformative or undefined in flat conditions. The script should handle those cases according to a stated rule. Do not improvise a different formula merely to avoid a chart gap. A gap can be useful evidence that the preconditions for a meaningful reading were not satisfied.
7. Keep bar timing and sessions in the prompt
A chart bar represents a time interval; its values may still change while the bar is open. If the rule should use completed bars, state that. A visible marker can appear or disappear as the underlying conditions change unless the code or environment is designed around completion. Reviewing historical bars alone may not show how an open bar behaves. Confirm the convention against the environment you actually intend to use.
If the rule depends on a trading session, specify the clock and exactly where the period begins and ends. A daily reset or opening range is not meaningful without a session definition. Do not treat the device's local time as interchangeable with the session's intended time. If a template exposes a session clock input, confirm the units and whether the particular offset should be entered in the editor rather than inferred from a prompt.
Ask how a missing opening bar, a shortened session or a delayed start should behave. A first available bar may not be the scheduled opening bar. If the opening range is supposed to cover a time span, confirm whether the input is a count of minutes or a count of chart candles. A fifteen-minute interval and fifteen one-minute bars only coincide when those bars are present and placed correctly.
For a first test, choose data whose session boundary is easy to identify. Compare the last plotted value in one session with the first expected value in the next. If the reset does not occur at the intended point, check the clock and input convention before rewriting the formula. An adjustment to the calculation should not hide a mismatch between the data's timestamps and the rule's timing.
8. Review a template in the editor using a printed sample
Read the source and setup notes before pasting the script. Check that the language is Arth Script and that the version declaration matches what the editor accepts. Do not paste Markdown fences, file labels or instructions into the source field. Paste only the script text. If the editor reports an error, record the exact source and messages before changing several lines; the first reported location may help you identify a missing or unsupported part.
A successful compile means the editor accepted the program. It does not verify that the plotted output matches your intention. Add the resulting script to a chart and compare one known example. For a simple average, calculate a short window by hand. For a rule crossing, label the previous and current values. If the editor attaches plot names differently than expected, confirm the output names before reviewing the visual style.
Try the default and one changed setting using the same chart data, then test an inconvenient case. Examples include not enough bars, a flat period or a value exactly on the threshold. If you use a captured screenshot, include the chart interval and the tested settings. Keep one written expected output so that a person without your screenshot can still tell what the test was meant to verify.
If a project includes separate fixture tests, run them on a copy of the files that will be distributed. Some template source files may be designed to receive named values before they run. Check that the rendered downloadable source has those values rather than leftover markers. The template infrastructure and the chart runtime make different promises. One chooses and fills a file, while the other compiles and runs what was returned.
9. Resist adding a trade action to a chart display
A well-formed indicator can tell you whether a user-defined condition was met, but it should not silently place an order. Keep example scripts focused on plots or marker values unless the request is explicitly for another controlled workflow and its requirements are separately reviewed. The availability of a chart marker does not establish order handling, broker permissions or risk controls. A template should not imply it does.
Name the plotted signal in ordinary words. A label such as “cross above” explains the calculation, while a phrase that sounds like a trade instruction may confuse a reader. If the same script uses signed values, document that the sign represents the direction of a condition. It is not a size, a level of confidence or a claim about what happens next.
Avoid interpreting the frequency of marks as a result about money. A sample series can be constructed to show one crossing on purpose. Seeing the crossing should validate one rule case, not suggest how often the rule will trigger on real market data or whether outcomes are favorable. An honest handoff states that a test used fictional values or a specifically checked sample and does not claim a forecast.
If you later use the script as an input to a backtest, review those assumptions separately. An indicator output does not define a fill, establish costs or tell you when a message reached a broker. A simulated strategy result depends on what data the decision can use and what execution rules the simulation assumes. Keep the chart example's conclusion narrow: it calculates and displays the user-defined condition under the tested settings.
10. Compare one output, not two whole systems
When a chart plot differs from another implementation, compare a small period and one output before concluding that either is incorrect. Confirm the data source, interval, timezone, price column and input values. An average using a different seed can disagree near the start and converge later even when the ongoing calculation is similar. A differently labelled bar can shift the visible comparison by one period.
Use values rather than only shapes. On a compressed chart, two similar curves may look the same even if their readings differ. A numerical comparison at selected bars helps identify the first difference. If possible, include the data for the surrounding window. An exact earlier value may be needed to explain a rolling calculation or a crossing. A screenshot that begins after the relevant history cannot show the whole reason.
Do not assume that another language example can be pasted directly into Arth. A formula can often be expressed in more than one environment, but function names, input defaults, missing-value semantics and plotting options can differ. If you want an equivalent chart script, state the desired behavior and provide a test rather than asking for a line-by-line translation without context. Keep the comparison tied to outputs you can inspect.
Record whether the test used the chart editor or a separate fixture. A stand-alone runtime test can validate calculations on known bars. A screen check can validate that a plot is displayed and readable. Using both may be valuable, but a calculation fixture alone does not prove a particular hosted screen serves the newest files. Tell the reviewer which boundary was actually tested.
11. Save a reproducible review packet
Include the request, the exact script, the input values, and a small set of expected outputs. State which chart interval and price source the script reads. If the reported behavior depends on a session clock or warm-up window, include those details. A good packet lets someone else identify the first expected marker even if their chart layout is different. Put sample data in a separate, labelled file if the template expects it.
When changing a downloaded template, keep the original beside your adapted copy. Document which lines or editor settings changed. If your adaptation adds a new assumption, cover that assumption with a short case. Do not claim that a test passing on the original template also validates a changed formula. The exact script you plan to share should be the one attached to the receipt.
Use a difference report that names the first failing bar and rule. “The plot looks wrong” is hard to review. “The third bar should be the first cross from at or below 30 to above 30, but the script marked the second” gives a concrete case. Include the values the condition compared so the reviewer can reproduce the error without setting up a broker account or using private data.
Keep your final language narrow. You can say the output matched the checks you ran, and identify what was not tested. You cannot infer that it will track every chart or serve a trader's needs under all conditions. If a test was done with fictional candles or a sample replay, say that. QuantPower is software, not an adviser. Review and test trading logic on paper rather than relying on a generated script as a recommendation.
12. A short method for checking a new indicator
Request one known indicator, one clear set of settings and named plots. Save the source as returned and note where the values appear in it. Compile the script and compare one calculation against a small fixture. Change one setting and confirm that the output changes in the expected way. Check a case with missing data or an exact equality if the script depends on a crossing. Finally, verify whether the output belongs on the price chart or in a separate panel.
If a reviewer asks whether the example creates an order, the answer should be visible in the package, not left to interpretation. Name the output as a calculation, provide the associated source and explain the difference between an indicator and a separate execution workflow. A concise review can say what the user asked for, which files were checked, what result was observed and what remains outside the work. That gives the next person a reliable starting point for a change rather than a claim that has to be reconstructed from the chart.
13. Check the arithmetic before comparing the chart
For a small average example, use close values of 100, 103, 106 and 109, and set the length to three. The first two bars do not have a complete window. On the third bar the average is 103, and on the fourth it is 106. If the plotted line reports a value at the first bar, inspect the warm-up convention. If it uses an earlier bar from the chart that is not in your four-value hand calculation, the two examples are not equivalent. Either use a truly isolated fixture or include the preceding history in your comparison.
For a band around that average, write down the distance from the basis to the upper band and from the basis to the lower band. If the rule is symmetric, these distances should agree within the expected numerical precision. Changing the multiplier without changing the price sequence or period should alter the distance if the deviation is nonzero, while leaving the basis alone. Test a flat window too: it makes a different case because the deviation may be zero and both band distances may collapse to zero. Each check gives a clear reason to revisit a result if it differs.
For a crossing example, record both series on both bars. Assume the earlier fast reading is 99 and the earlier slow reading is 100, then the fast reading is 101 and the slow reading is 100. If the rule means crossing from at or below to above, the second bar should be marked. Add one more bar with the fast reading still above, and make sure it is not marked again. Then repeat with the earlier fast value exactly 100 to test the rule you chose for equality. These are manually constructed readings, not a tested trading outcome.
14. Turn uncertainty into a useful test or edit
If you cannot tell what input a generated script uses, follow the variable from its declaration to the calculation. The answer might depend on the close, a typical price based on several candle values, or a value produced by another calculation. A chart can show all of these without obvious visual differences on some data. Run a fixture where the candidate inputs differ enough that choosing the wrong series produces a different result.
If two regular chart intervals show incompatible results, do not start by adding another condition. Confirm that the window covers the same number of bars and whether doing so actually represents the same time span. A ten-bar period on one chart is not the same amount of time on another. Update the rule only after you have decided whether the period belongs to bar count or elapsed time. Document that choice so another reviewer does not repeat the mismatch.
If a drawing appears one bar earlier or later than expected, distinguish calculation time from display position. Check which bar the calculation reads, when the resulting value becomes available, and whether any visual offset moves the drawing. A line displaced for readability does not make the information available earlier. When the intended rule is used in a historical comparison, the available data and timestamp matter more than the position of a decorative line.
Once the small test covers the issue, keep it with the source. A new value choice can then be reviewed without rerunning unrelated work. If the user is unsure whether a feature is supported in the current editor, verify it on the intended version rather than promising parity with another tool. Mark unsupported or unverified behavior plainly. A good template makes the next check easy, even when the right answer is that a particular form of the request has not yet been implemented.
Explore Quanty Code