Modification BS Asia Breakout from Steve Hopwood

Ask your basic questions confidently here. Flaming is not allowed. Sympathetic help is the order of the day.
Post Reply
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Hello!
My name is Valentin.I am from Bulgaria.
I'm new in the forex and in this forum and I need a little help.I think,the EA BS Asia Breakout is good for my trading style and I was testing the ea in demo for 3 days.He works but seems have a problem.The range is the same for all 3 days.And after 60 minute sleeping the ea made a new trade.My question:How the ea can change the range every day and how he can make only one trade per day?
Cheers from Bulgaria :D
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: Modification BS Asia Breakout from Steve Hopwood

Post by phil_trade »

valinex wrote:Hello!
My name is Valentin.I am from Bulgaria.
I'm new in the forex and in this forum and I need a little help.I think,the EA BS Asia Breakout is good for my trading style and I was testing the ea in demo for 3 days.He works but seems have a problem.The range is the same for all 3 days.And after 60 minute sleeping the ea made a new trade.My question:How the ea can change the range every day and how he can make only one trade per day?
Cheers from Bulgaria :D
Hi Valentin

what do you mean by :
- The range is the same for all 3 days ?
- How the ea can change the range every day ?

how he can make only one trade per day? -> quite easy to code. Wainting for more infos

Phil
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Re: Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Hi Phil,
In the left on the chart I can see the ea screenmessage and the range don't change for 3 days testing.I want to see the Asia range hi-lo every day and want to have one trade for the day.Maybe this is not a big problem but i can't made it.
Valentin
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: Modification BS Asia Breakout from Steve Hopwood

Post by phil_trade »

valinex wrote:Hi Phil,
In the left on the chart I can see the ea screenmessage and the range don't change for 3 days testing.I want to see the Asia range hi-lo every day and want to have one trade for the day.Maybe this is not a big problem but i can't made it.
Valentin
Please send a ScreenShoot of your Global Variables (F3)
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Re: Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Hi Phil,
This is a copy of the ea code:
Valentin

you already post the EA. What I ask is a screeshoot of you Global variable. Press F3 to see them and do a printscreen
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Re: Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Hi,
This is a screenshot of Global variables.
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: Modification BS Asia Breakout from Steve Hopwood

Post by phil_trade »

valinex wrote:Hi,
This is a screenshot of Global variables.
OK try this version. It's OK at home
You do not have the required permissions to view the files attached to this post.
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Re: Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Thanks,
Tomorrow morning I will try the ea.

Best regards.
Valentin
valinex
Posts: 6
Joined: Thu Oct 25, 2012 2:57 pm

Re: Modification BS Asia Breakout from Steve Hopwood

Post by valinex »

Hi,
So sorry, I was running the ea but he don;t change the global variables.
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Modification BS Asia Breakout from Steve Hopwood

Post by fxdaytrader »

Was the ea running all over the time? Or did you switch it on manually?

look at line 1080 in the code:
//Read Asian session hi-low at the start of the London session
if (TimeHour(TimeLocal() ) == Europe_Start_Hour)

So, if your EA is not running during your local hour you set in "Europe_Start_Hour", then the ea will not update the globalvariables ...

Another approach -
I think that could rewritten using ibarshift and so on, see also for examples:
http://forum.mql4.com/52745#726722
http://forum.mql4.com/52750

or like that, just as an example:

Code: Select all

int Europe_Start_Hour = 12345;
int Europe_End_Hour = 12345;
int Asia_End_Hour = 4;


  if (TimeHour(TimeLocal() ) >= Europe_Start_Hour  && TimeHour(TimeLocal() ) <= Europe_End_Hour) { // inside european session

    int CloseBarShift = iBarShift(Symbol(),60,StrToTime(DoubleToStr(Asia_End_Hour,0)+":00"),False);

    int highest_bar = iHighest(Symbol(),PERIOD_H1,MODE_HIGH,9,CloseBarShift);
    double h = iHigh(Symbol(),PERIOD_H1,highest_bar);

    int lowest_bar = iLowest(Symbol(),PERIOD_H1,MODE_LOW,9,CloseBarShift);
    double l = iLow(Symbol(),PERIOD_H1,lowest_bar);
  }

Post Reply

Return to “EA's for Dummies.”