Holy Graily Bob

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Locked
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob

Post by TraderJoeForex »

I use TDMTL for manual exits.... once there is a break against the trend (i.e. the red line in the example below) I'm out but it keeps you in long enough.

I have attached the Indi - Bob introduced this to us in 10.7 and there is more info in that thread or on the web.
You do not have the required permissions to view the files attached to this post.
User avatar
NeoFx62
Posts: 6
Joined: Tue Apr 16, 2013 5:14 pm
Location: Tenerife, Spain

Holy Graily Bob

Post by NeoFx62 »

First post in this thread , so don´t be too rude... :)

Do you think it's an good idea to add in HGB (lov it :hi: ) the days of the week in Trading Hours and be able to choose for each day, the trading hours .

Create a trailing stop based on a percent scale target(1) or at a specific time of day of the week (2).

-(1) Example : 5% percent balance target to trigger the TS and close when the value decreases by 1 %
-(2)Example 2; I choose trading M30 8:00 to 10:59 and I want the TS is triggered at 11:00 and closes all orders and expert adviser as soon as the cash profit goes down x percent...

Regards

Phil
:!!:
Yes I know my English is terrible and the Google translator does what he can, so take it easy guys ..
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob

Post by SteveHopwood »

NeoFx62 » Sat May 02, 2015 5:51 pm wrote:First post in this thread , so don´t be too rude... :)

Do you think it's an good idea to add in HGB (lov it :hi: ) the days of the week in Trading Hours and be able to choose for each day, the trading hours .

Create a trailing stop based on a percent scale target(1) or at a specific time of day of the week (2).

-(1) Example : 5% percent balance target to trigger the TS and close when the value decreases by 1 %
-(2)Example 2; I choose trading M30 8:00 to 10:59 and I want the TS is triggered at 11:00 and closes all orders and expert adviser as soon as the cash profit goes down x percent...

Regards

Phil
:!!:
Here is the problem Phil. SHF member asks for a feature so I code it. Along comes the next member asking for a feature, so I code it. Along comes the next member.................................

All of these new features may or may not be of any use. Usually not. Eventually the code becomes so complex that it breaks. This has already happened once to HGB - this is the second HGB thread. I closed the first after rewriting the bot to get rid of a lot of the rubbish that I was daft enough to allow to creep in.

Here is how to get a feature added: prove it works. Come along and announce that you have increased your account balance by 100% in x weeks doing <whatever it is you have been doing> and I guarantee you will grab out attention.

Or you can learn to code and add the feature for yourself to facilitate your experimentation. I have long maintained that traders should learn to code CrapQl4. It is a bog-basic language that anybody can learn. The ability to have an idea for automation and immediately be able to code it is invaluable. Not a popular point of view, but true nevertheless.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
NeoFx62
Posts: 6
Joined: Tue Apr 16, 2013 5:14 pm
Location: Tenerife, Spain

Holy Graily Bob

Post by NeoFx62 »

Hi Steve

Thanks for your quick answer. :good:

I'll try to reach an % target as much as I can in smalls time frame and let you known in two months if what I saw friday was an accident or is valuable start of something..

About coding , better learning chinese for me :smile: but I'll try to find in FF is there is something looking like, I saw it inside the Copy Trader of FxBlue but the code is not accesible I think...

Greetings to the all team, you've done an hudge work all together !!! :yahoo:

Phil
Yes I know my English is terrible and the Google translator does what he can, so take it easy guys ..
Pipstubborn
Trader
Posts: 272
Joined: Thu Jul 12, 2012 5:17 pm

Holy Graily Bob

Post by Pipstubborn »

Hi Steve,

Not sure if this is the correct thread to post my question and hope you're in a good mood today.

I'm trading H1 HGB with instant market main trades no multilevel and want to use the ATR module for SL/TP, so I set the standard SL/TP to cero. I want to have a 2 to 1 (risk/reward) SL/TP so I set the ATR functions as follows.

ATR Period 20
ATR Time Frame 60
ATR TP multiplier 2.0
ATR SL multiplier 4.0

My problem is that when the trades are placed by HGB the distance from the entry point to SL is correct, but the distance to TP is the same as the SL, should be half of it. Example 60 pips SL, 30 pips TP for a 2 to 1.

Am I doing something wrong on the settings?

Thanks in advance for your advice and have a great day.
User avatar
zader
Trader
Posts: 90
Joined: Fri Jul 06, 2012 8:46 am
Location: Rundown NW England

Holy Graily Bob

Post by zader »

Pipstubborn » Wed May 06, 2015 12:15 am wrote:Hi Steve,

Not sure if this is the correct thread to post my question and hope you're in a good mood today.

I'm trading H1 HGB with instant market main trades no multilevel and want to use the ATR module for SL/TP, so I set the standard SL/TP to cero. I want to have a 2 to 1 (risk/reward) SL/TP so I set the ATR functions as follows.

ATR Period 20
ATR Time Frame 60
ATR TP multiplier 2.0
ATR SL multiplier 4.0

My problem is that when the trades are placed by HGB the distance from the entry point to SL is correct, but the distance to TP is the same as the SL, should be half of it. Example 60 pips SL, 30 pips TP for a 2 to 1.

Am I doing something wrong on the settings?

Thanks in advance for your advice and have a great day.
This looks like an error on line 1532 in the CalculateTakeProfit()

Code: Select all

MainTradeTakeProfit = (GetAtr(Symbol(), AtrTimeFrame, AtrPeriod, 0) * factor) * AtrSlMultiplier;
should be

Code: Select all

MainTradeTakeProfit = (GetAtr(Symbol(), AtrTimeFrame, AtrPeriod, 0) * factor) * AtrTpMultiplier;
change it yourself or wait for Steve to check the fix and update the version in post 1.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob

Post by SteveHopwood »

zader » Wed May 06, 2015 6:28 am wrote:
This looks like an error on line 1532 in the CalculateTakeProfit()

Code: Select all

MainTradeTakeProfit = (GetAtr(Symbol(), AtrTimeFrame, AtrPeriod, 0) * factor) * AtrSlMultiplier;
should be

Code: Select all

MainTradeTakeProfit = (GetAtr(Symbol(), AtrTimeFrame, AtrPeriod, 0) * factor) * AtrTpMultiplier;
change it yourself or wait for Steve to check the fix and update the version in post 1.
Thanks again zader. :clap: :clap:

Fix in V 1j in post 1, for the codephobics.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Pipstubborn
Trader
Posts: 272
Joined: Thu Jul 12, 2012 5:17 pm

Holy Graily Bob

Post by Pipstubborn »

Hi Zader & Steve,

I fixed myself and is working good.

Thank you very much for the update Steve and thanks Zader for your prompt reply. Your inputs are invaluable.
What a great team we have in this forum

Have a great day guys and girls.

Pipstubborn
User avatar
TonkaTuff
Trader
Posts: 74
Joined: Wed May 01, 2013 6:30 am
Location: Sydney, AUSTRALIA

Holy Graily Bob

Post by TonkaTuff »

Hi All,

Sorry for the lack of comms around the platforms running HGB, I went on holidays and the connectivity I organised didn't exactly work, so have been off the air for 3 weeks!!! I'm back now and ready to get into it!!! The 4 platforms I left running seem to have done not much until yesterday. It also looks like a new version of HGB has been published.

So, Steve, what would you like me to do with the platforms??
- Continue as it?
- Apply v1h OOTB and restart from Monday??
- Apply v1h with different settings and restart from Monday?
- ??

Cheers,
TT
In theory, there is no difference between theory and practice. In practice, there is.
jiaxingx
Trader
Posts: 43
Joined: Fri Jun 22, 2012 10:45 am

Holy Graily Bob

Post by jiaxingx »

line 2174 : void SendPendingMultipleBuyTrades(double price, string comment, string TradesAllowed)

may be change to
void SendPendingMultipleBuyTrades(double price, string comment, int TradesAllowed)
Image
Locked

Return to “Thingy Bob EA's”