"SBP core library" errors ?

Post Reply
User avatar
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

"SBP core library" errors ?

Post by sangratan »

Hi,I am new here,
I am trying by many days to solve a problem compiling SBP Bob family's .mq4 files.
I have compiled in the right way only "SBP Bob latest version".....
every others gave me the same errors in SBP core library:
I am not a coder and I do'nt have so much experience to solve this problem.
I have found a post in the forum about this problem searching "undeclared identifier"
and I tryed to solve it downloading files many times after eliminate them,restarting platform and so on,but unfortunaly nothing happens.
I thanks you for any help about that.
I would thank for the wonderfull work developed here trough the years.....
seems incredible ........it's a universe and so much to learn,really wonderfull.
Thanks again for any help
regards
Sangratan (Sergio)
You do not have the required permissions to view the files attached to this post.
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.

"SBP core library" errors ?

Post by SteveHopwood »

You don't compile Library or Include files separately. Slopey Peaky Bob, for example, pulls the SPB core library code into its own compiled version automatically.

:xm: :rocket:
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
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

"SBP core library" errors ?

Post by sangratan »

Thanks Steve for your answer....I am really sorry for my misunderstanding....
can you tell me step by step what I have to do please ...
I tryed to compile for exemple Slopey Holy Graily Bob but comes errors and not .ex4 file.....
what have I to do to get .ex4 file to put in expert foulder in Empty4 platform ?
This is what'happening ...
thanks again for your patience and help
regards
Sangratan
You do not have the required permissions to view the files attached to this post.
User avatar
r1ch4rd
Trader
Posts: 137
Joined: Fri Jan 20, 2012 2:19 pm
Location: Cambridge, UK

"SBP core library" errors ?

Post by r1ch4rd »

sangratan » Sun Mar 20, 2022 3:33 pm wrote:Thanks Steve for your answer....I am really sorry for my misunderstanding....
can you tell me step by step what I have to do please ...
I tryed to compile for exemple Slopey Holy Graily Bob but comes errors and not .ex4 file.....
what have I to do to get .ex4 file to put in expert foulder in Empty4 platform ?
This is what'happening ...
thanks again for your patience and help
regards
Sangratan
Do you have it in your indicator folder?
It should be in your expert folder.
User avatar
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

"SBP core library" errors ?

Post by sangratan »

Hi,
any SBP Bob's family MQL4 files are in expert's foulder......
If I try to compile to do .ex4 files comes those errors .....
and if try to put one directly on chart it comes message in the journal that I attached above..... :arrrg:
may be somebody can share .ex files ?
Thanks for any help
Sangratan
User avatar
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

"SBP core library" errors ?

Post by sangratan »

Here is....
You do not have the required permissions to view the files attached to this post.
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.

"SBP core library" errors ?

Post by SteveHopwood »

sangratan » Sun Mar 20, 2022 8:31 pm wrote:Hi,
any SBP Bob's family MQL4 files are in expert's foulder......
If I try to compile to do .ex4 files comes those errors .....
and if try to put one directly on chart it comes message in the journal that I attached above..... :arrrg:
may be somebody can share .ex files ?
Thanks for any help
Sangratan
It turns out that I have done something wrong somewhere.

I loaded up Slopey Peaky Holy Graily Bob into the editor and tried to compile, and saw the same error messages that you are seeing. I have added a feature to Slopey Peaky Bob Latest Version that I did not add to the (at least some of) other versions.

I will look into this at some point. For now, use this quick fix:
  • Try to compile Holy Graily.
  • Double click the first of the error messages you see.
This will take you to this block of code in the core library:

Code: Select all

   //Using ATR for individual pairs as a basket TP
   if (UseAtrForBasketTP)
   {
      double atrVal = getAtr(symbol, TpAtrTimeFrame, TpAtrPeriod, 0);
      IndividualBasketTargetPips = (int) ((atrVal * factor) * (TpPercentOfAtrToUse / 100) );
   }//if (UseAtrForBasketTP)
Comment it out by adding the block open and closing commands /* (start block) and */ (end block) thus:

Code: Select all

/*
   //Using ATR for individual pairs as a basket TP
   if (UseAtrForBasketTP)
   {
      double atrVal = getAtr(symbol, TpAtrTimeFrame, TpAtrPeriod, 0);
      IndividualBasketTargetPips = (int) ((atrVal * factor) * (TpPercentOfAtrToUse / 100) );
   }//if (UseAtrForBasketTP)
*/   
The block will be greyed out - that is how we know that a line/block of text is a comment and not part of the code.

Go back to Holy Graily and recompile and all should then be well.

This problem could well be a feature of many of the SPB family that has not emerged so far as most of us are using the Slopey Peaky Bob Latest Version and are single pair basket trading - hence the new feature that caused your difficulties. I will sort it out at some point.

Let us know how you get on.

:xm: :rocket:
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
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

"SBP core library" errors ?

Post by sangratan »

:hi: :hi: :hi: :hi: :hi: :hi: :hi: :yahoo: :yahoo: :yahoo: :yahoo: :good: :good: :good: :good:
Perfect.....
it works....
So many thanks for your help Steve,
Sometimes becouse of my newbie condition I doubt about many things,sorry for that.
I'll try with others experts......
Thanks again and have a good night
Sangratan
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.

"SBP core library" errors ?

Post by SteveHopwood »

sangratan » Sun Mar 20, 2022 9:57 pm wrote::hi: :hi: :hi: :hi: :hi: :hi: :hi: :yahoo: :yahoo: :yahoo: :yahoo: :good: :good: :good: :good:
Perfect.....
it works....
So many thanks for your help Steve,
Sometimes becouse of my newbie condition I doubt about many things,sorry for that.
I'll try with others experts......
Thanks again and have a good night
Sangratan
Brilliant. You have brought to my attention something that needs sorting out, so thanks for that. :clap: :clap: :clap:

:xm: :rocket:
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.
Post Reply

Return to “Newbie Discussion”