Hello,
Just replace in indicator line:
#property indicator_chart_window
by:
#property indicator_separate_window
That should do the trick
Sunwest
Hello,
Just replace in indicator line:
#property indicator_chart_window
by:
#property indicator_separate_window
That should do the trick
Sunwestbut it paints different HISTOGRAM.
you know HISTOGRAM acts different in chart and in seperate window.
Hello,
Yes it acts differently, you do not need to have 2 buffers for green and 2 buffers for red to link 2 points of a Line since it is a Histogram. You just need 1 value for green or red, so 2 buffers are enough.
Also if you only want 1 color drawn (red or green) for each time interval (bar) you will have to ensure that you set the value 0 in one of them.
Exemple, it is going up and the bar displayed should be green so you set the redbuffer to 0 and the green buffer with the desired value:
redbuffer0=0;
greenbuffer0=iClose(NULL,0,i+1)-p*Point;
Let me know exactly what you need to have:
Only 1 bar of 1 color at a time? red or green?
Sunwest
Hello,
Yes it acts differently, you do not need to have 2 buffers for green and 2 buffers for red to link 2 points of a Line since it is a Histogram. You just need 1 value for green or red, so 2 buffers are enough.
Also if you only want 1 color drawn (red or green) for each time interval (bar) you will have to ensure that you set the value 0 in one of them.
Exemple, it is going up and the bar displayed should be green so you set the redbuffer to 0 and the green buffer with the desired value:
redbuffer0=0;
greenbuffer0=iClose(NULL,0,i+1)-p*Point;
Let me know exactly what you need to have:
Only 1 bar of 1 color at a time? red or green?
Sunwestthanks for your advices.
i think the conditions don't have logical errors.
two colors in one bar means the thread weakens ,and have the possibility to reverse.
but if i want to draw a histogram in chart window,should'nt i use two buffers which are limit the lenth of the histogram and the place where to draw it?
and i still dont know why cannot i put it proper in seperate window.
would help if you put chart and explain what indi 4 and what it does
- people would get interested
double color means the trend seems to reverse
and if color doesn't change, you can safely hold your orders.
Interesting indicator, thanks.
Why have you arranged "up" in RED and "down" in GREEN ??
I would have thought that the reverse colours would be more appropriate.
about the colors....
it's a chinese habite,red for bull and green for bear
interesting
if(iClose(NULL,0,i+1)< iOpen(NULL,0,i+1))
{
if(iClose(NULL,0,i) > MathMax(iClose(NULL,0,i+1),iClose(NULL,0,i+2)))
{
greenbuffer0=MathMax(iClose(NULL,0,i+1),iClose(NULL,0,i+2))
greenbuffer1=iClose(NULL,0,i+1)
________
& w asctrend:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
and does anyone know how to add it to the seperate window?
mainly use it in H4