dear all,

i am trying to test intraday trading system with simple break out entry rule. 
but want to exit in steps as follow. can some one help me to code exit in 
following manner.

entry rule : h > hhv of last 20 bars after 13.30 pm.
stop loss : (at time of entry) previous 3 bar low.
exit 1 : if price moves by 2 times atr(14) value than trail first
         exit with high - atr(14)  for 50 % of positions.
exit 2 : if exit 1 is true, than trail remaining position by
         privious 3 bar low OR stop loss value which ever is high.
exit 3 : if market near closing time (ie 15.25 pm)

note atr(14) value for this purpose is value at time 13.30.(ie stationary 
figure). 

i am very weak at programming help in this area will be highly apriciated.

asit. 

Reply via email to