Checking private runtime availability...
What this builds:
a C++ backed expression that returns
true
or
false —
same as a Lua one. Use it in a strategy slot or as an alert (fires when true).
Procedure:
select the expressions and bar frames this may use, then write one decision that returns a bool.
Read inputs inline — no class, no callbacks:
bar().closeBidPrice,
expr("RSI_14"),
hasBar(),
hasExpr("name").
After submit, GTS validates, compiles + runs it in an isolated container, and deploys the approved handler to the private runtime.
Select the expressions your code should receive and the bar intervals to run on. Read selected expression values with
expr("name"); selected frames feed onBar() and bar(), so your code can combine GTS signals, prices, and state.
Code Review Workspace
Write code, test it in the browser sandbox, then submit it for private-server review.
Review can take up to 24 hours.
Certification runs in an isolated Docker environment before private-runtime deployment.
Code IDE C++
Draft handler
Start from
Draft
Test run shows your print(...)/log() output + how each bar decided. Nothing saved.
API Reference — what you can call
How to write it:
you write one decision — just the body that ends in
return <true/false>;.
No class, no callbacks, no includes — GTS wraps it for you.
Read only the expressions and frames you selected above. Bar + expression values are cached,
so you read them inline.
| Call |
Returns |
Description |
bar() | BarParams | The latest bar. Fields below. |
hasBar() | bool | True once a bar has been received (guard before reading bar()). |
expr("RSI_14") | float | The latest value of a selected expression. This is the normal call. (Returns 0 only at the very start, before its first value — see hasExpr().) |
expr("RSI_14", 50) | float | Optional: the same value, but returns 50 instead of 0 during that brief start-up window before RSI_14 has produced any value. Use it only if a 0 at start would confuse your logic. |
hasExpr("RSI_14") | bool | True once that expression has a value. |
bar() fields (all float unless noted):
symbol (string), frame (string),
openBidPrice, openAskPrice,
closeBidPrice, closeAskPrice,
barMaxPrice, barMinPrice,
volume,
openDate (string), closeDate (string).