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

Old and defunct Holy Graily Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3966
Page 9 of 129
Author:  fullaforex [ Tue Dec 02, 2014 12:44 pm ]
Post subject:  Holy Graily Bob

Radar » Tue Dec 02, 2014 9:20 pm wrote:Hey Wapen,
Wapen » Tue Dec 02, 2014 1:20 am wrote:Hi Steve,
What can we say, Wow, wow, wow.

One thing I have noted is that the Trailing Stop is not functioning correct. The BE works!

Thanks
Wapen

If you're getting Error 130, it's most likely caused by your br0ker's StopLevel... From the looks of it, Steve's br0ker has a StopLevel of 0, and so he doesn't get bombarded with the error message.

To fix it, go to line 3369, and change it from this...

Code: Select all

if (Bid >= sl + (TrailingStopPips / factor) )//George
...to this...

Code: Select all

if ((Bid - MarketInfo(OrderSymbol(), MODE_STOPLEVEL)) >= sl + (TrailingStopPips / factor) )//George
Then go to line 3385, and change this...

Code: Select all

if (Bid <= sl  - (TrailingStopPips / factor))//George
...to this...

Code: Select all

if ((Bid + MarketInfo(OrderSymbol(), MODE_STOPLEVEL)) <= sl  - (TrailingStopPips / factor))//George
No more "BINGBINGBINGBING!" :D

Have fun!

Radar =8^)
Thank you So much.. :D
Author:  fullaforex [ Tue Dec 02, 2014 12:45 pm ]
Post subject:  Holy Graily Bob

Gertje » Tue Dec 02, 2014 9:24 pm wrote:
Radar » Tue Dec 02, 2014 12:35 pm wrote:Hey Wapen,


No more "BINGBINGBINGBING!" :D

Have fun!

Radar =8^)
I would suggest change broker, 20 pips stoplevel is ridiculous.
It's a 20 pip trail.....NOT 20 point! That would be ridiculous!
Author:  Gertje [ Tue Dec 02, 2014 12:54 pm ]
Post subject:  Holy Graily Bob

fullaforex » Tue Dec 02, 2014 12:45 pm wrote:
It's a 20 pip trail.....NOT 20 point! That would be ridiculous!
If the 20 pips trail gives you the warnings, it's a +20 pips stoplevel, otherwise the stop would have been adjusted.

Correct me if I'm wrong....
Author:  fullaforex [ Tue Dec 02, 2014 12:58 pm ]
Post subject:  Holy Graily Bob

Gertje » Tue Dec 02, 2014 9:39 pm wrote:
fullaforex » Tue Dec 02, 2014 12:45 pm wrote:
It's a 20 pip trail.....NOT 20 point! That would be ridiculous!
If the 20 pips trail gives you the warnings, it's a +20 pips stoplevel, otherwise the stop would have been adjusted.

Correct me if I'm wrong....

The code change from Radar seems to have fixed the problem.
No need to change Broker. :clap:
Author:  Radar [ Tue Dec 02, 2014 1:04 pm ]
Post subject:  Holy Graily Bob

Hey Fullaforex & Gertje,
fullaforex » Tue Dec 02, 2014 10:15 pm wrote:
Gertje » Tue Dec 02, 2014 9:24 pm wrote:
Radar » Tue Dec 02, 2014 12:35 pm wrote:Hey Wapen,


No more "BINGBINGBINGBING!" :D

Have fun!

Radar =8^)
I would suggest change broker, 20 pips stoplevel is ridiculous.
It's a 20 pip trail.....NOT 20 point! That would be ridiculous!
You might want to have a look at the TrailingStop function, where it calculates the new SL, and have a look at what it's actually doing...

Original code (for Buys)...

Code: Select all

if (Bid >= sl + (TrailingStopPips / factor) )//George
{
 NewStop = NormalizeDouble(sl + (TrailingStopPips / factor), Digits);
 if (HiddenPips > 0) ObjectMove(LineName, 0, Time[0], NewStop);
 if (NewStop - OrderStopLoss() >= Point) modify = true;//George again. What a guy
}//if (Bid >= MathMax(sl,OrderOpenPrice()) + (TrailingStopPips / factor) )//George
With your TrailingStop of 20 pips, what this code is saying is, "When Bid is 20 (or more) Pips above the current SL, move the SL up by 20 Pips." With a StopLevel of 2 Pips, you're gonna get "BINGBINGBINGBING!" until Bid is 22Pips or more above your current SL. I reckon you can work it out for Sells ;)

Have fun!

Radar =8^)
Author:  Gertje [ Tue Dec 02, 2014 7:29 pm ]
Post subject:  Holy Graily Bob

Steve,

Since, rad-signals are basically trend-continuations, would it make sence to have the possibility to close these on a opposite trend-signal?
Author:  SteveHopwood [ Tue Dec 02, 2014 8:30 pm ]
Post subject:  Holy Graily Bob

Gertje » Tue Dec 02, 2014 7:29 pm wrote:Steve,

Since, rad-signals are basically trend-continuations, would it make sence to have the possibility to close these on a opposite trend-signal?
Yes. Will do.

:xm:
Author:  bazze [ Tue Dec 02, 2014 8:37 pm ]
Post subject:  Holy Graily Bob

My results so far.... :good:
Using this setfile...
Author:  xfactornos [ Tue Dec 02, 2014 8:46 pm ]
Post subject:  Holy Graily Bob

bazze » Tue Dec 02, 2014 3:37 pm wrote:My results so far.... :good:
Using this setfile...
Not bad.. I am currently negative 71 pips realized, floating 118 pips.
Author:  SteveHopwood [ Tue Dec 02, 2014 10:46 pm ]
Post subject:  Holy Graily Bob

Ok guys, whilst I have been swanning around the UK countryside meeting The Bobster and his wonderful Patti, Denis and Tomasso have been beavering away on our behalves.

Just so you know where you are right now, it is 10.38 London time.

Denis has dealt with my misunderstanding of the wavy lines in HGB.

Tommaso has spent the day dealing with some esoteric HGI stuff. I tell you guys, these indi people speak strange tongues. :lol: I never understand a word they are speaking.

I am too tired to make any sense right now (ignores cries of, "What do you mean, 'right now'")

I shall leave Bob, Tommaso and Denis to decide which indi version to update in Bob's thread. I will update this thread in the morning with Denis' HGB and the resulting need to update the user guide. Live with what we have for now folks, and await updates tomorrow.

Tommaso and Denis, I cannot thank you enough for what you have done today whilst I was enjoying the company of one of the best human beings on this planet. Thanks guys.

:xm:
All times are UTC Page 9 of 129