/multicharts-powerlanguage:multicharts-fundamentalsfrom multicharts-powerlanguage
Orients on the MultiCharts platform: script types (Indicator, Signal, Function), order generation modes, multi-data references, and PowerLanguage syntax.
Ships in multicharts-powerlanguage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MultiCharts is a Windows trading platform from MCT Limited (Gibraltar). It connects to multiple data feeds and brokers, runs technical analysis and discretionary trading from charts and DOM, and executes algorithmic strategies written in PowerLanguage. It also includes QuoteManager (local market-data storage) and Market Scanner (multi-symbol monitoring).
PowerLanguage (PL) is the scripting language inside MultiCharts. Source code is edited inside the PowerLanguage Editor and stored in MultiCharts's internal studio database — it doesn't have a standalone source-file extension. Exported study bundles use the .pla extension (PowerLanguage Archive — a ZIP-based binary format), and these are brought into another machine via PowerLanguage Editor → File → Import. When sharing or pasting raw source code outside the studio, plain text (.txt) is the convention. PowerLanguage is functionally compatible with TradeStation's EasyLanguage — most EasyLanguage scripts run unmodified in MultiCharts, and MultiCharts adds keywords of its own (the pmms_* portfolio money-management family, MC_TL_*/MC_Arw_* drawing variants, RecoverDrawings, ProcessMouseEvents, …) that don't exist in EasyLanguage.
Key characteristics:
| Edition | Language | Notes |
|---|---|---|
| MultiCharts (Standard) | PowerLanguage | The original; what most users mean by "MultiCharts" |
| MultiCharts .NET | C# / VB.NET | Same engine, .NET 4.8 hosting, real-time debugging in Visual Studio |
| MultiCharts Portfolio Trader | PowerLanguage + portfolio APIs | Multi-instrument backtesting & live trading module |
This skill covers Standard (PowerLanguage). The .NET edition uses different language but the same platform concepts apply.
Every PowerLanguage script is exactly one of these:
Plot1, draw trendlines, paint bars, display text. Cannot issue orders.Buy, Sell, SellShort, BuyToCover. A Strategy in MultiCharts is one or more Signals applied to a chart; each Signal contributes orders.MyFunc = result;. Called from Indicators, Signals, or other Functions.A Signal can't plot. An Indicator can't trade. A Function can't do either; it just returns a number, boolean, or string. Picking the right script type before you start writing avoids large rewrites.
By default, a Signal script runs once per bar, at the bar's close (and on every historical bar). References like Close[1] mean "the close of the bar before this one." Order placement keywords schedule orders for the next bar — Buy ... Next Bar at Market is the standard idiom, and it fills at the next bar's open, not the signal bar's close. Note: real-time Indicators recalculate on every incoming tick by default ("Update on every tick" in study properties) — bar-close-only execution is the Signal default, not a platform-wide rule.
For tick-level execution, enable Intra-bar Order Generation (IOG) in script properties. With IOG on, the script runs on every incoming tick, and the values of Open/High/Low/Close reflect the developing bar in real time. IOG is needed when you want orders that depend on intra-bar price changes (e.g. stop-orders that should fire as soon as price touches a level, not at the next bar close).
A chart can host more than one data series — data1 is the primary, data2/data3/… are additional series mapped through chart properties. Access them by suffix:
Close of data2 // close of the second series
Average(Close of data2, 20)
Common uses: pair-trading (data2 = the second leg), regime filters (data2 = a higher-timeframe series of the same instrument), or cross-market signals (data2 = a related contract).
Buy — opens a long position. If currently short, the fill closes the short and reverses to long in one order (official docs: "When a Buy order is filled, any open short positions will also be closed"). Adds to an existing long only if pyramiding is enabled in Strategy Properties — off by default, so a second Buy while already long is ignored.Sell — exits a long position. Never opens a short.SellShort — opens a short position. If currently long, the fill closes the long and reverses to short. Same pyramiding rule as Buy.BuyToCover — exits a short position. Never opens a long.General shape:
Buy ( "EntryLabel" ) <quantity> Contract[s]|Share[s] Next Bar at Market;
Buy ( "EntryLabel" ) <quantity> Contract[s] Next Bar at <price> Limit;
Buy ( "EntryLabel" ) <quantity> Contract[s] Next Bar at <price> Stop;
Buy ( "EntryLabel" ) <quantity> Contract[s] This Bar on Close;
Each form is documented in detail in the powerlanguage-keywords-reference skill — invoke that for full signatures and parameter rules.
Every order name within one Signal script must be unique. If you write:
Buy ("LE") 1 Contract Next Bar at Market;
// ... later ...
Buy ("LE") 1 Contract Next Bar at 100 Stop;
…the script will not compile. MultiCharts uses the order name string to track which order produced which fill, so duplicate names are rejected at compile time. Pick distinct labels — "LE_Market" and "LE_Stop", or "LE" and "LE_Pyramid". This rule applies to all four order keywords (Buy, Sell, SellShort, BuyToCover), and is enforced per-Signal — two different Signals on the same chart can each have their own "LE".
powerlanguage-syntax — for grammar questions: semicolons in begin/end, control flow, declarations, common gotchas.powerlanguage-keywords-reference — for any specific keyword: signature, parameters, what category it belongs to.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kasperchengh/multicharts-powerlanguage --plugin multicharts-powerlanguage10 skills in this plugin
/pinescript-builtinsUse when writing Pine Script logic with built-in namespaces — ta.* (averages, oscillators, crossovers), strategy.* (orders, position info), request.* (multi-timeframe), math.*, str.*, array.*, color.*, bar state, symbol info./pinescript-coreUse when writing or reading Pine Script language fundamentals — @version, script types (indicator/strategy/library), type system (series/simple/const), var/varip/input.*, control flow, user-defined functions/types, gotchas (repainting, na handling, max_bars_back)./pinescript-visualUse when adding visual output to Pine Script — plot()/plotshape()/bgcolor()/fill()/hline(), label.*, line.*, box.*, table.*, map.*, matrix.*, log.*, alerts, and drawing object limits./powerlanguage-cpp-conversionUse when converting or porting code between MultiCharts PowerLanguage and C++ in either direction — Strategy base-class scaffold, concept mapping tables, semantic differences, TA-Lib indicators, conversion checklists./powerlanguage-keywords-referenceUse when looking up any of the 947 official PowerLanguage keywords and built-in functions across 40 categories (Strategy Orders, Math and Trig, Plotting, Drawing, Sessions, Portfolio, etc.) — returns signature, category, description, and official wiki link./powerlanguage-pinescript-conversionUse when converting or porting code between MultiCharts PowerLanguage and TradingView Pine Script in either direction — concept mapping tables, semantic differences, conversion checklists.Other plugins' skills for the same job