Dukascopy Support Board

check next candle close after opening a position
Page 1 of 1

Author:  AU7SZ [ Fri 05 Apr, 2019, 22:46 ]
Post subject:  check next candle close after opening a position


after opening a long position I would like to compare this candle with just the next candle. If the candle following my longtrade closes below, close my position.


I attached a simplified strategy. I can't find my mistake.

I know that I could connect the "open positions.positions amount" = 1 to Gethistoricalcandle but in my main strategy I use multiple currencies and so this is not a possible solution for me. Is there any other solution?

Thank you for your help.

Example12.vfs [35.16 KiB]
Downloaded 102 times
candle compare2.PNG [5.26 KiB]
Downloaded 160 times

Author:  vadim_berezhnoj [ Mon 15 Apr, 2019, 17:35 ]
Post subject:  Re: check next candle close after opening a position


Please check the example in the file and the manual for other questions.

https://www.dukascopy.com/vfhelper/down ... _locale=EN

Example13.vfs [33.83 KiB]
Downloaded 92 times

  Page 1 of 1