ww58
- ago
In my strategies I save the chart to file using
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.
2
678
Solved
11 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.10% )
- ago
#1
This is not a bug, it’s an intentional optimization. These drawing methods are no-operations in the strategy monitor.
0
ww58
- ago
#2
What if I need to save them? May be an option to control this behavior?
0
Glitch8
 ( 12.10% )
- ago
#3
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.
0
- ago
#4
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?
0
ww58
- ago
#5
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
0
- ago
#6
Not even running this strategy in a Streaming strategy chart?
0
ww58
- ago
#7
As far as I understood chart is for a single symbol, and I need on the whole dataset.
0
- ago
#8
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
0
Cone8
 ( 6.32% )
- ago
#9
QUOTE:
I have to get live signals in the form of pictures.
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.)
0
ww58
- ago
#10
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?
0
Glitch8
 ( 12.10% )
- ago
#11
We have a new preference coming in Build 34 to allow this for you:

1
Best Answer

Reply

Bookmark

Sort