Home Automation

Test an automated rule

Set a threshold, choose a maximum number of signals and run the rule on a simulated sequence. The table shows how each step is evaluated.

Test a rule

Set a threshold and see when a signal would trigger across five simulated readings. Each signal is a record in the simulation.

Rule settings

Simulated sequence

StepValueEvaluation
198.4Pending
2100.8Pending
399.3Pending
4103.1Pending
5104.8Pending

Market context · BTC/USD

Bitcoin reference chart. The automation examples use a separate set of simulated values.

Set a condition you can check

The rule compares each value in the sequence with the threshold you set. You can require a value to be equal to or above the threshold, or equal to or below it. In both cases, the exact threshold value is included.

The sequence contains five fictional observations in a fixed order. Repeat it with different settings to see at which step the evaluation changes. Note the condition and threshold if you want to reproduce the test.

Understand the signal limit

Each observation that meets the condition generates a signal while there is room under the maximum you selected. Once the limit is reached, later observations that meet the condition are marked Limit reached.

If a value falls outside the condition after the limit is reached, that step is marked Below threshold. The table therefore distinguishes the rule criterion from the signal limit.

Compare two runs

Change one setting at a time. Keep the threshold and change the maximum to see how the number of signals changes. Then restore the original limit and move the threshold to identify which observations meet the rule.

When you change a setting, the table clears the pending steps. Select Run simulation to evaluate the new configuration.

Distinguish a signal from an execution

The simulator records whether a comparison is met. The Bitcoin chart on this page provides market context and uses a different source from the test sequence.

In live trading, the quote and available liquidity can change between observing a price and placing an order. Order type and response time also matter. Studying an execution would require additional data and assumptions.

Illustrative example

One threshold, two signals

Use the tool’s fictional sequence and keep its initial settings.

Condition
Equal to or above 100
Maximum
2 signals

The rule records a signal at 100.8 on the second step and another at 103.1 on the fourth. The final value, 104.8, meets the condition after the limit has already been reached.

Frequently asked questions

What range does the Threshold field accept?

You can enter values from 0 to 200, including decimals. The field indicates when you need to correct a value before running the test.

What happens if I run the same settings twice?

The sequence and evaluation rules are the same, so the result repeats. Each run starts with a new signal count.

Does the test trade on my account or use the Bitcoin price?

The test evaluates five example values and records signals on screen. The Bitcoin chart is viewed separately, and the signals remain within the simulator.