Prompt brief
ThinkScript · one source file
Example request
Create a thinkorswim upper study with configurable fast and slow EMA lengths, a cloud between the averages, and an alert only when the fast EMA crosses above the slow EMA.
thinkorswim setup guide
Use thinkorswim desktop to create a custom study or strategy, replace the starter code, save it, and add the saved item to a chart.
Source review completed
Prompt brief
ThinkScript · one source file
Example request
Create a thinkorswim upper study with configurable fast and slow EMA lengths, a cloud between the averages, and an alert only when the fast EMA crosses above the slow EMA.
In thinkorswim desktop, open Charts, select Studies, then Edit Studies. Choose Create for a study, or open the Strategies tab and create a strategy. Paste the thinkScript source into the editor, give it a unique name, save it, and add it to the chart. For a saved thinkScript .ts file, use Import in Tools > thinkScript IDE and select Study or Strategy. Fix every parser error before treating the script as installed.
Practical workflow
Open Charts, select Studies, and choose Edit Studies. Use the Studies tab for plots, labels, or alerts. Use the Strategies tab when the source contains simulated strategy orders.
Choose Create, replace the starter source, and assign a unique name. For an existing thinkScript .ts file, open Tools > thinkScript IDE, choose Import, select Study or Strategy, and choose the file. The .ts extension alone does not make TypeScript or another language compatible.
Read the message shown by the parser, return to the referenced line, and correct the source. Saving a name is not proof that the script parsed successfully.
Select the saved study or strategy, choose Add selected, and apply it. Check inputs, plots, labels, and historical behavior on the symbol and chart interval you intend to use.
A strategy report is a simulation. It does not place a live order and it does not establish that the logic will perform in the future.
In thinkorswim, the item you add to a chart is normally a study or a strategy. A study calculates and displays chart output. A strategy uses AddOrder to annotate simulated entries and exits. A helper declared with the script reserved word is reusable code inside the same source, not a separate chart item.
Choose the type from the behavior you need, not from the file name. Pasting strategy code into a study can produce errors or omit the behavior you expected.
State the chart location, inputs, calculation rules, plots, colors, alert conditions, and whether the result is a study or strategy. For a strategy, define entry and exit conditions separately and describe how repeated signals should be handled.
Pineify returns one editable thinkScript file. Review the source, request focused changes, then complete the save and chart test in thinkorswim.
Pineify thinkScript workflow
Give the Coding Agent the formula, inputs, plots, alerts, and edge cases. It returns one editable study or strategy file and keeps focused revisions in the same code artifact.
A thinkorswim script is source code written in thinkScript. Most chart scripts are studies that calculate plots, labels, colors, or alerts, or strategies that add simulated orders for historical analysis. Pineify can generate and revise one editable study or strategy file from a plain-English specification.
Read guidethinkorswim includes a studies library for common indicators and a thinkScript editor for custom studies. There is no universal best indicator for day trading. Select a study by its calculation, inputs, chart context, and failure modes, then test whether its signal adds information beyond price alone.
Read guideIn thinkorswim desktop, add a thinkScript strategy to a chart, choose the symbol, aggregation, loaded history, and trade size, then right-click a strategy arrow and choose Show Report. Inspect the AddOrder price and timing rules. Record commission and slippage assumptions separately; do not assume the native report has deducted them.
Read guideLast verified:
Pineify provides information and code-generation assistance, not investment advice. Generated scripts, strategy reports, simulations, and historical examples cannot predict prices or guarantee returns. Review every script and test it in its target platform before relying on its output.
Paste study source into a new item in the Studies tab of the thinkScript Editor. Paste strategy source into a new item in the Strategies tab. The source type should match the behavior it uses.
Common causes include copied formatting, an incomplete source block, a misspelled function, an unsupported construct, or code written for another platform. Use the editor message and line location to make a focused correction.
No. Pineify generates and edits the source file. You remain responsible for opening the thinkScript Editor, saving the code, resolving platform errors, and testing the result.
Generate one editable thinkScript study or strategy, inspect the source, request focused changes, and complete the final check in thinkorswim.
Pineify generates source code. Review its syntax and chart behavior in thinkorswim before use.