Learn · Start here
Write your own indicators
Cuprel is live in MillionChart for every signed-in member. Visitors who are not signed in do not have the editor. Start here: put a first script on the chart, paste a sample program, then follow the course in the MillionChart wiki.
- Write your first script: from an empty editor to a line on the chart.
- Paste a sample program and read how it works.
- Follow the course: the lessons in the MillionChart wiki, from your first script to the Strategy Lab, in English and Persian.
Write your first script
Open the editor in the chart, paste a program, save it and add it to the chart.
Language tour
The header, series and bars, inputs, plots, conditions, functions, missing values, time and sessions.
Sample programs
Complete programs from easy to useful, each with what it does and how it works.
Limits and honest notes
What is private, what is switched off, editions, replay and the limits of a run.
Every program in the Learn section is a complete script from the engine's own example set. Before it is published here it is compiled with no problem and run with output on synthetic seeded market data by the engine at the revision named on the page, and its text is copied byte for byte. Revision: production@9a82bf9.
The editor is in the chart at millionchart.com/chart. You need to be signed in.
All the documentation is listed on Documentation.
Next: the first lesson of the course in the MillionChart wiki, Your first script. The whole course: Write your own scripts.