Half Streaming window for Strategy output
Hey i just got a strategy running and its doing well i love this tool and how simple it makes life :D
Though it would be beneficial to cut the streaming window (the one Down the bottom) in half and use the second half for the output of strategy and client messages instead of having them jumbled in the stream to make reading a lot easier :D
http://screenshots.setkeh.com/goxtool.png << for example :D
Sorry I dident realise there was another already like this :P you can close this one sorry
This is probably the first thing that sprang to mind when I started using goxtool. I think a lot of people want this functionality. However, splitting the console window into smaller parts is trivial, but getting strategy messages in there is not! After 2 months of customising and coding my strategies, I finally got round to outputting my strategy messages to the curses GUI instead of watching my logs for alerts and status info :)
The mechanism I implemented is outlined here: https://github.com/prof7bit/goxtool/issues/25#issuecomment-20865497
It uses ZeroMQ and this works very well for me, but there may be other solutions which I'd be interested to hear about - not because ZMQ is not brilliant for this exact usecase but because I am interested to learn any and all ways of doing things with Python.
The reason why it never came to my mind to implement this is that from the very beginning when I started developing this I always had a separate terminal window open with a
tail -f goxtool.log | grep Strategy
so I never really had the need to implement the second scrolling window. Also my terminal width on my old laptop is very limited and I had no idea where to place this second scrolling window (there is not enough room at the right side).
Maybe I could implement a keyboard shortcut to toggle between general log and strategy log or between general log and a custom filter. Since the debug signal also transmits a reference to the sender of the debug message (from the instance one can derive the class name and the module name) it should be possible to filter for individual strategies.
Filtering on the signal_debug() transmitted reference is a simple and effective way of getting Strategy messages into an additional curses window created in goxtool.py or, as you suggest, just toggling its output to the existing Console window. Not quite sure what the transmitted reference content is, so please elaborate on that.
btw, I fixed the link in my comment above to point at the correct issue and comment.