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.

change existing stoploss
 Post subject: change existing stoploss Post rating: 0   New post Posted: Thu 13 Oct, 2011, 17:50 
User avatar

User rating: 0
Joined: Thu 13 Oct, 2011, 17:27
Posts: 21
Location: SwitzerlandSwitzerland
hello... i am wondering if someone could help me to express this in java:

assuming there is (exactly) 1 filled order around for this instrument i would like the strategy to
- exactly identify this order
- identify this orders direction (buy or sell)
- identify the stoploss of this order and
- change the stoploss to another value, lets say 10 pips towards the orders direction

could anyone please give me a hint how to write this in java?
can the whole thing be done within the onbar method?
...you see this java stuff is new for me :roll:
thanks for any help


 
 Post subject: Re: change existing stoploss Post rating: 0   New post Posted: Fri 14 Oct, 2011, 12:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please see the following example:
https://www.dukascopy.com/wiki/index.php ... _Stop_Loss
Find more about managing your orders here:
https://www.dukascopy.com/wiki/index.php ... s_overview


 
 Post subject: Re: change existing stoploss Post rating: 0   New post Posted: Fri 14 Oct, 2011, 16:29 
User avatar

User rating: 0
Joined: Thu 13 Oct, 2011, 17:27
Posts: 21
Location: SwitzerlandSwitzerland
oh cool thanks a lot :idea:
cheers


 

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