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

Balls to the Wall, a 1 minute 1 trade EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=792
Page 9 of 36
Author:  wolfeman [ Wed Sep 05, 2012 5:24 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

winsteadglenn wrote:If anyone is using the slope feature, please let us know what works for you.

Hi Glen, I'm on board with the London line disabled and a 5M slope OOTB. Will keep you posted.
Author:  vivaldi [ Wed Sep 05, 2012 6:33 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

winsteadglenn wrote:If anyone is using the slope feature, please let us know what works for you.
Hi Glen,

i will have to study this feature more in depth, but I am almost sure that it will be a better indication than the rough line of the original system.
Author:  HiArt99 [ Wed Sep 05, 2012 6:47 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

Hi Steve,

still struggling to get this EA to work for me on my Alpari UK demo account. I noticed in the comment that Fractal high is 0.00000 so I added this line to GetFractals just after v is calculated:

if(Symbol()=="EURGBP" && v > 0)Print("v = ",DoubleToStr(v, Digits),"; v - Ask = ",DoubleToStr(v - Ask, Digits),"; StopLevel = ",DoubleToStr(StopLevel, Digits));

This has returned the following data:

07:40:05 Balls to the Wall EURGBP,M1: v = 0.78996; v - Ask = -0.00016; StopLevel = 20.00000

It appears that FracHigh will never be set as "v - Ask > StopLevel" can not become TRUE. Should StopLevel be converted in to pips?. Easy enough to do and happy to make the adjustment locally; I'll just have to remember to make that amendment on each update.

Why this should be an issue for me and not for other folks, I am unsure. But thanks for any advice.

P.S.
Adjusting the StopLevel calculation to:

double StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL) / factor;

has caused a Fractal High comment to be displayed, as well as lot size, stop loss and take profit calculations.

So it appears that the answer to my question is YES!
Author:  vivaldi [ Wed Sep 05, 2012 7:02 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

HiArt99 wrote:Hi Steve,

still struggling to get this EA to work for me on my Alpari UK demo account. I noticed in the comment that Fractal high is 0.00000 so I added this line to GetFractals just after v is calculated:

if(Symbol()=="EURGBP" && v > 0)Print("v = ",DoubleToStr(v, Digits),"; v - Ask = ",DoubleToStr(v - Ask, Digits),"; StopLevel = ",DoubleToStr(StopLevel, Digits));

This has returned the following data:

07:40:05 Balls to the Wall EURGBP,M1: v = 0.78996; v - Ask = -0.00016; StopLevel = 20.00000

It appears that FracHigh will never be set as "v - Ask > StopLevel" can not become TRUE. Should StopLevel be converted in to pips?. Easy enough to do and happy to make the adjustment locally; I'll just have to remember to make that amendment on each update.

Why this should be an issue for me and not for other folks, I am unsure. But thanks for any advice.

P.S.
Adjusting the StopLevel calculation to:

double StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL) / factor;

has caused a Fractal High comment to be displayed, as well as lot size, stop loss and take profit calculations.

So it appears that the answer to my question is YES!
Read my previous post of yesterday where I referred to the Point value. YOu have to adapt the value of 'stoplevel' in order to be able to make comparisons with values of 'Bid' and 'Ask'. Empty4 has the internal routine 'Point', but for a 5digit criminal you have to go to 10^-4. That is what you do here with the variable 'factor'.
Author:  SteveHopwood [ Wed Sep 05, 2012 7:31 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

HiArt99 wrote:Hi Steve,

still struggling to get this EA to work for me on my Alpari UK demo account. I noticed in the comment that Fractal high is 0.00000 so I added this line to GetFractals just after v is calculated:

if(Symbol()=="EURGBP" && v > 0)Print("v = ",DoubleToStr(v, Digits),"; v - Ask = ",DoubleToStr(v - Ask, Digits),"; StopLevel = ",DoubleToStr(StopLevel, Digits));

This has returned the following data:

07:40:05 Balls to the Wall EURGBP,M1: v = 0.78996; v - Ask = -0.00016; StopLevel = 20.00000

It appears that FracHigh will never be set as "v - Ask > StopLevel" can not become TRUE. Should StopLevel be converted in to pips?. Easy enough to do and happy to make the adjustment locally; I'll just have to remember to make that amendment on each update.

Why this should be an issue for me and not for other folks, I am unsure. But thanks for any advice.

P.S.
Adjusting the StopLevel calculation to:

double StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL) / factor;

has caused a Fractal High comment to be displayed, as well as lot size, stop loss and take profit calculations.

So it appears that the answer to my question is YES!
Nice one. Thanks.

I did not pick up on this because I code on an Cowboy IBFX demo, which returns zero as the stop level - which is why I use the spread if stop level = zero.

Anyone making this change manually needs to add the second line of code to GetFractals():

Code: Select all

   double StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL);
   if (!CloseEnough(StopLevel, 0) ) StopLevel/= factor;
For everyone else, V 1f is in post 1.

:D
Author:  HiArt99 [ Wed Sep 05, 2012 8:48 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

Thanks Steve.

Thank goodness this is demo!

GU trade opened @1.58567, stop 1.58133! 430 pips or thereabouts. I will look at the points post Steve I think my s/l and TP are 10 times too big!

At least it opened a trade, which is a step in the right direction :)
Author:  vivaldi [ Wed Sep 05, 2012 8:54 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

Just a few minutes ago, this order started.
As you can see, the EA did not take the first fractal as SL. Therefore, the SL it took, is rather big : 22 pips (see the red line) and the Target = 66 pips.
I don't think this was the intention of Paulus. Paulus would almost certainly have taken the SL at 1.2515, which leads to a target of around 16 pips. Much more realistical in a TFM1.

This is version 1f. I started it about half an hour ago. I am not sure as to how the Bias calculation works when you start the EA after the official morningopeninghour .But anyways, here we got a Bias = short and because of that, this resulted in the current order.
Author:  SteveHopwood [ Wed Sep 05, 2012 9:40 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

vivaldi wrote:Just a few minutes ago, this order started.
As you can see, the EA did not take the first fractal as SL. Therefore, the SL it took, is rather big : 22 pips (see the red line) and the Target = 66 pips.
I don't think this was the intention of Paulus. Paulus would almost certainly have taken the SL at 1.2515, which leads to a target of around 16 pips. Much more realistical in a TFM1.

This is version 1f. I started it about half an hour ago. I am not sure as to how the Bias calculation works when you start the EA after the official morningopeninghour .But anyways, here we got a Bias = short and because of that, this resulted in the current order.
Bias calculation:
  • < horizontal line: bias is down.
    > horizontal line: bias is up.
If a fractal is too close to the market for the stop loss to pass the stop level test, it looks for the next most recent fractal, and so on until it finds one that is close enough.

I am away for two days now, without internet access (only just found out about the Dongle and not bought one yet). Whilst I am away, you guys give some thought about what to do about too-distant stops and I will make the adjustment when I return - or one of the coders can do it.

:D
Author:  slipshod [ Wed Sep 05, 2012 10:10 am ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

Today's trading illustrates why I have little confidence in the concept behind this EA/trading strategy. Take EU or GU - the Asian sessions leading into the London open were clearly sloping down, and Frankfurt was flat.

London opens, and promptly dives down to set a new low for the day (which would have made the EA look for shorts if it wasn't already) then reverses upwards 60 pips on GU and 50 on EU at the time of writing. London does its own thing, I see no evidence at all to prove that it takes its lead from preceding sessions.
Author:  patman [ Wed Sep 05, 2012 12:00 pm ]
Post subject:  Re: Balls to the Wall, a 1 minute 1 trade EA

SteveHopwood wrote: If a fractal is too close to the market for the stop loss to pass the stop level test, it looks for the next most recent fractal, and so on until it finds one that is close enough.

I am away for two days now, without internet access (only just found out about the Dongle and not bought one yet). Whilst I am away, you guys give some thought about what to do about too-distant stops and I will make the adjustment when I return - or one of the coders can do it.
:D

what about
StopLoss = closest fractal
or
StopLoss = StopLevel + or - spread (depend if buy or sell)

whichever is furthest from price

Pat
All times are UTC Page 9 of 36