stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Modification BS Asia Breakout from Steve Hopwood
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=912
Page 1 of 1
Author:  valinex [ Sun Oct 28, 2012 4:28 pm ]
Post subject:  Modification BS Asia Breakout from Steve Hopwood

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
Author:  phil_trade [ Thu Nov 08, 2012 1:05 pm ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

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
Author:  valinex [ Sun Nov 11, 2012 6:31 pm ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

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
Author:  phil_trade [ Sun Nov 11, 2012 6:42 pm ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

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)
Author:  valinex [ Mon Nov 12, 2012 2:18 pm ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

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
Author:  valinex [ Tue Nov 13, 2012 9:03 am ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

Hi,
This is a screenshot of Global variables.
Author:  phil_trade [ Tue Nov 13, 2012 9:15 am ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

valinex wrote:Hi,
This is a screenshot of Global variables.
OK try this version. It's OK at home
Author:  valinex [ Tue Nov 13, 2012 12:39 pm ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

Thanks,
Tomorrow morning I will try the ea.

Best regards.
Valentin
Author:  valinex [ Thu Nov 15, 2012 10:49 am ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

Hi,
So sorry, I was running the ea but he don;t change the global variables.
Author:  fxdaytrader [ Tue Dec 18, 2012 4:04 am ]
Post subject:  Re: Modification BS Asia Breakout from Steve Hopwood

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

All times are UTC Page 1 of 1