操纵检出:免查线 15%,斜率 3;测试按相对值
This commit is contained in:
1 parent
96cadfa411
commit
cc3b74e044
3 files changed
+7
-6
No files matched your search
@@ -1478,8 +1478,8 @@ internal static class Program
|
||||
|
||||
Test("操纵检出:被查概率随推价幅度升高,推价每晚衰减,行情盘押中按方向被判", () =>
|
||||
{
|
||||
Check(Market.ManipChance(0.01) == 0 && Market.ManipChance(-0.01) == 0, "幅度低于免查线不查");
|
||||
Check(Market.ManipChance(0.05) > Market.ManipChance(0.03) && Market.ManipChance(-0.05) == Market.ManipChance(0.05), "幅度越大越容易被查,方向无关");
|
||||
Check(Market.ManipChance(Tuning.ManipFree / 2) == 0 && Market.ManipChance(-Tuning.ManipFree / 2) == 0, "幅度低于免查线不查");
|
||||
Check(Market.ManipChance(Tuning.ManipFree + 0.05) > Market.ManipChance(Tuning.ManipFree + 0.03) && Market.ManipChance(-(Tuning.ManipFree + 0.05)) == Market.ManipChance(Tuning.ManipFree + 0.05), "幅度越大越容易被查,方向无关");
|
||||
Check(Market.ManipChance(5) == Tuning.ManipMax, "封顶");
|
||||
var mk = Market.CreateDefault(5); double p0 = mk.Price;
|
||||
mk.PlayerPush += Math.Log(1.1);
|
||||
@@ -1490,7 +1490,7 @@ internal static class Program
|
||||
int manip = 0, win = 0, noPush = 0;
|
||||
for (ulong sd = 1; sd <= 200; sd++)
|
||||
{
|
||||
foreach (var (yes, push, outcome) in new[] { (true, 0.06, true), (false, 0.06, false), (true, 0.0, true) })
|
||||
foreach (var (yes, push, outcome) in new[] { (true, Tuning.ManipFree + 0.06, true), (false, Tuning.ManipFree + 0.06, false), (true, 0.0, true) })
|
||||
{
|
||||
var bk = new PredictBook(); var w = new Wallet { Address = "w" }; w.Add(Assets.CRC, 1e5);
|
||||
var m = PredictMarket.Create(++bk.Seq, PredictKind.Price, "PSC", "PSC", 100, 4, 5, 5, 0.3); bk.Markets.Add(m);
|
||||
@@ -1500,8 +1500,8 @@ internal static class Program
|
||||
else if (yes && push > 0) win++; else if (push == 0) noPush++;
|
||||
}
|
||||
}
|
||||
double expect = Market.ManipChance(0.06) * 200;
|
||||
Check(Math.Abs(manip - expect) < 40 && manip + win == 200 && noPush == 200, $"推价 6% 约 {expect:0} 次被判,被判 {manip},没被判 {win}");
|
||||
double expect = Market.ManipChance(Tuning.ManipFree + 0.06) * 200;
|
||||
Check(Math.Abs(manip - expect) < 40 && manip + win == 200 && noPush == 200, $"推价超线 6% 约 {expect:0} 次被判,被判 {manip},没被判 {win}");
|
||||
});
|
||||
|
||||
Test("高息理财:开张条件、每晚存入与利息、崩盘、被举报、卷走", () =>
|
||||
|
||||
Reference in new issue
Block a user