|
How to use conditions TRUE/FALSE? |
OneGoodTrade
|
Post subject: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Mon 28 Nov, 2016, 15:48
|
|
User rating: 1
Joined: Fri 11 May, 2012, 12:05 Posts: 12 Location: Romania, Iasi
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Mon 28 Nov, 2016, 16:40
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
I've noticed a "strange way" to filter candle's period and instrument which looks logically correct but I think it was generating inconsistencies at the level of Jforex testing engine as well as live run. I've modified this as you can see in the attached version and made a quick test on live run mode. It looks okay but I'll let you test this thoroughly.
Thanks
Attachments: |
StrategyTest1_V1.vfs [46.3 KiB]
Downloaded 163 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.
|
|
|
|
|
 |
OneGoodTrade
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Tue 29 Nov, 2016, 09:14
|
|
User rating: 1
Joined: Fri 11 May, 2012, 12:05 Posts: 12 Location: Romania, Iasi
|
Half of the problem is solved. The fix for limiting the open positions worked, thank you.
To be able to understand the other half of the problem I simplified the strategy once more.
What I want the strategy to do now is this:
If the Bid is above MY_PRICE then SELL at the market.
It doesn't work. The strategy opens the position after a few seconds ignoring the condition imposed. Did I do something wrong? Thank you again.
Attachments: |
StrategyTest1_V1c.jfx [20.28 KiB]
Downloaded 158 times
|
StrategyTest1_V1c.vfs [44.67 KiB]
Downloaded 153 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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Tue 29 Nov, 2016, 11:42
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
Thank you for the additional information. I've noticed this issue as well. I'll get back to you asap.
Cheers
|
|
|
|
 |
OneGoodTrade
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Fri 16 Dec, 2016, 21:22
|
|
User rating: 1
Joined: Fri 11 May, 2012, 12:05 Posts: 12 Location: Romania, Iasi
|
Any news on this? Or maybe other ways to accomplish the same thing?
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Mon 19 Dec, 2016, 10:49
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
Sorry for the late answer. Do you still face the same issue ? I've tested this and results seems to be okay on VJF vs JF. Do you test using Jforex 3 or 2 ?
Thanks
|
|
|
|
 |
OneGoodTrade
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Mon 19 Dec, 2016, 14:08
|
|
User rating: 1
Joined: Fri 11 May, 2012, 12:05 Posts: 12 Location: Romania, Iasi
|
Hi, Yes, the problem is still there. I tested Jforex2 and Jforex3.
I'll write my steps for testing it: When I start the strategy I set the parameter RedPrice to a price above current market price. The strategy should sell when the Last Bid gets there.
Actual results: the strategy opens a market sell order immediately after I start the strategy instead waiting for RedPrice to be touched.
Yes I know it works in VJF ... but I can't use it for live trading.
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Tue 20 Dec, 2016, 17:28
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Alright, I'm currently having random results with the same strategy but only on real time run. I'll check this tomorrow and update you.
Thanks
|
|
|
|
 |
amine_chourou
|
 |
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 18:00
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, We found the issue: The problem comes from the way the strategy is subscribing to the traded instrument: In this example is takes the candle's instrument which is okay at the level of Visual Jforex. But in Jforex, this is not enough as the strategy subscribes to all instruments thus it takes "Last tick price "from another pair and compare it with 0.756 and once the condition is verified it opens a trade on AUDUSD. TO avoid that you have to filter properly the traded instrument as follow: 
Attachments: |
InstrSubs.JPG [98.87 KiB]
Downloaded 343 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.
|
|
|
|
|
 |
OneGoodTrade
|
Post subject: Re: How to use conditions TRUE/FALSE? |
Post rating: 0
|
Posted: Wed 28 Dec, 2016, 09:43
|
|
User rating: 1
Joined: Fri 11 May, 2012, 12:05 Posts: 12 Location: Romania, Iasi
|
Thank you very much Amine.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|