Issues regarding AFLs provided for AmiBroker connectivity to FyersBridge.

The assumption seems to be that people will exclusively use market orders in AmiBroker with FyersBridge. The AFLs provided only have the option to forward market orders. There is no option for other order types like CO/BO, which have higher leverages than plain market orders in intraday. All they have to do is introduce these orders in comments in AFLs, so that users can switch to what they would like to use. I had to extensively modify the given AFLs to properly send Cover Orders, which is not expected from a vendor selling a finished product. Please expressly take this issue with the service provider, so that a large number of users benefit.

Hi Rakesh,

I think there is some misunderstanding or confusion. The AFLs are not limited to market orders. The Buttons AFL allows full functionality including BO/CO.

https://mycoder.pro/apibridge/how-can-i-modify-afl-strategy-without-any-coding/#butn

Further, a lot of examples are given to encourage the users for BO/CO.

https://mycoder.pro/apibridge/signal-parameters-format-and-protocol-in-apibridge/

Also, I don’t think its possible for the vendor to introduce BO/CO in comments in all the AFLs. Because people prefer custom SL based on indicator or price action. Some may also require custom trail for SL. Since SL is mandatory in BO/CO, and people need custom SL, a generic code can never satisfy their requirement.

The AFL for button provides functionality to place Limit, Market, SLL and SLM orders only. Even if they would have provided functionality to place Cover Orders, that would not help if the strategy itself is not a discretionary system but an automated one, like mine is.

The AFLs provided for “Intraday”, “Separate Entry Exit”, “Buy Sell Double” and such codes were all having basic Market orders hard-coded, with no facility to provide stop loss or target points and the trigger price (the field was left blank). You could probably put across Limit orders by using the Bridge, but it wouldn’t help in case of CO/BO.

As to the examples given for CO in signal formats, it was actually wrong. When I used the exact same format, the orders ended up getting rejected, because the format given (trigger price | stop loss) was wrong and it is actually (stop loss | trigger price). I haven’t yet tested BO, so do not know what I will have to change there.

As to custom SL, that is another simple solution. In case the given “sl” was an array, you can just use a built-in function like LastValue() in AFL to convert the stop loss to an integer to place an order. It works even in the case of trailing stop loss. I used a chandelier based trailing stop loss for testing.

So yes, generic code can definitely be provided to cover most requirements.

Limit, Market, SLL and SLM are order types whereas Cover Order and Bracket Order are Product Types. I was able to place these orders with the buttons AFL. I do not see why this would not help in an automated system?

The correct format is same as given in the example i.e. (trigger price | stop loss).

Yes, the built-in functions maybe used for custom SL but the requirement may differ from user to user, thus, making it difficult to provide a generic code.