Hi all, I am trading HSI and defined some buy sell chart pattern by Java program. I have exported the indicator from Java (the data include time and corresponding HSI value) and I want to show it with HSI candlestick chart for comparison. I am using Amibroker but it seems can't fit my need (I don't know how to import the chart data I generated to Amibroker). Would you please advise any other good charting software can suitable for my need? I don't want to rewrite my Java program logic to AFL or other charting software specific language to minimize duplicate effort. Thanks in advance.
You can do anything with AmiBroker except for boiling eggs. Do you have exported the data to ASCII or what have you done? Do you wanna import your Java data to AmiBroker or import Amibroker data to your program? If you wanna create an API connection then you can do that too since AmiBroker provides SDK.
Thanks for your prompt reply. I would like to import the data generated by Java program to Amibroker and show it together with HSI chart. The problem Amibroker import need contains Date Time OHLCV columns but my data only contains Date Time H L. Even I can map all remaining value to 0, shall I need to write AFL to extract the data and plot out?
No, you're wrong. Newbie talk. You can import and plot any data you want. Just upload an example of your data.
In case you don't believe me I have done a test using following format Since you use ASCII data I have set to Date Time,Open,Close After import in Quote Editor you will see following assignments. High column of data file is assigned to Open and High fields. And Low column of data file is assigned to Low and Close fields. Now if you wanna plot that data with just High and Low (in any time frame) you either use this one Code: <code>[B]GraphXSpace[/B] = [COLOR=#800080]10[/COLOR]; Color1 = [COLOR=#0000ff][B]IIf[/B][/COLOR]( [B]H[/B] > [COLOR=#0000ff][B]Ref[/B][/COLOR]( [B]H[/B], -[COLOR=#800080]1[/COLOR] ), [B]colorGreen[/B], [B]colorRed[/B] ); [COLOR=#0000ff][B]SetBarFillColor[/B][/COLOR]( Color1 ); [COLOR=#0000ff][B]PlotOHLC[/B][/COLOR]( [B]H[/B], [B]H[/B], [B]L[/B], [B]L[/B], [COLOR=#800080]"Price"[/COLOR], Color1, [B]styleNoTitle[/B] | [B]styleCandle[/B] | [B]styleNoLabel[/B], </code><code><code>min = [B]Null[/B], max = [B]Null[/B], xshift = [COLOR=#800080]0[/COLOR], zshift = [COLOR=#800080]0[/COLOR], width =</code> [COLOR=#800080]0[/COLOR] ); [COLOR=#0000ff][B]SetChartOptions[/B][/COLOR]( [COLOR=#800080]0[/COLOR], [B]chartShowArrows[/B] | [B]chartShowDates[/B] | [B]ChartWrapTitle[/B] ); [B]Title[/B] = [COLOR=#0000ff][B]StrFormat[/B][/COLOR]( [COLOR=#800080]"{{NAME}} - {{INTERVAL}} {{DATE}}, Lo=%g, Hi=%g, Range=%.1f {{VALUES}}"[/COLOR], [B]L[/B], [B]H[/B], [B]H[/B] - [B]L[/B] );</code> or this one Code: <code>[COLOR=#0000ff][B]Version[/B][/COLOR]( [COLOR=#800080]5.73[/COLOR] ); [B]GraphXSpace[/B] = [COLOR=#800080]10[/COLOR]; [COLOR=#0000ff][B]Plot[/B][/COLOR]( [B]C[/B], [COLOR=#800080]"Price"[/COLOR], [COLOR=#0000ff][B]IIf[/B][/COLOR]( [B]H[/B] > [COLOR=#0000ff][B]Ref[/B][/COLOR]( [B]H[/B], -[COLOR=#800080]1[/COLOR] ), [B]colorGreen[/B], [B]colorRed[/B] ), [B]styleBarNoTicks[/B] | [B]styleNoLabel[/B] | [B]styleNoTitle[/B], min = [B]Null[/B], max = [B]Null[/B], xshift = [COLOR=#800080]0[/COLOR], zshift = [COLOR=#800080]0[/COLOR], width = -[COLOR=#800080]20[/COLOR] ); [COLOR=#0000ff][B]SetChartOptions[/B][/COLOR]( [COLOR=#800080]0[/COLOR], [B]chartShowArrows[/B] | [B]chartShowDates[/B] | [B]ChartWrapTitle[/B] ); [B]Title[/B] = [COLOR=#0000ff][B]StrFormat[/B][/COLOR]( [COLOR=#800080]"{{NAME}} - {{INTERVAL}} {{DATE}}, Lo=%g, Hi=%g, Range=%.1f {{VALUES}}"[/COLOR], [B]L[/B], [B]H[/B], [B]H[/B] - [B]L[/B] );</code> Or whatever code ... And if you apply any of the upper codes then it will look like this. Right?
Very sorry for late reply as I was busy for my "daily work"....would you mind sharing me the image then I can test for it? Besides, if I want to skip the import step manually I need to use the ODBC in Amibroker as middleman to do so?
The codes are already posted but elitetrader destroyed the HTML ouput becasue of their layout change Here are the two ones again without HTML format. Code: GraphXSpace = 10; Color1 = IIf( H > Ref( H, -1 ), colorGreen, colorRed ); SetBarFillColor( Color1 ); PlotOHLC( H, H, L, L, "Price", Color1, styleNoTitle | styleCandle | styleNoLabel, _min = Null, _max = Null, xshift = 0, zshift = 0, width = 0 ); SetChartOptions( 0, chartShowArrows | chartShowDates | ChartWrapTitle ); Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}}, Lo=%g, Hi=%g, Range=%.1f {{VALUES}}", L, H, H - L ); Code: Version( 5.73 ); GraphXSpace = 10; Plot( C, "Price", IIf( H > Ref( H, -1 ), colorGreen, colorRed ), styleBarNoTicks | styleNoLabel | styleNoTitle, _min = Null, _max = Null, xshift = 0, zshift = 0, width = -20 ); SetChartOptions( 0, chartShowArrows | chartShowDates | ChartWrapTitle ); Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}}, Lo=%g, Hi=%g, Range=%.1f {{VALUES}}", L, H, H - L ); You don't need odbc. For what process?