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.

unable to submit PLACE_BID or OFFER if market is better
 Post subject: unable to submit PLACE_BID or OFFER if market is better Post rating: 0   New post Posted: Mon 04 Oct, 2010, 13:43 

User rating: 0
Joined: Wed 28 Jul, 2010, 11:35
Posts: 3
I would appreciate some input here.

Now I know this is not conventional, but at present I'm trying to PLACE_BID/OFFER at a price that is currently worse than the current market price. My reasoning is to switch positions incase my orginal position was wrong. However it seems, (and I've tried all STOPS, LIMITS etc), that if I PLACE_BID/OFFER at a price that is worse than current market, the deal is done immediately because it asumes that the current price is better so it does the deal. I don't want this to occur unless the price reaches that BID price. Any suggestions?

eg EUR/USD currently 1.3710
PLACE_BID @ 1.3725
this gets dealt immediately

engine.submitOrder ("BuyOrder" + TickCount, myInstrument, IEngine.OrderCommand.PLACE_BID , amount, (tick.getBid() + dBuyOrderPrice), slippage, (tick.getBid() + dBuyOrderPrice) - stopLossPrice, (tick.getBid() + dBuyOrderPrice) + takeProfitPrice, lOrderExpiry);

Appreciate any input!


 
 Post subject: Re: unable to submit PLACE_BID or OFFER if market is better Post rating: 0   New post Posted: Tue 05 Oct, 2010, 11:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
You could try to check prices on every tick and place that Bid/Offer as soon as that price reaches a certain level.


 

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