I've noticed that there is a problem with Forex Tester 2's Trailing Stop Loss feature when the Order Window's "Trailing stop/Activate on" is set to "Immidiately" (BTW "Immidiately" is a typo in the Order Window. It should be spelled "Immediately"). I tried searching the forum for any reports of this bug and could not find any (which surprised me), so here's my report:
When a Market Order is filled, the Trailing Stop for the Open Position should be equal to the Fill Price +/- the "Trailing stop, points". Instead Forex Tester 2 will set the Trailing Stop to an incorrect value equal to the Fill Price +/- some multiple of the "Step of change, points".
The same thing will happen to Pending Orders when they are filled except in the case where 2 specific conditions are met:
1. The Pending Order was placed with a "Trailing stop, points" value that is a multiple of the "Step of change, points".
2. The Pending Order is the last order that gets filled on a single tick.
When both of these conditions are true, the resulting Stop Loss for the filled order will be set to the correct value. Otherwise, the Stop Loss of the filled Pending Order will be set to an incorrect value in the same way that it is for Market Orders.
Example:
Place 16 Pending Orders with:
Currency Pair Spread = 2
The same Sell Stop "At Price" (1.0000),
"Trailing stop/Activate on" set to "Immidiately",
"Trailing stop/Parameters/Trailing stop, points" set to "16".
For each of these orders (1 through 16), set the "Trailing stop/Parameters/Step of change, points" to the values "1" through "16".
Place a 17th Pending Order, identical to the 16th.
In "Pause Mode" click the "Step by single tick" button until the Sell Stop "At Price" is reached and the 17 Sell Stop orders are all filled at once.
All of the resulting filled orders should have a Stop Loss value of 1.0016, but only the 17th order's Stop Loss is correct. If the 17th Pending Order's "Step of change, points" is set to 1, 2, 4, 8 or 16, the resulting Stop Loss will be set correctly to 1.0016 because the 2 specific conditions, described above, are true in this case:
1. The "Trailing stop, points" (16) is a multiple of each of the "Step of change, points" (1, 2, 4, 8, 16) AND
2. The 17th Pending Order is the last order that gets filled on the single tick down from 1.0001 to 1.0000.
Here are the results of all 17 orders:
Hope this helps debugging (if it's not already fixed)!
Trailing Stop Loss Bug
-
- Posts: 2
- Joined: Sat Nov 14, 2009 3:10 pm
- Location: Vancouver
Trailing Stop Loss Bug
- Attachments
-
- Currency Pair Spread = 2
SL = Stop Loss
FP = Fill Price = 1.0000
SOCP = Step of change, points
TSP = Trailing stop, points = 16 - FT2 TSL Test.JPG (37.64 KiB) Viewed 7987 times
- Currency Pair Spread = 2
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
-
- Posts: 151
- Joined: Tue Feb 24, 2009 1:03 pm
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Who is online
Users browsing this forum: No registered users and 17 guests