2011年9月10日 星期六

股市依計劃反彈,不過只彈了兩天而已,比想像中的弱勢
今天美股大跌

意味著準備開始測前低了

2011年9月7日 星期三

跟據自己亂亂說

美元按計劃反彈
但股市先跌 ,美元彈升5日
遞延效應
明日應該股市漲,至少三天比較正常

2011年9月5日 星期一

Tick Speed


input:
cap(15),
cap.color(darkgray);

if BarType = 0 then
begin 
	if date = date[1] then 
	begin
		value1 = (TimeToMinutes(time_s)-TimeToMinutes(time_s[1]));
		if value1 <= cap then 
		plot1(value1, "tick time")
		else
		plot1(cap,"Cap", cap.color);
	end;
end; 

最近一直找的code ,Tick countdown


{Tick Countdown
http://frankeasylanguage.blogspot.com/2008_02_01_archive.html}
//be sure you use "Tick Count" for volume
//works for both tick and share charts

input: 
AlertTicks(10), 
HOffset(3),
AlertText("tick"),
AlertColor(magenta),
NonAlertColor(magenta);

vars: 
txt(-1),
TicksLeft(0),
color(0);

if BarType = 0 then
begin
	//initiate the text variable
	if BarNumber = 1 then
	txt = text_new(date,time,close," ");

	TicksLeft = BarInterval - ticks;

	{if OneAlert(TicksLeft <= AlertTicks) then
	alert(NumToStr(TicksLeft,0)+"-"+AlertText+" alert");}

	//text color changes with alert
	if TicksLeft > AlertTicks then
	color = NonAlertColor
	else
	color = AlertColor;

	//reset at each tick
	text_SetLocation(txt,date,CalcTime(time,HOffset),close);
	text_SetString(txt,NumToStr(TicksLeft,0)+" " + AlertText);
	text_SetColor(txt,color);
end;