dear senior members,
i am trying wright afl for algorithimic trading with a foloing conitions:-
Buy=Cross( EMA(C,12), EMA(C,66));
Sell=Cross( EMA(C,66), EMA(C,12));
cover=Cross( EMA(C,13), EMA(C,60));
short =Cross( EMA(C,60), EMA(C,13));
but main probelum is that i want when
a. buy 10 quantitiy then sell 20 so that i am going to shrot side.
b. sell 10 quantitiy then buy 20 so that i am going to long side.
due to this we enjoy both side of trade profit.
so kindely reques to all please help me for wright this condition.
buy 10 then short 20 balance -10
cover 20 then sell 20 balance +10
thank you
with regards
i am trying wright afl for algorithimic trading with a foloing conitions:-
Buy=Cross( EMA(C,12), EMA(C,66));
Sell=Cross( EMA(C,66), EMA(C,12));
cover=Cross( EMA(C,13), EMA(C,60));
short =Cross( EMA(C,60), EMA(C,13));
but main probelum is that i want when
a. buy 10 quantitiy then sell 20 so that i am going to shrot side.
b. sell 10 quantitiy then buy 20 so that i am going to long side.
due to this we enjoy both side of trade profit.
so kindely reques to all please help me for wright this condition.
buy 10 then short 20 balance -10
cover 20 then sell 20 balance +10
thank you
with regards