hello @Rashi Razdan @Shivam Gaba
example
if I send long order @100 with SL98 and TGT 103 from my mt5 to API bridge. now, if I plan to exit this ongoing trade at 101.5 then how should I cancel the pending orders? I didn't find any example in documents regarding this.
@Shivam Gaba
In paper trading how many TAGS I CAN CREATE and if multiple can be created then how to do it?
@Shivam Gaba @Rashi Razdan
in APIBRIDGE I select MARKET ENTRY AND MARKET EXIT and give this a tag of STG1.
now from mt5, i try to send market buy{maekrt LE} + sl{limit LX} +tp{limit LX}
BUT ON API bridge IT shows all 3 orders type=MARKET.
HOW TO SOLVE THIS
I am trying to contact algoji from 3 days but not able to talk to anyone.
Hi @hiren parekh
Since you are sending SL and TGT along with the entry, the product type will be BO (Bracket Order).
BO places both a stop loss and target to exit the position created with another order.
Since BO and CO already have exit orders, you should send them only with entry signals i.e. LE and SE
There is no way to exit or modify a BO/CO once it is sent via LE/SE in APIBridge. Because it already contains the exit order when you first send it.
You should not send BO/CO with LX/SX from APIBridge, because it falls out of logic with how Signals work. If you use LX/SX with product type BO/CO, the Bridge will simply treat it as the usual exit of MIS/NRML.
Please read more about it here, https://mycoder.pro/apibridge/exiting-bracket-orders-and-cover-orders/?highlight=bracket
2. To create multiple Tags, Go to application Settings > Symbol Settings. Here you can provide strategy tags separated by commas.
3. By default, Settings in APIBridge will override the parameters sent in the signal. To overcome this you are required to bye-pass symbol settings as shown at the bottom of the below link. This is recommended only for advanced users.
What are Symbol Settings? - MyCoder
@Shivam Gaba
"There is no way to exit or modify a BO/CO once it is sent via LE/SE in APIBridge. Because it already contains the exit order when you first send it."
because of this only I am not using them.
@hiren parekh
Your approach is correct with respect to the signal types and order types. You just need to bypass symbol settings as shared in the above reply.
Ideally, the order flow will be like this:
1. LE (Market)
2. LX (SLL) - for stop loss
3. LX (Limit)- for target - this will cancel the pending SL order by signal rules.
4. LX (Limit) - for modified target - this will cancel the pending target order by signal rules.
Let me know if you still have any doubts.
@Shivam Gaba
thanks
@Shivam Gaba
@hiren parekh - Please add the APIBridge folder to the exclusions list. The latest windows update has caused this. We are working to resolve this.
@Shivam Gaba
is there any way only order type can be overridden?
@hiren parekh Yes, please follow the procedure shared in my initial reply.
@Shivam Gaba
thanks
@Shivam Gaba
if I don't override signal and want to send this flow
1. LE (Market)
2. LX (SLL) - for stop loss
3. LX (Limit)- for target - this will cancel the pending SL order by signal rules.
but I won't be able to because the bridge has only entry and exit
if the bridge had entry/exit1/exit2 this would be possible, right?
am I right or missing something here.
@Shivam Gaba
in simple word what I want end result is ...
click of a button with send entry order/SL/tp with the same tag.
so example long entry
LE{market}-ENTRY
LX{SLL}-STOP
LX{LIMIT}-TP {but sending this is problem}
This will be possible after bypassing symbol settings.
ok got it
hello @Shivam Gaba
if I bypass the signal setting and send a signal to API bridge can you help me by verifying the details I AM sending are proper or need more input?
Send Limit Order in copper Futures to create Short position:
Algoji_Signal(“6”, “SE”,” COPPER MAR FUT”,” Limit|IMIS”,””,”705″,”1″,”FUTCOM”,”STG1″);
Yes, it is correct except for the syntax in the order type. It should be "Limit|MIS"
Exchange is not important?
@Shivam Gaba
can you please chk anything wrong in this override signal..
Send Limit Order in copper Futures to create ShortLimit position:
SELL LIMIT(“6”, “SE”,” COPPER MAR FUT”,” "Limit|MIS”,””,”705″,”1″,”FUTCOM”,”STG1″);
stop loss (“6”, “SX”,” COPPER MAR FUT”,” "SLL|MIS”,””,”706″,”1″,”FUTCOM”,”STG1″);
target (“6”, “SX”,” COPPER MAR FUT”,” "Limit|MIS”,””,”700″,”1″,”FUTCOM”,”STG1″);
@hiren parekh - It looks correct apart from an extra " before order type.