Period: = If (time 0
Average price: = sum (amount, 0)/sum (vol, 0)/100;
Threading: =COUNT (cross (c, average price), period);
Online time: = last(c & gt;; = average price);
Total time: = COUNT(c & gt;; = average price, period);
Bulk purchase: =SUM (notice (5), 0);
Bulk sale: =SUM(NOTICE(6), 0);
Xg: thread cycle /4 and total time > 4* cycle /5 and big selling+big selling > 2;