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.

stop by the total of open orders , HELP ME
 Post subject: stop by the total of open orders , HELP ME Post rating: 0   New post Posted: Fri 14 Feb, 2014, 17:36 
User avatar

User rating: 0
Joined: Thu 13 Feb, 2014, 21:12
Posts: 11
Location: Brazil, Vitória-es
Hi my friends. I need your help.
For example:
Buy eurusd , vol 0.1 ,losing -100 usd
Buy gbpusd , vol 0.5 , losing -50 usd
Sell gbpjpy , vol 0.2 , losing -10 usd
I want a script to JForex which to get - 200 usd, all orders must be closed.It is sample , but i need help . I ´m new to Jforex.

searched the forum but have not been able to find.
Many thanks for the help from all of you


 
The Best Answer  Post subject: Re: stop by the total of open orders , HELP ME Post rating: 0   New post Posted: Fri 14 Feb, 2014, 17:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Dudulino_Hot_Plate wrote:
Buy eurusd , vol 0.1 ,losing -100 usd
Buy gbpusd , vol 0.5 , losing -50 usd
Sell gbpjpy , vol 0.2 , losing -10 usd
You submit market orders the following way (there is a strategy attached):
https://www.dukascopy.com/wiki/#Set_Market_Order
Dudulino_Hot_Plate wrote:
I want a script to JForex which to get - 200 usd,
See:
https://www.dukascopy.com/wiki/#Order_Management/Position_aggregated_profit/loss
Dudulino_Hot_Plate wrote:
all orders must be closed.
See:
https://www.dukascopy.com/wiki/#Order_Management/Print_and/or_close_orders_by_group
Dudulino_Hot_Plate wrote:
I ´m new to Jforex.
Start here:
https://www.dukascopy.com/wiki/#Use_in_JForex
We strongly suggest writing strategies in an IDE, which provides instant assistance on compile-time errors and other benefits, see:
https://www.dukascopy.com/wiki/#Use_in_Eclipse
or
https://www.dukascopy.com/wiki/#Use_in_NetBeans
You can also resort to learning JForex-API from our tutorial, see:
https://www.dukascopy.com/wiki/#Strategy_Tutorial


 

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