- Joined
- 14 December 2010
- Posts
- 3,472
- Reactions
- 248
thanks for that.
At the moment this is the code I've got for the top chart. I've changed the color to black as you've said.
How can I add code so that up days are green and down days are red?
_SECTION_BEGIN("Chart");
Vcolor=IIf(tls>0 AND tlm>0 AND tll>0,colorWhite,IIf(tls>0 AND tlm>0 AND tll<0,colorWhite,
IIf(tls>0 AND tlm<0 AND tll<0,colorWhite,IIf(tls<0 AND tlm<0 AND tll<0,colorWhite,IIf(tls<0 AND tlm>0 AND tll>0,colorWhite,
IIf(tls<0 AND tlm<0 AND tll>0,colorWhite,colorWhite))))));
GraphXSpace = 5;
PlotOHLC( Null, High, Low, Close, "", colorBlack, styleBar | styleThick );
Thanks
I've just closed the pane with that chart in it and have lost all the analysis I've done (e.g. trend lines, text etc.....)
Is there any way to get that back?
How do I save future analysis? What folder is the current one saved in?
Thanks,
Matt
One final question.
With the bottom chart. How do I have the price numbers (scale) on the right side of the side of the chart but without the horizontal dotted lines going across the chart?
Thanks
View attachment 43029
Right click on chart > Parameters > Axis & Grid > Show middle lines = No
All of your questions are addressed in the Users Guide (http://www.amibroker.com/guide/) which you will have to become very familiar with if you are going to use AmiBroker.
Thanks for the help with those.
For this last post above what I meant was that when I click on that to make the lines disappear, the number on the right hand side (y axis) disappear also. I wanted to make the lines disappear but still be able to see the numbers. Is this possible?
Tools > Preferences > Colors > Grid (choose background color)
You must follow the syntax exactly (computers are dumb).
PlotShapes( shape, color, layer = 0, yposition = graph0, offset = -12 );
So, for example:
PlotShapes( shapeUpArrow, colorRed, 0, L, -15 );
I am trying to get the average consecutive periods where close is less than previous periods close,and vice versa.
I can code it for the current period but I cant figure out how to go back and average those down runs and up runs over time.
Can anyone help me out?
I am trying to get the average consecutive periods where close is less than previous periods close,and vice versa.
I can code it for the current period but I cant figure out how to go back and average those down runs and up runs over time.
Can anyone help me out?
I am trying to get the average consecutive periods where close is less than previous periods close,and vice versa.
I can code it for the current period but I cant figure out how to go back and average those down runs and up runs over time.
Can anyone help me out?
Prds:=100;
CloseDown:=C<Ref(C,-1);
Total:=Sum(CloseDown,Prds);
AverageDn:=Total/Prds;
AverageDn
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?