I didn't know what kind of arrow you wanted to have so I just put a simple arrow on the chart which shows the direction of the current bar (or did you want to have an arrow over the candle where it shows the change of the indicator?).
I have not yet tested the actual change in color but it should work correctly. If you want to have any adjustments made just tell me.
The settings are straight forward
displayArrow = true;
upArrow = clrLime;
downArrow = clrRed;
offsetX = 20; //Distance to the edge of the frame
offsetY = 20; //Distance to the edge of the frame
arrowSize = 20; //Size of the arrow
corner = 1; //0 Top left 1 Top right 2|3 bottom left and right
In the code you can change the name of the arrow arrowName and the symbols arrowCodeUp,arrowCodeDn which correspond do WingDings http://www.alanwood.net/demos/wingdings.html
I have not yet tested the actual change in color but it should work correctly. If you want to have any adjustments made just tell me.
The settings are straight forward
displayArrow = true;
upArrow = clrLime;
downArrow = clrRed;
offsetX = 20; //Distance to the edge of the frame
offsetY = 20; //Distance to the edge of the frame
arrowSize = 20; //Size of the arrow
corner = 1; //0 Top left 1 Top right 2|3 bottom left and right
In the code you can change the name of the arrow arrowName and the symbols arrowCodeUp,arrowCodeDn which correspond do WingDings http://www.alanwood.net/demos/wingdings.html
Attached File(s)
AbsoluteStrenghtHisto.mq4
9 KB
|
573 downloads