Query regarding visual chart data produced by strategy tester

 

Hi there,

Can any body please clarify if the prices shown on the order number arrow 'markers', which are displayed in the visual charts produced by strategy tester when testing an EA, represent bid and ask prices at the moment in historical prices when the trade was executed by the tester? (see picture below):

If this is true, and these prices are the bid and ask, then why does my trade open order buy criteria produce the following StopLoss and TakeProfit orders, at prices which are further away than specified by the order opening OrderSend command:


1 2008.01.02 17:00 buy 1 0.10 (Price)1.47268 (S/L)1.47220 (T/P)1.47270 0.00 10000.00

2 2008.01.02 17:00 t/p 1 0.10 (Price)1.47270 (S/L)1.47220 (T/P)1.47270 0.20 10000.20

The OrderSend code:

OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Bid-30*Point,Bid+20*Point);


I calculate using the above code and an bid price of 1.47235? (if this is actually the bid price at that moment), the S/L should be 1.47205, and T/P 1.47255. Am I overlooking something simple?


The bar which the tester used to open the trade with is shown below:


Any help would be greatly appreciated.


Wilbur.

 
It was BUY order, Ask=1.47268 Bid=1.47235.
 
Roger:
It was BUY order, Ask=1.47268 Bid=1.47235.

Thanks for replying Roger.

That's what I thought.

So why are the Ask price and Bid price so widely spread? Is this normal?

And the S/L and T/P prices I was given were not accurate, based on the order request. This can't be slippage can it?

My calculations were Bid=1.47235, therefore, S/L is 1.47235*0.00001=1.47205, but I got S/L=1.47220?

Very strange, but I'm sure there's a logical reason. Maybe i'm stupid!

 

S/L is 1.47235*0.00001=1.47205, but I got S/L=1.47220?

Are you sure you are right?

 
Roger:

S/L is 1.47235*0.00001=1.47205, but I got S/L=1.47220?

Are you sure you are right?

Hey Roger.

I still get 1.47205.

S/L is Bid-30*Point, which is to my calculation is: 1.47235-(30*0.00001)=1.47205.

Correct me if I'm wrong.

Also why is the spread so wide between bid and ask?

Reason: