Cache in bookmap in new .jar

Custom indicators, trading strategies, data export and recording and more...
nxbjyscspmv
Posts: 3
Joined: Tue Oct 25, 2022 7:01 pm

Cache in bookmap in new .jar

Post by nxbjyscspmv » Mon Oct 31, 2022 4:21 am

Why when I rename name from  class@Layer1StrategyName("FeedRecorder demo") to @Layer1StrategyName("FeedRecorder2 demo") and create new .jar in bookmap dont see new name. but if i rename file, i see.

I need always rename file?

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Cache in bookmap in new .jar

Post by Andry API support » Mon Oct 31, 2022 2:12 pm

Hi, what file do you mean here?
Please look at my screenshots. I have created a copy of the FeedRecorder.class and it is FeedRecorder2.class
I have also changed the strategy name in the annotation. Then I built the jar and `FeedRecorder2 demo` is visible in Bookmap.
Clipboard01.jpg
Clipboard01.jpg (78.64 KiB) Viewed 4968 times
Clipboard02.jpg
Clipboard02.jpg (33.28 KiB) Viewed 4968 times

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Cache in bookmap in new .jar

Post by Svyatoslav » Wed Nov 02, 2022 10:07 am

If you are talking about the entry point caching - that is done based on the jar file hash, so as soon as you rebuild it (so that hash is different) - it should no longer be cached. That being said, if the above reply from Andrey and my reply didn't help - please record a video if possible to show the issue in detail (or just describe it in details, step by step).

Post Reply