In my strategies I save the chart to file using
DrawLine(), DrawBarAnnotation(), possible other Chart Drawings too, are saved to image file while using backtest or chart, but when using the strategy monitor no drawings are saved.
CODE:
Bitmap img = GetChartImage() as Bitmap; img.Save(...);
DrawLine(), DrawBarAnnotation(), possible other Chart Drawings too, are saved to image file while using backtest or chart, but when using the strategy monitor no drawings are saved.
Rename
This is not a bug, it’s an intentional optimization. These drawing methods are no-operations in the strategy monitor.
What if I need to save them? May be an option to control this behavior?
I added the FeatureRequest tag so this is now on the wish list, you should vote for it by giving a thumbs up to the topic.
ww5, can you clarify that "what if I need" in greater detail? Strategy Monitor is optimized for its modus operandi. Maybe there already is some other way to accomplish your task. What is it and why you cannot reach this in strategy backtest?
Eugene, one of my strategies now is semi-automatic trading. So I have to get live signals in the form of pictures. So far, I have not found any other way to do this than through the strategy monitor
Not even running this strategy in a Streaming strategy chart?
As far as I understood chart is for a single symbol, and I need on the whole dataset.
Have you tried StrategyRunner? It's a class to make it easier to run backtests even from Strategy code:
Getting started with StrategyRunner
https://www.youtube.com/watch?v=js81fCy_rx4&t=449s
Getting started with StrategyRunner
https://www.youtube.com/watch?v=js81fCy_rx4&t=449s
QUOTE:What is a live signal in the form of a picture and what do you do with that? (The StrategyRunner won't help create an image.)
I have to get live signals in the form of pictures.
Cone, it's like a custom market screener. I get defined setup images to my phone when they appear and then I make my own decision.
Eugene, no I haven't. It turns out that if the backtest saves the images correctly, then if I put such a strategy through strategyrunner in monitor, it will just run always as a backtest and also saved?
Eugene, no I haven't. It turns out that if the backtest saves the images correctly, then if I put such a strategy through strategyrunner in monitor, it will just run always as a backtest and also saved?
We have a new preference coming in Build 34 to allow this for you:
Your Response
Post
Edit Post
Login is required