Hi all
can someone help me with an afl code to partially exit my position in 2 stages..
a) 50% when criterion one is me .. like if stochastics is over bought
b) 50%when criterion b is met ..like price is below ema 13...
OR if i b is met before condition a being met the whole 100% position should be squared off.
i tried a combination of applystops and setpositionsize...but is not working .. may be because i am not doing it properly..I will be very grateful if someone can help me ... i dont have much knowledge of afl.. Thanks in advance..
regards
Hardit
can someone help me with an afl code to partially exit my position in 2 stages..
a) 50% when criterion one is me .. like if stochastics is over bought
b) 50%when criterion b is met ..like price is below ema 13...
OR if i b is met before condition a being met the whole 100% position should be squared off.
i tried a combination of applystops and setpositionsize...but is not working .. may be because i am not doing it properly..I will be very grateful if someone can help me ... i dont have much knowledge of afl.. Thanks in advance..
regards
Hardit