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

Weird Issues With My Strategy Or Builder Bugs?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=56711
Page 1 of 1

Author:  alabaster [ Fri 14 Sep, 2018, 20:42 ]
Post subject:  Weird Issues With My Strategy Or Builder Bugs?

I've coded a strategy using 4 previous candles ( shift4,shift3,shift2,shift1)

If shift4, shift3 are green and shift2, shift1 are red it should sell on the close of shift1 or open of the new current candle.
If shift4, shift3 are red and shift2, shift 1 are green it should buy on the close of shift1 or open of the new candle.
Image

To filter I've used: Green = open < close ; Red = open > close

Issue 1:

However it opens trades randomly, on the chart attached it can be seen it opens trades after 1 red, 2 green and 1 red despide the way I coded it.

Issue 2:


It opens trades at other times and at other prices. It should open on the close of candle shift 1 not at other times/prices.


Issue 3:


I think this is caused by my lack of coding skills with Visual Jforex: I'm trying to set a trailling stop as soon as the transaction is in profit in 25 pips, but I've not managed.


Issue 4:


Is there a way to close all open transactions Friday at 20.00 GMT no matter of profit,losses?


Thank you for your input. :mrgreen:

Attachments:
test_strategy.vfs [46.72 KiB]
Downloaded 244 times
test_strategy.java [21.94 KiB]
Downloaded 254 times
Chart_EUR_USD_4 Hours_snapshot.png [14.31 KiB]
Downloaded 371 times

Author:  vadim_berezhnoj [ Tue 11 Dec, 2018, 18:06 ]
Post subject:  Re: Weird Issues With My Strategy Or Builder Bugs?

Hello.

Your strategy works on 10 Minutes period, but on the picture above we are looking at 4 Hour period.

Kind regards, Support Team.

  Page 1 of 1