MARKUDA TERMINAL
CodeScript Guide
Everything you need to write your own indicator or strategy. Start from zero and move forward with working examples.

What do you want to do?
You don't have to read it end to end. Pick your goal below.
Getting started
- Your first indicator
- How your code runs
Core concepts
- Price data and series
- Conditions and comparison
- Working with empty values (na)
Drawing on the chart
- Drawing lines
- Placing marks and shapes
Writing strategies
- Entering and exiting
- Pending orders
Writing a strategy
- Take-profit and stop-loss
Function reference
What each one takes, what it returns, and a working example.
AI ASSISTANT SKILL PACKAGE
Let your AI assistant write your CodeScript
Add the Markuda CodeScript skill package to your AI assistant. Describe what you want in plain words; your assistant writes working CodeScript, checks it with the bundled validator and explains how to use it. It can also convert indicator and strategy code you wrote on other platforms to CodeScript.
Works with assistants that support skill packages and code execution. The package runs in your own account; your requests and the generated code are not sent to Markuda.
Installation
- Download the package. The file is named markuda-codescript.zip.
- Upload the file in your assistant's skill settings. If code execution is turned off, turn it on first.
- Start a new chat and describe what you need. Paste the code into the CodeScript panel in Markuda Terminal and run it.
Example request
Buy when RSI drops below 30, with a 2% stop loss and a 4% take profit.
From this request, your assistant writes code like this:
r = rsi(close, 14)
enterLong(crossunder(r, 30), stopLoss=2, takeProfit=4)
plot(r, "RSI", "#7e57c2", "new")
hline(30, "Oversold", "#089981")






