Sell /Closed all open position in UPSTOX using Amibroker AFL for AUTOTRADE
₹600-1500 INR
Lezárt
Kiadva ekkor: körülbelül 5 évvel ezelőtt
₹600-1500 INR
Teljesítéskor fizetve
I want this to use for automated trading in OPTIONS only
I am only trading in Call and Put option
That too i only Buy Option.
Something my AFL code gives the Buy signal ( Before closure of candle: Miss fire) . I want to keep that.
i.e. Buy 29000 CE : QTY 20
Again code give right signal : i.e. Buy 29000 CE : QTY 20
Now there are total 40 QTY :But when Sell Signal come only 20 QTY will be sold So balance 20 QTY still remain.
I WANT TO SELL all open position when SELL Signal comes Instead of Fixed qty
I am using AUTO TRADER for this
/********************************************************************
* SECTION 3 – BEGIN
* This section contains your code for placing orders.
********************************************************************/
_TRACE("Outside Place Order IF Block");
if ( LastValue(Buy) == True )
{
_TRACE("Inside Place Order BUY IF Block");
placeOrderUsingParams(AT_EXCHANGE, AT_SYMBOL, "Buy", AT_ORDER_TYPE, AT_QUANTITY, buyPrice, defaultTriggerPrice(), 1);
}
if ( LastValue(Sell) == True )
{
_TRACE("Inside Place Order SELL IF Block");
placeOrderUsingParams(AT_EXCHANGE, AT_SYMBOL, "Sell", AT_ORDER_TYPE, AT_QUANTITY, sellPrice, defaultTriggerPrice(), 1);
}
/********************************************************************
* SECTION 3 – END
********************************************************************/
How to replace that AT_QUANTITY with some Other code
I have done some research and found this link
[login to view URL]
'Second SqOff Open Positions
Fetch Positions
Check for Product = 'I' or 'D'
Check for Net Quantity <> 0
Place opposite order by [login to view URL]
Please let me know if you if you can help me out in this. and how much it going to cost me.
Hello,
Greetings!
With a proven track record of successful achievements, I am pleased to present my application for your consideration as a Freelancer.
I have developed many algo trading codes for Upstox and Zerodha APIs. I also have knowledge of trading in options, technical analysis, etc.
Please have a look at my profile and portfolio to get an idea of our capabilities and some previous work on freelancer.
This bid is approx. I’ll give you the exact cost and timeline once discussing in details with you.
Many Thanks & Regards,
Rishi A.