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.

How to place a limit buy order below the current price?
 Post subject: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Mon 04 Mar, 2013, 14:37 

User rating: 0
Joined: Thu 06 Dec, 2012, 18:31
Posts: 6
Hello --

How would you suggest to place a limit buy order below the current price?

I am doing this via the JForex API.

This would be the equivalent of a stop entry buy order, but with the aim of minimizing slippage as for a limit buy entry order placed above the current price.

Thank you,
Robotrader


 
 Post subject: Re: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Mon 04 Mar, 2013, 15:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
For conditional orders see:
https://www.dukascopy.com/wiki/#Set_Conditional_Order
For fetching the current price:
https://www.dukascopy.com/wiki/#History_ticks/Last_tick


 
 Post subject: Re: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Mon 04 Mar, 2013, 16:05 

User rating: 0
Joined: Thu 06 Dec, 2012, 18:31
Posts: 6
Thanks for your reply. I don't think this page is answering my question though.

Let's say I am short and current price is 100.

I want to submit a buy limit entry with target price of 102.

How can I achieve this?

Thanks


 
 Post subject: Re: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Mon 04 Mar, 2013, 16:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide your example strategy and pinpoint which place you don't know how to implement.


 
 Post subject: Re: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Mon 04 Mar, 2013, 19:14 

User rating: 0
Joined: Thu 06 Dec, 2012, 18:31
Posts: 6
Thanks for your reply.

Current price is 99@101 and my position is flat.

If the price moves to 100@102, I want to place a limit order to buy at 102.

Apparently I can't set a limit buy entry order with target price above the current price.

However if I use a stop entry buy, the order will be a market order and therefore I can be filled at a price worse (higher) than 102.

Any help greatly appreciated.


 
 Post subject: Re: How to place a limit buy order below the current price? Post rating: 0   Post Posted: Tue 05 Mar, 2013, 08:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
By example strategy we mean the source code of how far you have got.


 

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