Dukascopy
 
 
Wiki JStore Search Login

check next candle close after opening a position
 Post subject: check next candle close after opening a position Post rating: 0   New post Posted: Fri 05 Apr, 2019, 22:46 

User rating: 0
Joined: Wed 24 Jan, 2018, 19:56
Posts: 7
Location: GermanyGermany
Hello,

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.

Image

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.


Attachments:
Example12.vfs [35.16 KiB]
Downloaded 215 times
candle compare2.PNG [5.26 KiB]
Downloaded 351 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: check next candle close after opening a position Post rating: 0   New post Posted: Mon 15 Apr, 2019, 17:35 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello.

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

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


Attachments:
Example13.vfs [33.83 KiB]
Downloaded 192 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com