This is the popular PFE.
It was originally coded without scaling. So I modified it.
Now it has period, smoothing and scaling for different instruments for example stock indices as well as fx.
However, I would like it to have two colors on the PFE line instead of a single color.
Red or other customizable color for below 0. And Blue or other color for above 0.
I understand it requires another buffer and another if statement, however on this indi, it's trickier than normal.
Can anyone mod this to include an up and down color that changes as the indi crosses above and below 0?
Thanks in advance.
It was originally coded without scaling. So I modified it.
Now it has period, smoothing and scaling for different instruments for example stock indices as well as fx.
However, I would like it to have two colors on the PFE line instead of a single color.
Red or other customizable color for below 0. And Blue or other color for above 0.
I understand it requires another buffer and another if statement, however on this indi, it's trickier than normal.
Can anyone mod this to include an up and down color that changes as the indi crosses above and below 0?
Thanks in advance.
Attached File(s)
PFE.mq4
2 KB
|
398 downloads