|
New Digital,
Here is a portion of the code:
if iRSI(15,2)>iRSI(14,1) then
{
SetOrder(OP_SELL,Max(0.1,Floor(FreeMargin/500.)/10.),Ask,0,Ask+StopLoss*Point,0,Blue);
};
if iRSI(15,2)>iRSI(14,1) then
{
SetOrder(OP_BUY,Max(0.1,Floor(FreeMargin/500.)/10.),Bid,0,Bid-StopLoss*Point,0,Red);
};
I don't think a broker will let you buy at the bid adn sell at the ask, unless you are trading the ECNs, and I am not sure if there is a MT3 broker using us to use ECNs. I wonder if you interchange the bid and ask in the program and run it then how does it perform?
Maji
|