robotfx2 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Tanks you all are the best...... :P Quote Link to comment Share on other sites More sharing options...
thesecret Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Getting a spread that tight on the pairs in question seems tricky. Would it perhaps be easier to decompile and try to get the EA to work on EURUSD? edit: oops, too late :oops: EurUsd is tranding, EURCHF nad EURGBP are mostly ranging, so maybe it can work on EurUSD during Asian, but there are also big moves sometimes. Quote Link to comment Share on other sites More sharing options...
Abdulisback Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Getting a spread that tight on the pairs in question seems tricky. Would it perhaps be easier to decompile and try to get the EA to work on EURUSD? edit: oops, too late :oops: EurUsd is tranding, EURCHF nad EURGBP are mostly ranging, so maybe it can work on EurUSD during Asian, but there are also big moves sometimes. Hi, what about Usd/Jpy? My broker offers 3 pips only Usd/Jpy as well Quote Link to comment Share on other sites More sharing options...
⭐ fxknight Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I cleaned out the code which did not even have a Magic number.. and modified it with 2 new externals. They can be used as follows: extern int Pips4Limit = 2; // this is the distance at which the Limit orders are placed from the Ask/Bid extern int Pips2Make = 2; // this is how many pips the EA is looking for to make before closing the trades extern int Max.Spread = 2; // this is the max spread that it will accept to place trades; is spread is higher then it will not trade You can adjust those for your broker. Download URL: http://www.4shared.com/file/106861368/2126002c/ISEA4.html Good luck! Quote Link to comment Share on other sites More sharing options...
sgteo Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I cleaned out the code which did not even have a Magic number.. and modified it with 2 new externals. They can be used as follows: extern int Pips4Limit = 2; // this is the distance at which the Limit orders are placed from the Ask/Bid extern int Pips2Make = 2; // this is how many pips the EA is looking for to make before closing the trades extern int Max.Spread = 2; // this is the max spread that it will accept to place trades; is spread is higher then it will not trade You can adjust those for your broker. Download URL: http://www.4shared.com/file/106861368/2126002c/ISEA4.html Good luck! Thank you fxknight... cant wait to backtesting... Have u got time for IAPE codes too? :?: Quote Link to comment Share on other sites More sharing options...
newbee1713006039 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Thank you fxknight... cant wait to backtesting... Have u got time for IAPE codes too? :?: I do not understand why you want to do a backtest, do a forwardtest instead. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) thanks, fxknight. I agree the codes need some improvements. if I interpret the codes correctly the distance at which the limit orders are placed from Ask/Bid depends on the spread and the pips4limit factor, and also the stoplevel as stipulated by the broker... Quote Link to comment Share on other sites More sharing options...
⭐ fxknight Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I cleaned out the code which did not even have a Magic number.. and modified it with 3 new externals. They can be used as follows: extern int Pips4Limit = 2; // this is the distance at which the Limit orders are placed from the Ask/Bid extern int Pips2Make = 2; // this is how many pips the EA is looking for to make before closing the trades extern int Max.Spread = 2; // this is the max spread that it will accept to place trades; is spread is higher then it will not trade You can adjust those for your broker. Download URL: http://www.4shared.com/file/106861368/2126002c/ISEA4.html Good luck! Thank you fxknight... cant wait to backtesting... Have u got time for IAPE codes too? :?: Very soon I'll modify the IAPE. For now lets focus on ISEA and make it work. Please post feedback with any ideas to improve it. So far the logic has not been modified but it could use a direction/trend check so it places the limits in the direction of the market. Otherwise it will get killed. Good luck Quote Link to comment Share on other sites More sharing options...
newbee1713006039 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I cleaned out the code which did not even have a Magic number.. and modified it with 2 new externals. They can be used as follows: extern int Pips4Limit = 2; // this is the distance at which the Limit orders are placed from the Ask/Bid extern int Pips2Make = 2; // this is how many pips the EA is looking for to make before closing the trades extern int Max.Spread = 2; // this is the max spread that it will accept to place trades; is spread is higher then it will not trade You can adjust those for your broker. Download URL: http://www.4shared.com/file/106861368/2126002c/ISEA4.html Good luck! Hello fxknight, could you also implement the following code: #include <stderror.mqh> #include <stdlib.mqh> ... void scalping(double sl,double tp) { for(int i=0;i<OrdersTotal();i++) { if(!OrderSelect(i,SELECT_BY_POS)) continue; switch(OrderType()) { case OP_BUY: if(Bid>=OrderOpenPrice()+tp*Point) if(!OrderClose(OrderTicket(),OrderLots(),Bid,0,Green)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); if(Ask<=OrderOpenPrice()-sl*Point) if(!OrderClose(OrderTicket(),OrderLots(),Bid,0,Red)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); break; case OP_SELL: if(Ask<=OrderOpenPrice()-tp*Point) if(!OrderClose(OrderTicket(),OrderLots(),Ask,0,Green)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); if(Bid>=OrderOpenPrice()+sl*Point) if(!OrderClose(OrderTicket(),OrderLots(),Ask,0,Red)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); break; } } } thx newbee Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) newbee: what do the codes intend to do? Quote Link to comment Share on other sites More sharing options...
disbellj Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I'm running the "revealed" version on FXDD for the last hour and 20 minutes and have 4 trades so far - all profitable. It's doing better at scalping that I have been able to do LOL (well, not really, but if it fails, it will fail at the same places I fail, getting into the trend too late to make a few pips, or getting in too early when the last trend hasn't finished). Don Quote Link to comment Share on other sites More sharing options...
mxadam Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) FXCBS has TINY SPREADS! http://www.fxcbs.com - bigger min dep tho Quote Link to comment Share on other sites More sharing options...
adroure Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Don, can you post, pairs and set file please! Quote Link to comment Share on other sites More sharing options...
thesecret Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Modify ISEA that it closes trade as soon is in profit, no matter how much. Quote Link to comment Share on other sites More sharing options...
newbee1713006039 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) newbee: what do the codes intend to do? For Scalping, the problem with most of the brokers is in the "ordersend" function, like "Pending Orders". The brokers demand an order, which is at least one or a even few pips away from the market price (eg 5-10 PIPs). This can however easily circumvented by a large "T/P" in "Orders", and by a own "Scalping Program" the handles the "T/P". So, should the "T/P" be at +1 PIP, the trade should be closed by the EA simply by "Order Close". Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I think ISEA closes trade as soon as a profit of 2 pips is realised. May be make the "real" TP a setting option? Quote Link to comment Share on other sites More sharing options...
finimej Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) http://www.4***shared.com/file/106869156/2b838269/IS_4digits_cleaned.html educated and cleaned. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) newbee: I think the original ISEA is coded (cf Close_B and Close_S functions) to accomodate such situation. What do you think, guys? Quote Link to comment Share on other sites More sharing options...
⭐ fxknight Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) I cleaned out the code which did not even have a Magic number.. and modified it with 2 new externals. They can be used as follows: extern int Pips4Limit = 2; // this is the distance at which the Limit orders are placed from the Ask/Bid extern int Pips2Make = 2; // this is how many pips the EA is looking for to make before closing the trades extern int Max.Spread = 2; // this is the max spread that it will accept to place trades; is spread is higher then it will not trade You can adjust those for your broker. Download URL: http://www.4shared.com/file/106861368/2126002c/ISEA4.html Good luck! Hello fxknight, could you also implement the following code: #include <stderror.mqh> #include <stdlib.mqh> ... void scalping(double sl,double tp) { for(int i=0;i<OrdersTotal();i++) { if(!OrderSelect(i,SELECT_BY_POS)) continue; switch(OrderType()) { case OP_BUY: if(Bid>=OrderOpenPrice()+tp*Point) if(!OrderClose(OrderTicket(),OrderLots(),Bid,0,Green)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); if(Ask<=OrderOpenPrice()-sl*Point) if(!OrderClose(OrderTicket(),OrderLots(),Bid,0,Red)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); break; case OP_SELL: if(Ask<=OrderOpenPrice()-tp*Point) if(!OrderClose(OrderTicket(),OrderLots(),Ask,0,Green)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); if(Bid>=OrderOpenPrice()+sl*Point) if(!OrderClose(OrderTicket(),OrderLots(),Ask,0,Red)) Print("ERROR DESCRIPTION: ",ErrorDescription(GetLastError())); break; } } } thx newbee Here you go: http://www.4shared.com/file/106869633/8fcc7e5/ISEA4.html Good luck! Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) thanks finimej. Much easier to read and understand. I note that the "UseHourTrade" function is not properly implemented. Any way to correct it including adding a GMT offset functionality? Also, the MA is a LWMA, not SMA Lastly, I think the original code does not include spread in the equation. if (HasBuyOrder == false && HasBuyLimitOrder == false) { AveragePrice = MA - Spread - LimitTrailStep; SL = AveragePrice - stoploss; Quote Link to comment Share on other sites More sharing options...
victor21 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Thanks for your hard work !! could you modify the 5 digits version also ? thanks Quote Link to comment Share on other sites More sharing options...
jackdan Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) could you modify the 5 digits version also ? yes, we would more likely find these necesary spreads in 5 digits version... Quote Link to comment Share on other sites More sharing options...
mxadam Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) Anyone know why this is closing trades at like 0.5 pip profit ? eg sell 1.52026 closed at 1.52020 0.6 pip dif :S this is even worse, sell 1.52027 closed at 1.52025 0.2 pips :o thats rediculous Quote Link to comment Share on other sites More sharing options...
noplan88 Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) If it is close at 2 pips means 0 profit as the spread is 2? Quote Link to comment Share on other sites More sharing options...
bagol Posted May 21, 2009 Report Share Posted May 21, 2009 Re: [Req] ISEA (Investiva Super Expert Advisor) :mrgreen: :mrgreen: :mrgreen: very funny Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.