strategy_bet_amount

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 4 Imported by: 0

README

功能:下注额策略 说明:

https://www.pinnacle.com/zh-cn/betting-articles/betting-strategy/staking-one-method-to-improve-your-betting/2962vhe9w3jpj7x7

策略1:每一次都奋力一搏 每一次都投注所有资金。优点是可以快速获得丰厚收益。缺点?只要输一次就会输光所有资金,退出游戏。

策略2:固定注额 每一次都投注固定的金额,不管赢了多少钱,也不改变。在此示例中,注额是$100。如果你的胜率是55%,赔率是2,此方法意味着你大幅降低了输光所有注额的机会。遗憾的是,这意味着你的彩金只能以“缓慢而稳定”的方式增加。

策略3:马丁格尔策略 任何一次失败后,加倍下注,利用下一次注额的彩金弥补之前的损失。这种方式的彩金增加速度比固定注额方法快(因为你加倍下注,弥补之前的损失)。但是,如果出现连续失败,你仍必须继续加倍下注,弥补之前的损失,你很快就会投注了一大笔资金。

策略 4:斐波纳契策略 按照斐波纳契顺序增加注额,使用下一次注额的彩金弥补之前的损失。此方法和马丁格尔体育博彩方法有类似的缺点,但是它可以减少连续失败时注额的增加速度(因此,赢奖速度也下降)。

策略 5:比例投注 投注与你的优势成比例的资金在此模拟中,我们使用凯利准则公式计算比例投注。采用这种方法,注额等于优势除于赔率。在此示例中,优势是10%,赔率是一比一,10 / 1等于10。 因此,注额是$1000的10%:$100。如果投注成功,下一个注额将提高到$110,亦即1100总资金的10%。这意味着彩金增加速度比固定注额系统快,损失速度也有所下降。

Documentation

Overview

功能:下注额策略-全下 说明:

功能:下注额策略-斐波那契策略 说明:

功能:下注额策略-固定额度 说明:

功能:下注额策略-凯利策略 说明:

功能:下注额策略-马丁格尔策略 说明:

功能:下注额策略-马丁格尔N策略 说明: 马丁格尔N策略:连续输N把内,输了加倍,之后恢复原始注码,增加止损的概念

功能:下注额策略-基类 说明:

功能:下注额策略-反馈节点 说明:通过反馈节点 矫正 下注额

功能:下注额策略-接口 说明:

功能:下注额策略- 说明:

Index

Constants

View Source
const (
	MIN_BET          = 10     //最小下注
	MAX_BET          = 1000   //最大下注
	NOT_ENOUGH_MONEY = "余额不足" //
)
View Source
const (
	CONTINUE_LOSE_CNT = 4
)
View Source
const (
	KELLY_PERCENTAGE = 0.1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BetAmountStrategy

type BetAmountStrategy struct {
	// contains filtered or unexported fields
}

func (*BetAmountStrategy) Feedback_node_append

func (b *BetAmountStrategy) Feedback_node_append(node *FeedbackNode)

追加反馈节点

func (*BetAmountStrategy) Feedback_node_clear

func (b *BetAmountStrategy) Feedback_node_clear()

反馈节点清除

func (*BetAmountStrategy) Is_enough_money

func (b *BetAmountStrategy) Is_enough_money(amount int) bool

查询余额是否足够

func (*BetAmountStrategy) Query_option

func (b *BetAmountStrategy) Query_option() (int, int, BET_AMOUNT_STRATEGY.TYPE)

查询配置

type FeedbackNode

type FeedbackNode struct {
	Current_chip float64       //当前筹码
	Bet_amount   int           //下注额
	Result_area  BET_AREA.TYPE //结果区域
	Result_score float64       //结果得分
}

type IBetAmountStrategy

type IBetAmountStrategy interface {
	Feedback_node_append(node *FeedbackNode)            //追加反馈节点
	Feedback_node_clear()                               //反馈节点清除
	Query_bet_amount() (int, error)                     //查询下注额
	Is_enough_money(amount int) bool                    //查询余额是否足够
	Query_option() (int, int, BET_AMOUNT_STRATEGY.TYPE) //查询配置
}

func NewBetAmountStrategy

func NewBetAmountStrategy(t BET_AMOUNT_STRATEGY.TYPE, init_chip int) IBetAmountStrategy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL