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

Holy Graily Bob 'n Sixths
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4733
Page 3 of 7
Author:  SteveHopwood [ Wed Jun 01, 2016 9:21 pm ]
Post subject:  Holy Graily Bob 'n Sixths

I had the same errors as Boulder today - and I could not even find the damn trade the blasted bot was whinging about.

Here is what I think is happening:
  • HGBnS detects a trade signal and sends the pending trades.
  • The Sixths are redrawn and a pending or two end up on the wrong side of the middle line.
  • HGBnS tries to set/reset the tp to the middle line, which is impossible.
I will sort this out tomorrow. Probably, the pendings that end up on the wrong side of the middle line need deleting.

Teething problems only. HGBnS is fuckin amazing.

:xm:
Author:  TraderJoeForex [ Thu Jun 02, 2016 1:48 am ]
Post subject:  Holy Graily Bob 'n Sixths

Bob's recent and brilliant CSS with HGI posts have reminded me it may be preferable to only trade the turn back into the higher trend if there is one so that we are buying the dips in an uptrend etc rather than counter trend.

Could your CSS filter be activated in the code to test this in due course Steve?
Author:  Peepaws [ Thu Jun 02, 2016 3:30 am ]
Post subject:  Holy Graily Bob 'n Sixths

My 2 demos are setup, one with Stop only and the other with Stop and Limit orders.

Just waiting for trade triggers now!

Will keep updating.


:party:
Author:  SteveHopwood [ Thu Jun 02, 2016 9:36 am ]
Post subject:  Holy Graily Bob 'n Sixths

TraderJoeForex » Thu Jun 02, 2016 1:48 am wrote:Bob's recent and brilliant CSS with HGI posts have reminded me it may be preferable to only trade the turn back into the higher trend if there is one so that we are buying the dips in an uptrend etc rather than counter trend.

Could your CSS filter be activated in the code to test this in due course Steve?
Done. V1f in post 1.

Coders, retrofitting CSS to ea's you wrote using my shells is easy when you know how. Load the attached into meta editor even if you usually use a different one, and follow the bookmarks to see the code you need to add.

:xm:
Author:  vectieba [ Thu Jun 02, 2016 10:54 am ]
Post subject:  Holy Graily Bob 'n Sixths

Hi Steve

Not sure if this will help but I just got the order open error with the following

2016.06.02 12:38:48.652 Holy Graily Bob n Sixths NZDJPY.,H4: NZDJPY. Holy Graily Bob n Sixths OP_SELL order send failed with error(130): invalid stops

2016.06.02 12:38:48.363 '8671728': order sell market 0.03 NZDJPY. sl: 74.452 tp: 73.973
2016.06.02 12:38:48.652 '8671728': order sell 0.03 NZDJPY. opening at market sl: 74.452 tp: 73.973 failed [Invalid S/L or T/P]

It was trying to open the order on the middle line and use the middle line as take profit.
Author:  TraderJoeForex [ Thu Jun 02, 2016 11:37 am ]
Post subject:  Holy Graily Bob 'n Sixths

SteveHopwood » Thu Jun 02, 2016 9:36 am wrote: Done. V1f in post 1.

Coders, retrofitting CSS to ea's you wrote using my shells is easy when you know how. Load the attached into meta editor even if you usually use a different one, and follow the bookmarks to see the code you need to add.

:xm:

Fantastic, thank you. Will report back how I get on.
Author:  SteveHopwood [ Thu Jun 02, 2016 11:53 am ]
Post subject:  Holy Graily Bob 'n Sixths

I just had a long loll in the bath. :clap: :clap: :clap:

Using CSS turns HGBnS into a trend trader re-entering the trend after a deep retrace. It makes sense to be able to set a more distant take profit target and send more grid trades to take advantage of the trend resumption.

I have set up two more inputs under the TakeProfitPips input that allows us to choose our own tp sixths line. I describe how in post 1.

V 1g is in post 1.

:xm:
Author:  SteveHopwood [ Thu Jun 02, 2016 12:04 pm ]
Post subject:  Holy Graily Bob 'n Sixths

I just loaded up the latest and noticed that I had not turned the DCC time frame into one of those dinky little ENUM's that ensures we can only enter an appropriate time frame. I have replaced this in 1g without bothering to change the version.

Easy change to make yourselves. Copy this over the top of line 274:
extern ENUM_TIMEFRAMES CssTf=PERIOD_D1;

:xm:
Author:  SteveHopwood [ Thu Jun 02, 2016 3:30 pm ]
Post subject:  Holy Graily Bob 'n Sixths

V 1h is in post 1. You do not need this update if you are not using Limit orders as well as Stop orders (AddLimitOrders input).

Dan pm'd me to say he was getting 'invalid stop' errors and the limit orders not being sent. I had got my '+' and '-' the wrong way around. So:
line 1821
price = Ask + (DistanceBetweenTrades / factor);

should be
price = Ask - (DistanceBetweenTrades / factor);

line 1833
price = Bid - (DistanceBetweenTrades / factor);

should be
price = Bid + (DistanceBetweenTrades / factor);

:xm:
Author:  Peepaws [ Thu Jun 02, 2016 3:45 pm ]
Post subject:  Holy Graily Bob 'n Sixths

Thanks Steve! Will update when I get home.
All times are UTC Page 3 of 7