AFL to plot High Low Close in Bar Chart (No Open)

#1
Hi Members,

You all have always been of great help and support.

I am searching for an Amibroker AFL to plot HLC (High Low Close) in a bar chart.

I tried much but could not succeed in omitting plotting of Close in the bar chart.

I have attached an image. The image highlighted in RED is the one I am looking for.

Thanks again.
John
 
Last edited:

mastermind007

Well-Known Member
#2
Hi Members,

You all have always been of great help and support.

I am searching for an Amibroker AFL to plot HLC (High Low Close) in a bar chart.

I tried much but could not succeed in omitting plotting of Close in the bar chart.

I have attached an image. The image highlighted in RED is the one I am looking for.

Thanks again.
John
If you want to omit Open
Code:
  PlotOHLC( C, H, L, C, "", colorBlack, styleBar, Null, Null, Null, -1 );
If you want to omit Close
Code:
  PlotOHLC( O, H, L, O, "", colorBlack, styleBar, Null, Null, Null, -1 );
 

trash

Well-Known Member
#3
If you want to omit Open
Code:
  PlotOHLC( C, H, L, C, "", colorBlack, styleBar, Null, Null, Null, -1 );
If you want to omit Close
Code:
  PlotOHLC( O, H, L, O, "", colorBlack, styleBar, Null, Null, Null, -1 );

It's not quite correct.

Just use Null

Code:
PlotOHLC( Null, H, L, C, "", colorBlack, styleBar, Null, Null, Null, -1 );
Code:
PlotOHLC( O, H, L, Null, "", colorBlack, styleBar, Null, Null, Null, -1 );
 

mastermind007

Well-Known Member
#4
It's not quite correct.

Just use Null

Code:
PlotOHLC( Null, H, L, C, "", colorBlack, styleBar, Null, Null, Null, -1 );
Code:
PlotOHLC( O, H, L, Null, "", colorBlack, styleBar, Null, Null, Null, -1 );
Amazing !!! on My comp, using null created candles that start from bottom of chart so I assumed null is being interpreted as zero.
 
#5
It's not quite correct.

Just use Null

Code:
PlotOHLC( Null, H, L, C, "", colorBlack, styleBar, Null, Null, Null, -1 );
Code:
PlotOHLC( O, H, L, Null, "", colorBlack, styleBar, Null, Null, Null, -1 );
***********************

Thanks Trash- It worked. Only the thing that I am missing is the parameters. Color & Style. Any coding??

Thanks,
Johnny
 
#9
Thanks trash,
I was looking for this a long time.
Now how to plot a thick bars? I tried to use StyleThick after StyleBar.
Any guidance?
Have a good day...
 

Similar threads