Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Visual Jforex or History Tester doesn't retrieve candles right
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=85&t=56714
Page 1 of 1

Author:  alabaster [ Sat 15 Sep, 2018, 17:55 ]
Post subject:  Visual Jforex or History Tester doesn't retrieve candles right

I have simple strategy testing. In shift 4,3,2,1 candles if

4+3 are red and 2+1 are green buy
4+3 are green and 2+1 are red sell

Filtering is made for each candle by open price - close price . If open price < close price = green candle, if open price > close price = red candle.
I run backtesting and I see it opens trades when candles have other colors. Can you tell me how to fix this bug?

This
Image

Attachments:
test_strategy.vfs [46.72 KiB]
Downloaded 246 times
Chart_EUR_USD_4 Hours_snapshot.png [14.31 KiB]
Downloaded 565 times

  Page 1 of 1