- This topic has 1 ข้อความตอบกลับ, 2 เสียง, and was last updated 2 years, 9 months มาแล้ว by .
-
กระทู้
-
/ Calculate Ranking
wlnum = CategoryFind( “ALLSTOCK”, categoryWatchlist ); //Find watchlist number
symlist = CategoryGetSymbols( categoryWatchlist, wlnum );if ( Status(“stocknum”) == 0 )
{
//Delete static variables
StaticVarRemove( “ROCRank6month*” );for( i = 0; ( Symbol = StrExtract( symlist, i ) ) != “”; i++ ) //fill input value (for ranking) in static arrays
{
SetForeign(Symbol);
value = ROC( C,125 ); //Rate of change in 6 month
RestorePriceArrays();
StaticVarSet(“ROCRank6month”+Symbol,value);
}StaticVarGenerateRanks( “rank”, “ROCRank6month”, 0, 1224 );
} RankROC6month = StaticVarGet(“RankROC6month”+Name());
คำถาม
1.ทำไมบางท่านถึงใส่ค่า
if ( Symbol != “0SET” )
2.ทำไมบางท่านใช้ค่า array = Foreign( Symbol, “C”, fixup = 0 ); แทนที่จะเป็น function SETFOREiGN ครับ
3.ขอความกรุณารบกวนพี่ๆช่วยอธิบายการใช้งาน function StaticVarGenerateranks ให้ด้วยครับ
ขอบคุณครับ
- คุณต้องเข้าสู่ระบบเพื่อตอบกลับกระทู้นี้