Job Lists
Must Watch!
MustWatch
HTML protection and learning program
there is no way to protect the code,
the only way to protect the operation is using server, php? mongodb? python?
So the client side is only a terminal to show messages
forget online delivery,
but use html page as tool for memories
login and download a data in indexedDB or localstorage,
samples in img,
data disarrayd,
a repeat loop of five:
show quiz and choices
wait for answer
check answer and record result
html can be copied, but scripts and css may be hold locally, also the database, also initial database may stop operations
webscraping
https://xueqiu.com/u/4704935031
平原公子-申鹏
https://zhuanlan.zhihu.com/dahuaianguo
平原公子的大槐安国
https://www.bbc.co.uk/news/extra/HVJMVYKmjp/seeds-of-life
中华诗文学习
https://new.qq.com/omn/author/5026609
https://freewechat.com/profile/MzIxODU5MjczMQ==
commodity indexes on TDX
note the different commodity indexes on TDX to predict economy trends
monitor the put/call activities summary to determine further actions
add up down sound alert to html monitoring
use r to filter hub
webpage call r
give an address, filter it, put result in html file, open it
already exist and modify it
learn vocabs with pics
find up trends stks
bbg
超声波清洗机
https://item.taobao.com/item.htm?spm=a230r.1.14.27.618d5203T8Qnzk&id=590966026614&ns=1&abbucket=18#detail
超声波清洗机
script to match english sentenses and translations
run script
ask to paste sentenses
ask to paste baidu translations
show results
Recent Project Objective:
Start the monitoring process
read AllLastVal,
Loop: Peek status, compare last value,report status
compare criteria: C > last C, Vol?
multiple criterias: case 1 case 2...
Process the A & HK STK List
Check 50 big U/D to locate trend and sectors
statistics of the 9 sectors
# ====
Continous monitoring and plot
HK Mon Completed, Start to process A
Monitoring jobs for diffrerent sectors and areas can be established, A, B, gold, oil, GEM, ETF...
Further Monotoring standards and rules can be established and scripts can be set up
Monotoring rules : big vol, big amt,rise above bar
TargetMonitoring!!
# ====
http://www.aastocks.com/tc/stocks/market/index/hk-index.aspx
http://www.aastocks.com/tc/stocks/market/index/china-index.aspx
detect and report peridical changes
# ====
Enter a code, just monitor this dedicated status changes
# ====
prepare list of all data files and calculate trends
--modify reawebpage to get multiple pages according to a list
and then create a chop body loop
apply(X,INDEX,FUN=)
a vector or array or list of values obtained by applying a function FUN to margins (INDEX) of X
lapply(X,FUN)
apply FUN to each element of the list X
tapply(X,INDEX,FUN=)
apply FUN to each cell of a ragged array given by X with indexes INDEX
by(data,INDEX,FUN)
apply FUN to data frame data subsetted by INDEX
merge(a,b)
merge two data frames by common columns or row names
xtabs(a b,data=x)
a contingency table from cross-classifying factors
aggregate(x,by,FUN)
splits the data frame x into subsets, computes summary statistics for each,
and returns the result in a convenient form;
by is a list of grouping elements, each as long as the variables in x
stack(x, ...)
transform data available as separate columns in a data frame or list into a single column
unstack(x, ...)
inverse of stack()
reshape(x, ...)
reshapes a data frame between wide format with repeated measurements in separate columns
of the same record and long format with the repeated measurements in separate records;
use (direction=wide or (direction=long)
Organise the R documents in my docs into HTML links
upload files to co.nf
Selections:
R Exercises
Some Other Simple Actions
=========================
-Simple Actions:
# This is different for every address,
# so this will be standalone, not general!
# This will be set as a template!
Copy Address & Paste
Read page
ChopHeadTail, Head and tail are hardcoded
Recreate(conversions) new page(or pages)
Open the new page
-Simple Actions:
Copy & Paste
Convert to HTML links
Save to file
The Process Plan
================
Use FetchKline to calculate the trend value, after day trade close, this will take time, result will be stored in a list for alarm trigger next trade day.
FetchKline
DynamCurv and store the table
a table will be stored to record Daily Data,
furthermore indirect addressing should be considered, HLCV
PeekStatus and update the last value
the latest values will be substituted in the Kline table
CalcLastPtVal
calculation of the latest trend data
Comparison and alert
to compare the latest value according to the set of rules, and report the status
set of rules:
loop to peek
This is the list of functions installed
====================
FetchKline <- function(onecode){
DynamCurv <- function(PDataSet, RegrPeriod){
CalcTrend <- function(PDataSet, RegrPeriod, StartP, LastPTR)
mysd = function(theVec, thePoint) {
TrendValue <- function(PDataSet, DataStart, DataEnd){
CalcLastPtVal <- function(CDataSet){
PeekStatus <- function(onecode){
PeekAStatus <- function(onecode){
FetchDataSet = FetchKline(onecode)
theLastPtValTable = CalcLastPtVal(FetchDataSet)
newData = PeekStatus(onecode)
FetchDataSet[160, c("Close", "High", "Low", "Vol")] = newData[c("NewPrice", "High", "Low", "Vol")]
theLastPtValTable = CalcLastPtVal(FetchDataSet)
CodeTable=readLines("QuoteCode.txt") # note! must be in char, cannot be numeric
DispData <- function(onecode, UD, price, Diff, H, L, Vol, Amt){
QuotePrice <- function(onecode){
MultiQuote <- function(CodeTable){
R reminder
#===========
Cannot find the time event driven command in R language
EventName
Alarm on or off
Date
Time 24hr format
Repeat yes or not
RepTime minutes, hour, day, week, month
Action Show Msg or Play AlertSound or Call Application
Read EventTable
=======================
daily bbg detection
preparation: prepare prevData and ma60Amt
and store result
load prev data: prevData
cal ma amt: ma60Amt
loop:
check new data
compare prevData and stcAmt with rule
if ok give alarm
wait
1 write preprocess script
2 write daily bbg
===================
On going job:
D:\KPC\Dropbox\MyDocs\R misc Jobs\STKMon\Mon AmtDiff ABC ABH.R
Price simulations
# random price, vol 1 secs
# edge 20 secs 0, +-1 trends 10 secs
# vol pulses 25 secs 0, +-1 trends 10 secs
# plot charts
# measure trends
# shift function to add sample(-10:10, 1) to end
shiftedge = function(edge) {
return(
c(tail(edge, length(edge)-1), sample(-10:10, 1))
)
}
# calcWave
calcWAve = function(theArray) {
sum = 0
for( i in 1:length(theArray) ) {sum = sum + theArray[i] * i;}
return (sum / ((1 + length(theArray))*length(theArray)/2))
}
# init arrays
edge <- sample(-10:10, 60, replace=TRUE)
edgebasetrend = 0
for(i in 1:60){
edge = shiftedge(edge)
edgebasetrend = c(edgebasetrend, calcWAve(edge))
}
edgebasetrend = tail(edgebasetrend, 60)
# loop begins
for(i in 1:60){
edge = shiftedge(edge)
edgebasetrend = c(edgebasetrend, calcWAve(edge))
edgebasetrend = tail(edgebasetrend, 60)
Sys.sleep(1)
plot(edgebasetrend)
}
modify collect daily data from net
CodeTable
theprevdata
代码 名称 涨幅% 总金额 现价 最高 最低 昨收
theHeader = "http://web.ifzq.gtimg.cn/appstock/app/hkfqkline/get?_var=kline_dayqfq¶m=hk"
theTail = ",day,,,1,qfq"
onecode = "07500"
thepage = readLines(paste0(theHeader,onecode,theTail), encoding="GB2312", warn=FALSE)
thepage
07500 FI二南方 curC 7.53 C% -1.6 c% 0 cAmt 153 almLv 9 pct 0 DAmt 25819 pcDAmt 1
create database
create form:
search, show result on form and show msg of search results
update, after update show msg to notify success
add new, after addition show msg to notify success
remove this, after removal show msg to notify success
使用月线图
10日线
找出最高最低 计算现位 按强弱标准 分类 报表
强弱标准: 百分比 趋势线 统计均值 恒指
prepare code list
load data, find max, min, floatPosPct, trendGrids,
find the largest amt realtime and give a list
monitor the changes and swiftly switching
modify strongList.html with new std and amt
dedicated monitoring 3 stks
keep a all time status list of each stk
give alarm on turning point on cx320
calc wave not from file
use data from prev dataset not from wave
intensivemon does not collect daylines
run loop to test chkx and raise flags
at 9:20 export one page of the most active stks for record and comparison
detect upx dnx 5Days WAve
detect upx 10Days WAve
load wAveTable
compare wAveTable
if prev c < wAveTable and c >wAveTable
upx
check flag if not set, set it and record to html
if prev c > wAveTable and c less than wAveTable
dnx
check flag if not set, set it and record to html
detect worst scenerio vanishing
cX5 cont.Dn
cX20 cont.Dn
cx80 cont.Dn
cx320 cont.Dn
5X20 cont.Dn
5x80 cont.Dn
20X80 cont.Dn
20X320 cont.Dn
80X320 cont.Dn
5X80 DnX
All DnX
20X320 Dn
XwAve5 Dn
XwAve10 Dn
load list
split it
if item in the list, remove it
addtoheedlist ondbclick
daily analysis using chkminiute
remove the coldbench list because 00506
php login
show random charts
php mysql
init database
create database if not exist
create table: id ques ans grade
create structure
load file and insert into database
select question
select 5 choices
echo on screen
wait for answer
wait for answer loop, use check key
on key change submit to php
Learning program to maximise quizQues occurance per day
when startup to load quiz file, load config file, read lastdate, ie the todate, and write the todate
check date
record it in file and in memory
todate: string
lastdate:
compare: if different, reset criteria, else cont limit
cont limit:
make a long queue, ordered by grades, from star 1: 2:3, qty 100
ask one by one in sequence
if end of list, regenerate list
central remote contral
idea:
manual and timer, central remote control of all switches by wifi,
aircond, fans, lighting, window shades, door and windows, burglar alarms
washing machines, cookers, kitchen wares, laundry, garage,
make money with ai
ai applications
predict
classifications
creations, music generation
areas:
energy
education
finance
centralise all interest group topics
collect all topic list
randommise all items from all topics
on click, openit
sort by '<h2>' , this use the imgList
and <h2> lists, this use search loop
may use localstorage to store toc to speedup load time, not possible because of content target mod each time
IDEAS:
to sign up using a fake or temporary phone number from Google Voice, for instance.
php quiz
php load local file and split tabs for quiz file
php load local score file
use javascript to collect answer
for loop of five
listofchart.js
on listofchart.js:
modify
showAllCharts()
to add more info
compare with wAve dayline
record largest amt at 9:29
amt u/d
to compare relation with daily performance
冷门股 成交加大警示
if coldbench, flsz, and rising, orange color, underline, boom sound
detect range diff
check fund flow ~ amt
revamp learning english app
simple loop 100 and repeat loop
read wordlist, read score list, loop stack list
chk loop stack length
supplement and random select 1 star,
from star 2 if star 2 > 10
and last star 2 vacancy >15
re random first 5 before start, put back to stack
start to quiz
未成年少女不回家
女兒經常晚上不回家 在香港法律
我女兒14歲 最近經常晚上不回家在外邊過夜 我能怎麼辦?
芷若園
24小時危機熱線﹕18281
電郵﹕
ceasecrisis@tungwah.org.hk
文﹕東華三院「芷若園」危機介入及支援服務
https://familyclic.hk/tc/aboutus.shtml
家庭社區法網
青法網熱線
提供青少年犯罪違規和預防教育相關的咨詢服務
參與「青年違法防治中心」專才義工隊或與我們的跨專業團隊合作
熱線服務時間:星期一至星期五早上十時至晚上十時
如有任何疑問或查詢,請即致電:8100 9669與我們聯絡
香港青年協會西貢及黃大仙外展社會工作隊
地址:新界將軍澳寶林邨寶寧樓320-322室
電話:2701 8866
傳真:2706 2206
daily jobs:
one program for every languages: r, python, javascript, php, c
one hour of english work
one hour of history
one hour of nodejs
one hour of education, econ, others
one hour of datatable
one hour filtering stk uptrends by choosing from active and flsz list
c program: read file
my familiar computer languages
App Inventor, Assembly language, DOS Batch file, C, c++, CSS, git, HTML, html5, JavaScript, jquery, PHP, powershell, Python, R, Rust, SQL, VB, angularjs, regular expression, kivy, micro python, D3, SVG, canvas, G code, rgraph