Here is what usually brokers do...
A quick backtest on Unitech
Setup details
Initial capital : 5000/-
Positions: Long & Short
Interval: 2min
Winners: 331 , Losers: 101
Profit: 230%
Duration: 10 trading sessions
The idea is very simple, just look at past 3 bars and continue your position unless you hit a SL
Following is the AFL for this system
Code:
Buy = Close > Ref( Close , -3 );
Sell = Close < Ref( Close , -3 );
Short = Close < Ref( Close , -3 );
Cover = Close > Ref( Close , -3 );