stfl / backtestd-expert

8 stars 4 forks source link

Failed to open trade [Invalid stops] #4

Open stfl opened 3 years ago

stfl commented 3 years ago

when running on H1 I am seeing this:

2020.10.01 16:14:39.128 2013.01.21 18:00:00   failed instant sell 0.71 AUDNZD at 1.25561 sl: 1.25756 [Invalid stops]

Is the stop loss too close? What is the spread at that time?

I need to catch this errors at runtime!

stfl commented 3 years ago

The distance between Entry price and the SL needs to be at least the point value.. so at least a distance of 0.0001 or 0.00001 this might be the reason.. I did not debug this because I only saw it when trying to run on the 1 hour chart...