Proportioning 2 or more buffers with different homogeneous size, in the same window
Mql4 windows have ONE scale. Either two windows or scale one set.
That's the trick I'm searching for! :-)
I don't know how scale them!
Thanks for Reply
#define WINDOW_HI 1000 #define WINDOW_LO 0 #define INDI_HI 2 #define INDI_LO 0 double valueScaled = (value - INDI_LO) / (INDI_HI - INDI_LO) * (WINDOW_HI - WINDOW_LO) + WINDOW_LO;
It seems to works, let me fix the code.
The only issue, could be up scrolling the chart backwards and forward, the window doesn't resize itself according with the max value of the buffers;
so we could have flat graph in some cases;
Many Thanks
The only issue, could be up scrolling the chart backwards and forward, the window doesn't resize itself according with the max value of the buffers;
int iVisible = WindowFirstVisibleBar(), iVisEnd = MathMaxI( iVisible-WindowBarsPerChart(),0),// Chart shift length = iVisible - iVisEnd +1; double indiMax = ArrayMaximum(buffer,length,iVisEnd); : int MathMaxI(int a, int b){ if(a>b) return(a); return(b); }
I suppose this solution works just on new ticks, waiting for Monday;
Hope in mt5 we could have something like SCROLL_EVENT;
Thanks
I suppose this solution works just on new ticks, waiting for Monday;
Why don't you use the Strategy Tester ?
Never used.

As you read in subject, I need to proportioning 2 buffers with different homogenous size,i n the same subwindow.
ex.
I've setted as default
So I didn't found how put all in proportion, as you can understand, BufferOne appears flat respect to BufferTwo;
Could be happen that BufferOne' values exceed to 1000, so I must put in proportion both buffers;