Mql4 windows have ONE scale. Either two windows or scale one set.
WHRoeder:
Mql4 windows have ONE scale. Either two windows or scale one set.
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
nowhere:
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;
Then min/max isn't fixed. Find the begin/end of the chart and compute the indicators min/max in that range.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
nowhere:
Why don't you use the Strategy Tester ?
I suppose this solution works just on new ticks, waiting for Monday;
Never used lung.
Never used.
RaptorUK:
Why don't you use the Strategy Tester ?
Why don't you use the Strategy Tester ?
Never used.
Why not learn . . . then you could have tested your code over a day ago . . .
I've others code to test, so if I delay the test of this code don't waste time anyway, but I take in mind, thanks
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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;