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
A custom script belongs in the thinkScript Editor. Create a study or strategy, replace the starter code, save it, and add the saved item to the 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.
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. A .ts file can also be imported through the editor. 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. If you received a .ts file, use the editor import control instead of pasting it into an unrelated field.
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 guideTo run a thinkorswim backtest, express the rules as a strategy that uses AddOrder, add it to a chart, set the symbol, aggregation, date range, order size, commission, and slippage assumptions, then inspect the strategy report. Treat the result as a conditional simulation rather than a forecast.
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 thinkorswim 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. thinkorswim remains the platform authority for parsing and chart behavior.