i cant find the code to make a quickorder, is it not possible? please help
i cant find the code to make a quickorder, is it not possible? please help
27 Sep 2017, 18:37
This is the code for a marketorder:
ExecuteMarketOrder(TradeType.Buy, Symbol, Volume, "BUY");
ExecuteMarketOrder(TradeType.Sell, Symbol, Volume, "SELL");
how is the code to make Quickorder?
Replies
BeardPower
27 Sep 2017, 22:50
RE:
w.b.z said:
This is the code for a marketorder:
ExecuteMarketOrder(TradeType.Buy, Symbol, Volume, "BUY");
ExecuteMarketOrder(TradeType.Sell, Symbol, Volume, "SELL");
how is the code to make Quickorder?
What do you mean by "QuickOrder"? Do you want to set the SL and the TP with your market order?
If so, the function signature is as follows:
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment)
@BeardPower
w.b.z
28 Sep 2017, 07:12
RE: RE:
Hi BeardPower
Thanks for youre reply
I^m sorry for misspelling, what i meant was instead of an Market order i want it to open a quicktrade, because then i can use the quickrade Menue to set TP/TS/SL etc.
as you can see I^m using this cBot: /algos/cbots/show/1653
it`s an Hedging & Scalping cBot, that works very well, but it opens trades as Marketorders. my Idea is to use the allready built in quicktrade execution settings to refine my Hedging cbot.
Plus; i`m testing this great Scalping & Hedging Widget: cTrader Trading Widget Collection /algos/cbots/show/1678
and this Widget also uses quicktrades to execute Orders, that means if I^m right, that the widget riskmanagement would define my hedging cBot..
What do you think?
@w.b.z
BeardPower
28 Sep 2017, 14:43
RE: RE: RE:
w.b.z said:
Hi BeardPower
Thanks for youre reply
You're welcome.
I^m sorry for misspelling, what i meant was instead of an Market order i want it to open a quicktrade, because then i can use the quickrade Menue to set TP/TS/SL etc.
There is no "quicktrade". There are only market-, limit- and stop-orders. The quick-trade panel is just setting a bracket order, which is using the same function call, mentioned in my previous post.
TP and SL are not sent/executed at the same time. They are executed after an order is created. You can see how and when they are created in the order ticket.
as you can see I^m using this cBot: /algos/cbots/show/1653
it`s an Hedging & Scalping cBot, that works very well, but it opens trades as Marketorders. my Idea is to use the allready built in quicktrade execution settings to refine my Hedging cbot.
I see. If you have access to the source code, you can modify it, so it's using limit or stop orders based on your criteria.
Plus; i`m testing this great Scalping & Hedging Widget: cTrader Trading Widget Collection /algos/cbots/show/1678
and this Widget also uses quicktrades to execute Orders, that means if I^m right, that the widget riskmanagement would define my hedging cBot..
The widget does not use quicktrades, as they are nonexistent. It's just a panel with various settings for your orders and the possibility to modify positions. Based on these settings, it's creating market-, limit- or stop-orders, brackets and so on.
What do you think?
The API does not support the usage of the quick-trade panel, which you see on the chart. If you want to create such a panel, you need to implement it yourself using the WPF API or any other UI framework.
I'm not using any panels or widgets for manual trading or bots, as cTrader already offers the functionality for scaling-in, scaling-out and managing your trades. HTH.
@BeardPower
w.b.z
27 Sep 2017, 18:46
what i mean is: i want to automate a cbot not with Marketorders but with quicktrades, so i can automate the ST/TK etc. is it Posible?
please, give me some help. really guys
@w.b.z