--------------------begin myfile1.do--------------------
#delimit ;
sysuse sp500,clear;
gen n=_n;
twoway(line open close n in 1/50,sort clpattern(-))
,
plotregion(margin(zero))
title("twoway line")
xtitle("date")
ytitle("price")
legend(label(1 "open") label(2 "close") order(2 1) ring(0) pos(8))
text(1300 25 "open")
;
#delimit cr
--------------------end myfile1.do----------------------
Note that the above code can only be used within a .do or .ado file.
For more information, please refer to help delimit..


雷达卡
京公网安备 11010802022788号







