simplex wrote:MrLong wrote:
Hi Jürgen,
Could we standardize settings, so members can just drop the EA on the screen, without having to change anything, we have the screen width and screen height variables already in the EA, any ideas would be appreciated.
Andy
Hi Andy,
sure, that should be one goal! I am going to work on my DrawRectangle function again. ...
Cheers, Jürgen
Hi Andy,
I took several hours to experiment with my DrawRectangle and with drawCell (found some description here:
http://forum.mql4.com/13898). Generally both methods face the same problem: they do not show the same results on both my machines.
For my drawRectangle I found at least one setting that displays correctly on both (see screenshots below):
Code: Select all
int gridCol1[] = { 0, 85, 125, 175, 210, 260, 300, 360, 400, 500 };
...
int symbCellLeft = 10, // in pixels
mainCellLeft = 85,
cashCellLeft = 950;
int headCellTop = 15, // in pixels
mainCellTop = -1,
footCellTop = -1;
int symbCellWidth = 4, // in characters
mainCellWidth = 46,
cashCellWidth = 14,
headCellWidth = -1;
int headCellHeight = 1, // in lines
mainCellHeight = 38,
footCellHeight = 2;
int rFontSize = 14; // for drawing rectangles
This might be a good configuration to start with. If you need space for more pairs or other adjustments, you will always fiddle around a bit with the parameters, bacause you can't
scroll vertically in the chart window. ... As always: any feedback appreciated!
Scrolling ...
This particular keyword led me to another idea: is it really necessary or convenient to display the grid inside the terminal??? What could be the alternative?
It would be pretty easy to write some html code based on the grid data to a file. Then we would need a browser to display that file (I already have a browser installed

) and maybe a little script (which I don't have at the moment) in this browser to pull fresh data from that file every few seconds ... that should be it.
I don't think it would cost more cpu than manipulating those label objects in the terminal. And with some simple css and html table commands we would get an alternate way of dashboard output without the limitations of our terminal. Maybe not as a replacement for inside terminal display but as an alternative the user could choose from.
Just thinking publicly ...
Any thoughts or suggestions about this idea? Anybody around who has some experience about writing html files from within Empty4?
I'm going to leave now for about 3 hours (Badminton practice). Next post not before 21:30 CET.
Cheers, Jürgen
You do not have the required permissions to view the files attached to this post.
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)