Turn a trading idea into an unambiguous specification
A prompt such as "make a profitable moving-average strategy" leaves the system undefined. Choose the behavior yourself, and ask the model to flag missing decisions before coding. For an existing script, provide the full source and specify which behavior must remain unchanged.
| Decision | Example specification | Question to resolve |
|---|---|---|
| Data | Standard candles on the selected chart timeframe | Does 20 mean 20 chart bars or 20 daily bars? |
| Entry | Long only on a confirmed 20/50 SMA crossover while flat | Is a crossover required, or is fast above slow enough? |
| Execution | Market order using the default next-tick fill model | Should the signal bar and fill bar differ? |
| Exit | 100-tick stop, 200-tick target, or confirmed crossunder | Are distances measured in ticks, price units, or percent? |
| Sizing | Allocate 10% of equity; no additional entries while long | Allocation and equity at risk are different quantities. |
| Costs | Illustrative 0.05% commission per fill and one tick of slippage | Which assumptions match the instrument and broker? |