|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
It was created on some Russian forum. It was backtested and the backtesting curve was pinning (with great profit) with almost horizontal way. And it was named as a cool EA just to show the differences between backtesting and forward testing in MT3 in some commercial EAs.
It was done especially as an example with the note: "People please be carefully when you are buying something". Of course we should change ask and bid price. |
|
|||
|
Guys, is that a flaw or what?
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); Alert("Sell - ",Symbol,"\n","Date - ",TimeToStr(CurTime),"\n","Balance - ",Balance); }; 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); Alert("Buy - ",Symbol,"\n","Date - ",TimeToStr(CurTime),"\n","Balance - ",Balance); }; Exit; }; Shouldn't those marks be opposite? i mean if one ">" then the other is "<"?? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I was looking for some cool holy grail, but... | bluefish | Metatrader 4 | 8 | 08-05-2008 01:06 AM |
| Super Cool Forex Economic Calendar (Free) | Scorpion | News/Signal Trading | 18 | 04-02-2008 06:48 AM |
| cool toolz | Aleksandr Nevskiy | Indicators - Metatrader 4 | 6 | 06-22-2007 07:31 PM |
| Cool template | leeb | Metatrader 4 | 10 | 02-06-2007 12:56 AM |
| cool indicator | Ibn Fernas | Indicators - Metatrader 4 | 9 | 10-08-2006 02:56 PM |