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

Holy Graily Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4154
Page 25 of 32
Author:  TraderJoeForex [ Thu Apr 30, 2015 3:01 pm ]
Post subject:  Holy Graily Bob

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.
Author:  NeoFx62 [ Sat May 02, 2015 5:51 pm ]
Post subject:  Holy Graily Bob

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
:!!:
Author:  SteveHopwood [ Sat May 02, 2015 6:13 pm ]
Post subject:  Holy Graily Bob

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:
Author:  NeoFx62 [ Sat May 02, 2015 7:11 pm ]
Post subject:  Holy Graily Bob

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
Author:  Pipstubborn [ Wed May 06, 2015 12:15 am ]
Post subject:  Holy Graily Bob

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.
Author:  zader [ Wed May 06, 2015 6:28 am ]
Post subject:  Holy Graily Bob

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.
Author:  SteveHopwood [ Wed May 06, 2015 1:11 pm ]
Post subject:  Holy Graily Bob

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:
Author:  Pipstubborn [ Wed May 06, 2015 1:37 pm ]
Post subject:  Holy Graily Bob

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
Author:  TonkaTuff [ Fri May 08, 2015 6:01 am ]
Post subject:  Holy Graily Bob

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
Author:  jiaxingx [ Fri May 15, 2015 2:50 pm ]
Post subject:  Holy Graily Bob

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

may be change to
void SendPendingMultipleBuyTrades(double price, string comment, int TradesAllowed)
All times are UTC Page 25 of 32