- Joined
- 1 November 2009
- Posts
- 424
- Reactions
- 67
I'm new to Amibroker, trying to import one year of Yahoo EOD data for the ASX. My question is more data related, but it could be something I'm doing wrong with Amibroker or Amiquote so I thought I'd ask here...
I went to the Yahoo Finance page, selected ^AORD, clicked "Components" and manually copied and pasted all of the tickers into the Amiquote Ticker List I created. However, I noticed there are only 489 tickers. I thought the ASX had about 1800 listed companies? Does Yahoo not provide data for the others or am I doing something incorrect?
Check it out at:
http://www.asx.com.au/research/companies/index.htm
Look under "Listed Companies Directory" & download the csv file.
Appreciation is a rare quality.Wysiwyg, thanks heaps for that txt document! That's exactly what I was after!
I renamed the file to a .tls file, however it still remains as a text file, just with a .tsl on the end of itIn Amiquote I click "open" and it's not there, yet when I select "all files" it appears. It still downloads the data into Amibroker, so I'm happy. Thank-you very much
//---- pivot points calculation
DayH = TimeFrameGetPrice("H", inDaily, -1);// yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1);//low
DayC = TimeFrameGetPrice("C", inDaily, -1);//close
DayO = TimeFrameGetPrice("O", inDaily);// current day open
HiDay = TimeFrameGetPrice("H", inDaily);
LoDay = TimeFrameGetPrice("L", inDaily);
PP = (DayL + DayH + DayC)/3 ;
R1 = (2 * PP) - DayL;
S1 = (2 * PP) - DayH;
R2 = (PP - S1) + R1;
S2 = PP - (R1 - S1);
R3 = R1 +(DayH-DayL);
S3 = S1 - (DayH-DayL);
//------------------------------
starttime = Param("Start Time of Period",80000,00100,235900,00100);
endtime = Param("End Time of Period",175500,00100,235900,00100);
ppsct = ParamList("Pivot Selection","R1|R2|R3|S1|S2|S3");
tn = TimeNum();
timecond = tn >= starttime AND tn <= endtime;
myClose = ValueWhen(timecond,Close);
myR1 = ValueWhen(timecond,R1);
myR2 = ValueWhen(timecond,R2);
myR3 = ValueWhen(timecond,R3);
myS1 = ValueWhen(timecond,S1);
myS2 = ValueWhen(timecond,S2);
myS3 = ValueWhen(timecond,S3);
DT = DateTime();
Timer1 = TimeFrameCompress(ValueWhen(Cross(Ref(myClose,-0),myR1), DT), inDaily);
Timer1 = TimeFrameExpand(Timer1, inDaily,expandFirst );
Timer2 = TimeFrameCompress(ValueWhen(Cross(Ref(myClose,-0),myR2), DT), inDaily);
Timer2 = TimeFrameExpand(Timer2, inDaily,expandFirst );
Timer3 = TimeFrameCompress(ValueWhen(Cross(Ref(myClose,-0),myR3), DT), inDaily);
Timer3 = TimeFrameExpand(Timer3, inDaily,expandFirst );
Times1 = TimeFrameCompress(ValueWhen(Cross(myS1,Ref(myClose,-0)), DT), inDaily);
Times1 = TimeFrameExpand(Times1, inDaily,expandFirst );
Times2 = TimeFrameCompress(ValueWhen(Cross(myS2,Ref(myClose,-0)), DT), inDaily);
Times2 = TimeFrameExpand(Times2, inDaily,expandFirst );
Times3 = TimeFrameCompress(ValueWhen(Cross(myS3,Ref(myClose,-0)), DT), inDaily);
Times3 = TimeFrameExpand(Times3, inDaily,expandFirst );
SetOption("NoDefaultColumns",True);
AddTextColumn(Name(),"Pair",1.0,colorLightGrey,colorDarkGrey,52);
AddColumn(DateTime(),"Date/Time",formatDateTime,colorLightGrey,colorDarkGrey,80);
AddColumn(PP,"Pivot",1.5,colorTan,colorDarkGrey,55);
if(ppsct == "R1"){
Filter = DateTime() == timer1;
AddColumn(R1,"R1",1.5,colorLime,colorDarkGrey,55);
AddColumn(Timer1, "Time Cross(C,R1)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
else if(ppsct == "R2"){
Filter = DateTime() == timer2;
AddColumn(R2,"R2",1.5,colorLime,colorDarkGrey,55);
AddColumn(Timer2, "Time Cross(C,R2)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
else if(ppsct == "R3"){
Filter = DateTime() == timer3;
AddColumn(R3,"R3",1.5,colorLime,colorDarkGrey,55);
AddColumn(Timer3, "Time Cross(C,R3)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
else if(ppsct == "S1"){
Filter = DateTime() == times1;
AddColumn(S1,"S1",1.5,colorRed,colorDarkGrey,55);
AddColumn(Times1, "Time Cross(S1,C)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
else if(ppsct == "S2"){
Filter = DateTime() == times2;
AddColumn(S2,"S2",1.5,colorRed,colorDarkGrey,55);
AddColumn(Times2, "Time Cross(S2,C)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
else{
Filter = DateTime() == times3;
AddColumn(S3,"S3",1.5,colorRed,colorDarkGrey,55);
AddColumn(Times3, "Time Cross(S3,C)", formatDateTime,colorLightGrey, colorDarkGrey,111);
}
Gav. Just realised in that list Amiquote will not download many symbols because they are non stock. I am editing same list now. Sorry.
Cross is getting recognized but when using periodicity 1 Minute it always output the time of the last cross not the first one but I want it to output only the times of the first appearing cross of a day period.
Any help much appreciated, thank you!
Would appreciate a PM (or just post here) when you've edited the list. Many thanks
Reply :-
Sorry but don't know why the last cross and not the first cross is registering on the exploration. Maybe it is something to do with n last quotations?
• Liquidity. Stocks must meet a minimum six-month daily
trading average of A$ 200,000. Stocks are excluded if
the six-month daily average trade minimum is less than
A$ 75,000 at the rebalancing.
AB is not the same as C++. C++ I reckon is an easier and more logical language than is AB. The help guides only really give tips on how to program the beast, they aren't geared to be a comprehensive beginner’s guide to programming. Some concepts I find simple to program in AB and others I spend months on and off trying to program only to get nowhere.Hi to all you AB programmers out there,
I just came across a Dummies book for beginner programmers using C++.
Before i buy i wondered if this is the same programming language that Amibroker uses
which would be a real bonus as it starts at my level of programming knowledge,which is zip.
I tried to go via the AB help guides etc but the assumed level of programming knowledge resulted in my losing the will to live.I am hoping said book may be my missing link to the nirvana that is PROGRAMMING!!
Here's hoping,
Sparfarkle
Happy New Year to you all
Is it possible to make the Williams%R..... zeroed based
See code....Tks
function PercentR( periods )
{
return -100 * ( HHV( H, periods ) - C )/( HHV( H, periods ) - LLV( L, periods ) );
}
Plot( PercentR( Param("Periods", 14, 2, 100 ) ),
_DEFAULT_NAME(),
ParamColor("Color", ColorCycle ) );
Hi folks,
Just a quick one.
When I type the stock code into the box at the top of AB, the code changes but the chart doesn't. Same if I'm going through a list of exploration results. I'm stuck on the one chart no matter what I do.
'Sync chart on select' is checked.
Any ideas? Fairly urgent!!!
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?