Jump to content

ISEA (Investiva Super Expert Advisor)


Recommended Posts

  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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? :?:

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...