Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

stoploss problem
 Post subject: stoploss problem Post rating: 0   New post Posted: Fri 11 Jan, 2013, 15:29 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
Dear support,
I created attached strategy by Lorenc Software Strtegy Developer.
When I backtested it by historical tester it ran ok.
By local run it ever stopped when it was signal for long or short trade and appear to this message:


2013-01-04 11:45:00 com.dukascopy.api.JFException: Stop loss orders are not allowed on global accounts @ jforex.CCItrader.onBar(CCItrader.java:135)

Why please?


 
 Post subject: Re: stoploss problem Post rating: 0   New post Posted: Fri 11 Jan, 2013, 17:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It seems your strategy does not support a global account. To run it, you have to change your account to a regular one (i.e. supporting a hedge mode).

Please resort to your strategy developer in case of strategy errors.


 
 Post subject: Re: stoploss problem Post rating: 0   New post Posted: Sat 12 Jan, 2013, 08:48 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
API Support wrote:
It seems your strategy does not support a global account. To run it, you have to change your account to a regular one (i.e. supporting a hedge mode).

Please resort to your strategy developer in case of strategy errors.





How can I change global account to a regular one please?


 
 Post subject: Re: stoploss problem Post rating: 0   New post Posted: Sat 12 Jan, 2013, 22:15 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please contact your account manager.


 
 Post subject: Re: stoploss problem Post rating: 0   New post Posted: Mon 14 Jan, 2013, 17:35 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
API Support wrote:
Please contact your account manager.


Now I tried different attached strategy on regular account-allowed hedging .Now the strategy opened a postion and immediately after opening position with SL and TP the strategy stopped and appears to me this messages:

2013-01-14 16:07:18 com.dukascopy.api.JFException: ID of order is null. @ jforex.Psar.onMessage(Psar.java:141)

2013-01-14 16:07:18 Stopping "Psar" strategy at 2013-01-14 16:07:18.745 GMT on the local computer

2013-01-14 16:07:18 Strategy "Psar" is stopped at 2013-01-14 16:07:18.757 GMT on the local computer with parameters "indicator_sarshift0_attribute_acceleration"=[0.02], "indicator_sarshift0_attribute_maximum"=[0.2], "indicator_sarshift1_attribute_acceleration"=[0.02], "indicator_sarshift1_attribute_maximum"=[0.2], "Trading days - MONDAY"=[true], "Trading days - TUESDAY"=[true], "Trading days - WEDNESDAY"=[true], "Trading days - THURSDAY"=[true], "Trading days - FRIDAY"=[true], "Trading days - SATURDAY"=[false], "Trading days - SUNDAY"=[false], "Trading hours - 0"=[true], "Trading hours - 1"=[true], "Trading hours - 2"=[true], "Trading hours - 3"=[true], "Trading hours - 4"=[true], "Trading hours - 5"=[true], "Trading hours - 6"=[true], "Trading hours - 7"=[true], "Trading hours - 8"=[true], "Trading hours - 9"=[true], "Trading hours - 10"=[true], "Trading hours - 11"=[true], "Trading hours - 12"=[true], "Trading hours - 13"=[true], "Trading hours - 14"=[true], "Trading hours - 15"=[true], "Trading hours - 16"=[true], "Trading hours - 17"=[true], "Trading hours - 18"=[true], "Trading hours - 19"=[true], "Trading hours - 20"=[true], "Trading hours - 21"=[true], "Trading hours - 22"=[true], "Trading hours - 23"=[true]. Reason: Stopped by Engine

Why stopped ever after opening position please?


Attachments:
Psar.jfx [31.4 KiB]
Downloaded 290 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: stoploss problem Post rating: 0   New post Posted: Mon 14 Jan, 2013, 17:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please resort to your strategy developer in case of strategy errors.


 

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