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.

Manupulating orders from button
 Post subject: Manupulating orders from button Post rating: 0   New post Posted: Mon 06 Jul, 2015, 17:55 

User rating: 1
Joined: Tue 24 Apr, 2012, 13:41
Posts: 39
Hello,

I have created very simple strategy (see MoveSLPlain.java file) that, after being run, (1) shifts stop-loss level and (2) stops.
Attachment:
File comment: Plain strategy
MoveSLPlain.java [1.97 KiB]
Downloaded 66 times


Later I have rewritten the strategy for JButton use (see MoveSL.java). Unfortunately the strategy stopped working: (1) it prints order information and (2) does not shift stop-loss level :?
Attachment:
File comment: Strategy with JButtons
MoveSL.java [3.7 KiB]
Downloaded 75 times


What might be the problem?

Regards,
FXer


 
 Post subject: Re: Manupulating orders from button Post rating: 0   New post Posted: Mon 06 Jul, 2015, 23:08 

User rating: 1
Joined: Tue 24 Apr, 2012, 13:41
Posts: 39
Ok, to cut the long story short, after I've studied archive topics, I started to study:
https://www.dukascopy.com/wiki/#Threading

;-)

FXer


 

Jump to:  

cron
  © 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