jlcgarcia » Wed Nov 19, 2014 4:21 pm wrote:Hello friends,
I think there is a little bug in the OnInit() section of the code referred to the followiong lines:
Code: Select all
if (TradeComment == "") TradeComment = " "; if (Buy30Comment == "") Buy30Comment = "Buy30"; if (Buy20Comment == "") Buy20Comment = "Buy20"; if (Buy10Comment == "") Buy10Comment = "Buy10"; if (Sell90Comment == "") Sell90Comment = "Sell90"; if (Sell80Comment == "") Sell90Comment = "Sell80"; if (Sell70Comment == "") Sell90Comment = "Sell70";
They must be as follows:
Code: Select all
if (TradeComment == "") TradeComment = " "; if (Buy30Comment == "") Buy30Comment = "Buy30"; if (Buy20Comment == "") Buy20Comment = "Buy20"; if (Buy10Comment == "") Buy10Comment = "Buy10"; if (Sell90Comment == "") Sell90Comment = "Sell90"; if (Sell80Comment == "") Sell80Comment = "Sell80"; if (Sell70Comment == "") Sell70Comment = "Sell70";
Also, tell you that I have developed a simple multipair version of this EA, that I am trading live at the moment. Also the EA allows you to introduce two stochastics inputs (two stochastics with different parameters) and trade both at the same time. This multipair version (codenamed Zodiaco) is still a work in progress and I will not post it in this forum without the permission of SH.
Regards
José Luis
Hi,
excuse me again, but I find anothe bug referred to the following parameters,
Code: Select all
extern string sep1="================================================================";
extern string tch="---- Trade level choices and trading styles ----";
extern string tlc="-- Trade levels --";
extern bool Buy30=true;//Send a pending sell stop at < 30
extern string Buy30Comment="Buy30";
extern bool Buy20=true;//Send a pending sell stop at < 20
extern string Buy20Comment="Buy20";
extern bool Buy10=true;//Send a pending sell stop at < 10
extern string Buy10Comment="Buy10";
extern bool Sell90=true;//Send a pending sell stop at > 90
extern string Sell90Comment="Sell90";
extern bool Sell80=true;//Send a pending sell stop at > 80
extern string Sell80Comment="Sell80";
extern bool Sell70=true;//Send a pending sell stop at > 70
extern string Sell70Comment="Sell70";Independently, that you made them false, the program will consider them as true.
The modification affects to the LookForTradingOpportunities() function. I am posting here the text modified of this function for Steve to take a look.
Regards
José Luis