Hello Steve,SteveHopwood » Sun Jan 17, 2021 12:18 pm wrote:There is a new version of the SPB Core Library.
Alex (biobier) emailed yesterday with a bug spot that stops the trailing and jumping stop functions from working except on certain pairs.
This has not come up as a problem before I think, because we have been basket trading. It is only of relevance to you if you are doing any single trading and want these two functions.
What you need to do to access the fix is:It is an easy DIY:
- Download the library into your platform's /Include folder.
- Go to your platform's /MQ4/Experts folder and delete the mqlcache.dat file - it has a small back bix with a white dot before its name.
- Shut down and restart the platform.
- Go to: void jumpingStopLoss(int ticket).
- Scroll down a few lines to double sl = OrderStopLoss();
- Insert this code underneath:- Go to: void trailingStopLoss(int ticket) (next function down)Code: Select all
//This next line fixes a bug spotted by biobier. Thanks Alex. double point = SymbolInfoDouble(OrderSymbol(),SYMBOL_POINT);
- Repeat the insertion.
- Go back to the top of: void jumpingStopLoss(int ticket)
- Do a search and replace, replacing "Point" with "point". There are two instances in each function.
This bloop also applies to Trendy Monster Moving Day and Desky, so I will post updates there.
Thanks Alex.![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
I have noticed when setting the basket take profits in pips it is not shown correctly by SPB. The individual pairs takeprofit only shows 0 Euro and no pips. Whole basket is shown correctly. When I set both to cash it also shows both correctly.
Greets, Thomas