Jump to content
  • 0

Close at market not spread with RealProTime


tmattias

Question

2 answers to this question

Recommended Posts

  • 0

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
  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
      22,148
    • Total Posts
      93,040
    • Total Members
      42,536
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    anyiddo
    Joined 07/06/23 19:48
  • Posts

    • Look Ahead to 8/6/23: eurozone, Japan growth; US initial jobless claims; Crest Nicholson, MITIE earnings Growth is in focus as investors await eurozone and Japan GDP data, plus keep an eye out for US initial jobless claims ahead of the Fed monetary policy meeting next week. Crest Nicholson and MITIE post results. Angeline Ong | Presenter, Analyst and Content Editor, London | Publication date: Wednesday 07 June 2023              
    • With the price of Brent having failed between $77.50 and $78.50 three consecutive times in the past month, we will go short at $76.70 with a downside target at $72.00 and a stop-loss at $78.55 on a daily chart closing basis. Axel Rudolph FSTA | Senior Financial Analyst, London | Publication date: Wednesday 07 June 2023
    • Charting the Markets: 07 June Indices grind higher. EUR/USD, GBP/USD and USD/CAD struggle to make headway. And WTI and gold trade in low volatility while wheat slips back. Axel Rudolph FSTA | Senior Financial Analyst, London | Publication date: Wednesday 07 June 2023                       This is here for you to catch up but if you have any ideas on markets or events you want us to relay to the TV team we’re more than happy to.
×
×
  • Create New...