activate stop immediately problem

neon

New Member
#1
Hi all,

In my backtesting I'm using ApplyStops (stopTypeProfit 3% and stopTypeLoss 3%).
I turn on activate stop immediately.

I see problem when test meets black candel and...
- Open==High and High > BuyPrice +3%
- Low<Close
- Close < BuyPrice +3%.

In this case transaction is opened and closed at one day and backtest give results as "profit".


do you have any idea to solve this problem ?
if something is not clear please let me know...

regards
neon
 

mastermind007

Well-Known Member
#2
Hi all,

In my backtesting I'm using ApplyStops (stopTypeProfit 3% and stopTypeLoss 3%).
I turn on activate stop immediately.

I see problem when test meets black candel and...
- Open==High and High > BuyPrice +3%
- Low<Close
- Close < BuyPrice +3%.

In this case transaction is opened and closed at one day and backtest give results as "profit".


do you have any idea to solve this problem ?
if something is not clear please let me know...

regards
neon
You've missed a check box that reads "Allow same bar exit/entry"!

Keep it blank.
 

neon

New Member
#3
Mastermind, Thank You for your mail.
It should work but in my case return the same.

please see image below:
red line - it is buyprice
green line - it is max stop loss
blue line - it is profit target


...and backtest return "Long (profit)" (with profit according to ApplyStop) with "allow same bar exit/entry - on" and "allow same bar exit/entry - off" - the same.




http://ifotos.pl/zobacz/01png_nqaaxhp.png/
 

Similar threads