afl help plz!!

labdhi

Active Member
#1
i am trading with 2 lots ,
using an afl for trading it ,
buy = condition1
sell =condition2
short=condition3
cover=condition4

this is current scenerio where my both lots get traded together ,
now if we want to buy both lots at condition1 but want to sell one lot at 150 point profit and another at our condition2;

short both lots at condition3 but cover one lot at 150 point profit and another at our condition4 ;

also can we optimize our fixed profit amount of one lot of seel and cover ......


for this what code will be added ???

summury: want to add lines for profit booking of 1 lot at a fixed price ...

so on backtesting it reflect correct result .

senior's plz help me to add lines for fixed lot condition .
 

labdhi

Active Member
#3
ApplyStop(1,2,150); //Profit Stop
is this right way ??
if yes, than how to optimize it ?

par1=optimize("par1",50,10,200,1);
ApplyStop(1,2,par1); //Profit Stop

is this optimize way is correct ?

if yes , than how to write code in such a way that in our two trading lots , only one lot get profit according to this method and another one by our regular condition ......
 

Similar threads