- ago
I log a few things in my strategy. I initially had the log color set to red then I removed my strategy from the strategy monitor and changed the color of my logs to yellow and then added my strategy back to the strategy monitor. Now when the strategy runs I can still see the old red logs coming in.



0
645
5 Replies

Reply

Bookmark

Sort
- ago
#1
Have you tried to double check your code in the first place? Next step would be to reopen the SM, then restart WL.
0
- ago
#2
Yup I double checked my code, I see some of the newer logs that I added showing up with the correct color

CODE:
            WLHost.Instance.AddLogItem($"{this.StrategyName}", $"AssignAutoStopTargetPrices for {t.Symbol} initial {t.TransactionType} entry at {executionPrice}", WealthLab.Core.WLColor.LightYellow);


But it is showing the old version of the log, even though some newer logs I added are showing up in the correct format/color
0
Cone8
 ( 4.98% )
- ago
#3
QUOTE:
But it is showing the old version of the log, even though some newer logs I added are showing up in the correct format/color
Confusing. Which is it? If both are happening at the same time, maybe you're running different versions of the strategy or there's another path in the strategy with the old code.
0
- ago
#4
Yes confusing, that is why I posed the question. I only have this one instance in the strategy monitor, there is no where else with that log. I guess I just have to assume I have to restart WL everytime I make a code change?
0
Glitch8
 ( 10.62% )
- ago
#5
The reason you are not seeing the color change is because the logging tool groups messages if they have exactly the same text, to keep things from getting overloaded. You're changing only the color. If you change the message text too you will see that you don't need to restart WL8. When you save the Strategy and add it to the SM again, you'll see the messages in the new color.
0

Reply

Bookmark

Sort