On this page
The first thing to check is the study type
A surprising number of EasyLanguage verify failures come from creating the wrong thing in EasyLanguage Editor. If the code is written as an Indicator but you pasted it into a Signal or Function, TradeStation will complain in ways that look more mysterious than they really are.
- Plot statements belong in indicators, not functions.
- Buy, Sell, and strategy directives belong in signals, not indicators.
- Fixing the study type early saves a lot of fake debugging later.
Read the verify messages literally before you start rewriting code
TradeStation usually tells you exactly where the parser got unhappy. Line number, token, and object type all matter. The mistake is often simpler than traders think: a missing semicolon, a variable never declared, or a reserved word used as a custom name.
- Do not skip the first listed error and chase the tenth one instead.
- One missing delimiter can create a pile of downstream messages that are not the real problem.
- Rename custom variables immediately if they are colliding with built-ins or reserved words.
Successful verify still does not clear Data2, session, or MaxBarsBack issues
A study can verify and still be wrong on chart because the code assumes more than the chart is providing. EasyLanguage studies that reference prior-session logic, secondary data streams, or long lookbacks will fail behaviorally even after the syntax passes.
- If the code expects Data2, add the second data stream before you call the result broken.
- If the study uses long history, confirm MaxBarsBack is sufficient instead of trusting default behavior.
- Session-sensitive code should be checked on the actual futures session template you trade.
Format Analysis Techniques is part of verification too
After a clean verify, open the study on a plain chart and inspect Format Analysis Techniques. This is where you catch inputs with bad defaults, plots hiding in the wrong pane, and line settings that make the study look dead even though it technically compiled fine.
- A flat or invisible plot is often a chart-format issue, not a code issue.
- Check whether the study belongs on price or in a separate subgraph.
- The verify button proves syntax; the chart proves usefulness.
Best next reads
These pages pick up the questions most readers usually have next, so you do not have to back out and start a fresh search.
Frequently asked questions
Why does EasyLanguage say the code is wrong when it looks simple?
Because the most common verify errors are structural rather than exotic: wrong study type, undeclared variables, missing delimiters, or chart assumptions the code is making without getting the needed data.
What should I check right after a successful verify?
Add the study to a clean chart, confirm the session and any extra data streams, then inspect Format Analysis Techniques so you know the plots and inputs behave the way the code expects.