Dukascopy
 
 
Wiki JStore Search Login

Help with this system, does not launch orders
 Post subject: Help with this system, does not launch orders Post rating: 0   Post Posted: Tue 29 Nov, 2016, 08:50 
User avatar

User rating: 6
Joined: Fri 28 Sep, 2012, 19:08
Posts: 14
Location: SpainSpain
I have done this system but in the test of Jforex, in a year, has not released any order, can anyone tell me the reason? Thank you!!!


Attachments:
hourly_ak_diario_buy.jfx [19.97 KiB]
Downloaded 101 times
hourly_ak_diario_buy.java [13.39 KiB]
Downloaded 105 times
hourly_ak_diario_buy.vfs [23.43 KiB]
Downloaded 123 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: Help with this system, does not launch orders Post rating: 0   Post Posted: Tue 29 Nov, 2016, 10:42 
User avatar

User rating: 1
Joined: Fri 11 May, 2012, 12:05
Posts: 12
Location: Romania, Iasi
I am still learning Visual Jforex and I try to learn from working examples not from scratch and I advise you to do the same.
Your strategy doesn't work because first you need to use "Get historical candle" first. Give it a name, then use the variables that are created automatically for your conditions in the left panel.

I would make it for you but I am busy debugging my strategy at the moment.


 
 Post subject: Re: Help with this system, does not launch orders Post rating: 0   Post Posted: Wed 30 Nov, 2016, 09:41 
User avatar

User rating: 6
Joined: Fri 28 Sep, 2012, 19:08
Posts: 14
Location: SpainSpain
OneGoodTrade wrote:
I am still learning Visual Jforex and I try to learn from working examples not from scratch and I advise you to do the same.
Your strategy doesn't work because first you need to use "Get historical candle" first. Give it a name, then use the variables that are created automatically for your conditions in the left panel.

I would make it for you but I am busy debugging my strategy at the moment.


Ok, Thanks OneGoodTrade!


 
 Post subject: Re: Help with this system, does not launch orders Post rating: 0   Post Posted: Wed 30 Nov, 2016, 15:38 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Your strategy did not produce any trade and that's normal as the way you're using get time unit block is wrong. This block parses any time stamp in hours, minutes, days of the month, etc. The reason of that is to offer the user the possibility to use any of these data individually; say you want to trade from 8 to 10am you would use hours only / if you need to trade from 8:30 till 11:30 then there is a need to retrieve both hours and minutes and use them in your IF blocks with your trading time condition.
Back to your strategy: current_htime gives you the current hour only: if the current Date& time is Wed 30th Nov.2016 15:35:25 then the block set to "Hours" will give you "15" which will never be equal to your "wtime" variable as you gave it the value 16:14:45 (if it would have been 16 for instance, the strategy will trade from 16:00 till 16:59)

Hope this is clear enough ...


 
 Post subject: Re: Help with this system, does not launch orders Post rating: 0   Post Posted: Thu 01 Dec, 2016, 17:28 
User avatar

User rating: 6
Joined: Fri 28 Sep, 2012, 19:08
Posts: 14
Location: SpainSpain
amine_chourou wrote:
Hi,

Your strategy did not produce any trade and that's normal as the way you're using get time unit block is wrong. This block parses any time stamp in hours, minutes, days of the month, etc. The reason of that is to offer the user the possibility to use any of these data individually; say you want to trade from 8 to 10am you would use hours only / if you need to trade from 8:30 till 11:30 then there is a need to retrieve both hours and minutes and use them in your IF blocks with your trading time condition.
Back to your strategy: current_htime gives you the current hour only: if the current Date& time is Wed 30th Nov.2016 15:35:25 then the block set to "Hours" will give you "15" which will never be equal to your "wtime" variable as you gave it the value 16:14:45 (if it would have been 16 for instance, the strategy will trade from 16:00 till 16:59)

Hope this is clear enough ...


Thanks amine_chourou!


 
 Post subject: Re: Help with this system, does not launch orders Post rating: 0   Post Posted: Fri 02 Dec, 2016, 11:35 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
You're welcome !


 

Jump to:  

  © 1998-2025 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