Good EA but needs FridayClose to perform better

0
(0)
Name:
Good EA but needs FridayClose to perform better
Author: Nil (2010.06.21 11:06)
Downloaded: 4550
Download:
Good EA but needs FridayClose to perform better 1
 Expert.mq4 (7.9 Kb) View
Hi, I got this EA from a friend. It is based on the previous day's open and close price, but I would want it to close all trade on friday at a certain time.

Any help? You may add the FridayClose option and paste it on this thread.

I will appreciate this gesture for my good and the good of all who finds it helpful.

Better still, you may sent it to my email address at [email protected] or [email protected]. Thanks buddy!

15 comments: 1 2   To post a new comment, please log in or register

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

31.12.2013 10:22 ronald123

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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
06.10.2010 16:00 brayt

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);
}

18.07.2010 10:18 klam2404

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-

07.07.2010 16:18 BarrowBoy

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.

07.07.2010 16:16 brayt

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

07.07.2010 16:16 brayt

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

After some thought I'd leave off GBPUSD and NZDUSD from the list, IIRC they have too different a 'wave action' for this

So the list would be on the hourly chart for EURUSD, USDJPY, USDCHF, AUDUSD, EURJPY

And as always, lets be careful in the Forex

-BB-

04.07.2010 12:27 BarrowBoy

I've had some posts asking about the detail of this EA

Re Code Logic

((Open[t1]-Open[t2]) > Real.delta_S * Point))

t1 and t2 are numbers set at the top of the EA

So the EA is looking at the Open price t1 candles ago and comparing it to the Open price t2 candles ago
If the price drops by more than the set amount, the EA sells

The Real.xxxxxxx values are set by the function

HandleDigits()

to automatically handle full or sub-pip pairs/accounts
Re Optimization

The values for TakeProfit & StopLoss have been generated by back-testing, so the values may need changing from time to time
Maybe a better way would be based on a percentage of the daily range and so be self-optimizing, I dont know

Certainly the EA needs a certain minimum average daily range (iATR indicator) to work well
The time of day changes as mentioned below are also crucial
FWIW
-BB-

02.07.2010 17:51 BarrowBoy

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.

02.07.2010 00:25 bnbb2004

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-

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.