bid or close price for expert advisor - newbie question

lukasjob

Newbie
Messages
1
Likes
0
Hello everyone, I'm confused about bid and open prices.

In order to develop a prediction algorithm I downloaded historical bid prices for the EUR/USD pair,
and I used the bid closing time to train the algorithm. Now I'd like to write a metatrader EA to test it.

In the expert advisor if I predict the bid price is going up or down can I then decide if I need to buy or sell? I realized mql4 has a built in object "Close" that is a series array that contains close prices of each bar of the current chart, should I use this close price instead of the bid price?

Having trained the algorithm with the bid closing prices, I would need to use the bid price (mql4 built in object Bid) to predict whether the bid price is going up or down and then do what? Is it correct if I buy when I predict the bid price is going up?

Thank you.
Luca
 
Top