Jump to content
  • 0

Close at market not spread with RealProTime


tmattias

Question

2 answers to this question

Recommended Posts

Hi @tmattias,  there are only two prices, the buy and the sell price and the amount between is the spread. The 'market' price on your chart (if 'price on chart' is set to Mid) is just the half way point between the buy and sell price.

Price on chart can be set to either Bid, Ask or Mid, if you have gone short (sell) then to get out of the trade you need to buy so when the buy price hits your stop the trade is closed though the mid price won't have reached the stop.

To see that on the chart the 'price on chart' needs to be set to Bid not Mid. Conversely, to get out of a long/buy trade the sell price must be hit and to see that on the chart the price on chart must be set to Ask.

Most people can't be bothered flipping back and forward so just leave the price set on Mid and accept that the price on the chart won't quite get there before closing the trade.

 

Link to comment

If yo talking about proorder you need to add or subtract more then half the spread

Example

If you want to buy if price (midprice) exceed the 5 bar high and the spread 1 point you need to add 0.6 like this

donh = HIGHEST[5](HIGH)+0.6* pipsize
 
IF NOT LongOnMarket AND c1 THEN
BUY 1 Contracts AT donh  STOP
ENDIF

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...
us