Thread: 'Cool' EA
View Single Post
  #7 (permalink)  
Old 05-22-2006, 01:25 AM
Maji Maji is offline
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
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
Reply With Quote