Bentrix Docs
HomePricingDashboard

C++: the trade panel

Every method of client.trading in the C++ SDK.

trade_panel_show#

Show the trade panel · tool trade_panel_show

scope: labplan: plussince 1.0.0

Brings the trade panel to a market of a workbench, pinned to it when pin asks, as the chart bar's trade button, F9 and Market Watch's New order do. The panel is the person's; this shows it. Answers the panel's market.

Declaration

client.trading
Json trade_panel_show(const TradePanelShowArgs &args)

Parameters

NameTypeWhat it is
benchstd::stringrequiredThe workbench's uri.
symbolstd::stringrequiredThe market the panel shows.
pinbooloptionalKept on this market whatever chart has the focus.

Returns

Json — the tool’s answer as a Json value.

What it answers

Answers the panel's market.

Example

client.trading.trade_panel_show(TradingApi::TradePanelShowArgs(bench, "SYN-DOCS"))

trade_profile#

Save, load or forget a market's trade profile · tool trade_profile

scope: labplan: plussince 1.0.0

Saves a market's risk, stop and target as its profile, loads it into the trade panel's draft, or forgets it, as the panel's profile menu does; a profile the panel would refuse is refused in its words. Answers the market's profile.

Declaration

client.trading
Json trade_profile(const TradeProfileArgs &args)

Parameters

NameTypeWhat it is
actionstd::stringrequired
symbolstd::stringrequired
reward_ratiodoubleoptionalWith save: the target as a multiple of the stop.
risk_pctdoubleoptionalWith save: the risk in percent of the balance.
stop_pointsdoubleoptionalWith save: the stop's distance in points.

Returns

Json — the tool’s answer as a Json value.

What it answers

Answers the market's profile.

Example

client.trading.trade_profile(TradingApi::TradeProfileArgs("…", "SYN-DOCS"))

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed