Suljettu

Sell /Closed all open position in UPSTOX using Amibroker AFL for AUTOTRADE

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.

Taidot: Amibroker Formula Language, C++ -ohjelmointi

Näytä lisää: modify open position mt4, open excel file using visual, open source accounting using, entry level chinese english translator open position, open zip files using aspnet, kannel open source gateway using j2ee andor, open outlook message using vbnet, hospital management open source project using php, open notepad exe using vb6 pass parameters, open text file using windows forms application, open web page using vba access, open position chat based csr, google position script using php, buy sell amibroker afl, amibroker afl buy sell signal, amibroker afl using, script open position buy sell time, amibroker afl dll using, automated trading using amibroker afl, buy sell signal amibroker afl

Tietoa työnantajasta:
( 0 arvostelua ) Muzaffarnagar, India

Projektin tunnus: #18996213

1 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_23% %project_currencyDetails_sign_sub_24% tähän työhön

rishiajmera

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 Lisää

₹5555 INR 5 päivässä
(0 arvostelua)
0.0