Experts: Good EA but needs FridayClose to perform better - page 2

 
gbrjnr: I run it on live account on EURUSD H1 only and on a VPS platform 24/7
BarrowBoy:
bnbb2004:

Nil,


What timeframe and pair have you tested this on? Thx for sharing! GL!


No idea on the origins but has some promise on the H1 chart of the majors plus EURJPY

-BB-

So far it's traded 3 wins. Majors + E/J on 1H chart.

 
gbrjnr: I run it on live account on EURUSD H1 only and on a VPS platform 24/7

Action is very thin this week, all my EA's are off....

FWIW

-BB-

 
BarrowBoy:
gbrjnr: I run it on live account on EURUSD H1 only and on a VPS platform 24/7

Action is very thin this week, all my EA's are off....

FWIW

-BB-


if(DayOfWeek() ==5 && !TradeAtFriday) {//friday
text2 = text2+" Friday Sleep...Not Trade!!";

CloseAll("All",0);
return(0);
}

 
Please, I will like to include a money management technique to my EA. The idea is to let only a fraction of your total margin be in use at any instant. For example, you can use only 50% of account; with 50% margin usage the EA risk only 50% of account in worst scenario. Any help as to how to generate this code and include it in my EA at http://www.mql4.com/users/brayt? You can find details of where this idea is applied at http://www.fxpromaker.com/advanced50.html. ANY HELP PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
klam2404:
BarrowBoy:
gbrjnr: I run it on live account on EURUSD H1 only and on a VPS platform 24/7

Action is very thin this week, all my EA's are off....

FWIW

-BB-


if(DayOfWeek() ==5 && !TradeAtFriday) {//friday
text2 = text2+" Friday Sleep...Not Trade!!";

CloseAll("All",0);
return(0);
}

Nice of you to share some useful code, but we're not all experts (yet), so would you, or somebody else, explain also
where to put it exatcly? I've inserted it in the 'int start() part of the ea, but get an error that there should be an extra parenthesis
at the end of the final 'return()'. However, when I add this character the error remains... Cheers

Reason: