|
Help with this system, does not launch orders |
WallStreetBlog
|
Post subject: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Tue 29 Nov, 2016, 08:50
|
|
User rating: 6
Joined: Fri 28 Sep, 2012, 19:08 Posts: 14 Location: SpainSpain
|
|
|
|
 |
OneGoodTrade
|
Post subject: Re: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Tue 29 Nov, 2016, 10:42
|
|
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.
|
|
|
|
 |
WallStreetBlog
|
Post subject: Re: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Wed 30 Nov, 2016, 09:41
|
|
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!
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Wed 30 Nov, 2016, 15:38
|
|
Visual JForex expert at Dukascopy |  |
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 ...
|
|
|
|
 |
WallStreetBlog
|
Post subject: Re: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Thu 01 Dec, 2016, 17:28
|
|
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!
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Help with this system, does not launch orders |
Post rating: 0
|
Posted: Fri 02 Dec, 2016, 11:35
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|