本文整理汇总了Python中UI.introduction方法的典型用法代码示例。如果您正苦于以下问题:Python UI.introduction方法的具体用法?Python UI.introduction怎么用?Python UI.introduction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI.introduction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: dict
# 需要导入模块: import UI [as 别名]
# 或者: from UI import introduction [as 别名]
from Instruction_dict import Instruction_dict
__author__ = 'matsrichter'
import Optimization_System as os
import UI
import FX_Reader as fxr
import Sender_Receiver as sr
import time as time
user_input = UI.introduction()
tstep = 0
#instruction_dict = dict()
#initialize the instruction_dict and layer 1 params
#user_input = UI.introduction()
Instruction_dict.values['capital'] = user_input['capital']
Instruction_dict.values['account_val'] = user_input['capital']
Instruction_dict.values['anti_risk'] = user_input['anti_risk']
Instruction_dict.values['symbol'] = user_input['symbol']
#DEBUG
Instruction_dict.values['DEBUG'] = user_input['DEBUG']
Instruction_dict.values['lever'] = user_input['lever']
Instruction_dict.values['dummy_reader'] = user_input['dummy_reader']
#instruction for layer 2
Instruction_dict.values['max_draw_down'] = user_input['capital'] * 0.1
#risk aversion is divided by 2, to avoid a high initial trading thesholds and therefore trading block by this parameter
Instruction_dict.values['risk_aversion'] = 0.25
Instruction_dict.values['stoploss'] = 10