from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Disposed2BeOverconfident' players_per_group = None num_rounds = 1 initial_price = c(30) sure_payment = c(4) exchange_rate = 100 Stock_type = ('hi', 'lo', 'lo', 'lo') Price_changes = (-1, -3, 2, 6) Price_change_weights_hi = (0.2, 0.2, 0.3, 0.3) Price_change_weights_lo = (0.3, 0.3, 0.2, 0.2) List_of_stocks = ['Stock1', 'Stock2', 'Stock3', 'Stock4', 'Stock5', 'Stock6', 'Stock7', 'Stock8', 'Stock9', 'Stock10', 'Stock11', 'Stock12', 'Stock13', 'Stock14', 'Stock15', 'Stock16', 'Stock17', 'Stock18', 'Stock19', 'Stock20', 'Stock21', 'Stock22', 'Stock23', 'Stock24', 'Stock25', 'Stock26', 'Stock27', 'Stock28', 'Stock29', 'Stock30', 'Stock31', 'Stock32', 'Stock33', 'Stock34', 'Stock35', 'Stock36', 'Stock37', 'Stock38', 'Stock39', 'Stock40', 'Stock41', 'Stock42', 'Stock43', 'Stock44'] endowment = 300 stockPrice = 30 fee = 3 fee_high_diff = 0.5 class Subsession(BaseSubsession): def creating_session(self): # randomize to treatments import random for player in self.get_players(): player.Treatment = random.choice(['SellingGains', 'SellingLosses']) class Group(BaseGroup): pass class Player(BasePlayer): Treatment = models.StringField() Consent = models.IntegerField(choices=[[1,'I CONSENT to take part in this study'], [2,'I DO NOT CONSENT to take part in this study']], widget=widgets.RadioSelect) Stock_type1_1 = models.StringField() Stock_type2_1 = models.StringField() Stock_type3_1 = models.StringField() Stock_type4_1 = models.StringField() Stock_type5_1 = models.StringField() Stock_type6_1 = models.StringField() Stock_type7_1 = models.StringField() Stock_type8_1 = models.StringField() Stock_type9_1 = models.StringField() Stock_type10_1 = models.StringField() Stock_type11_1 = models.StringField() Stock_type12_1 = models.StringField() Stock_type13_1 = models.StringField() Stock_type14_1 = models.StringField() Stock_type15_1 = models.StringField() Stock_type16_1 = models.StringField() Stock_type17_1 = models.StringField() Stock_type18_1 = models.StringField() Stock_type19_1 = models.StringField() Stock_type20_1 = models.StringField() Stock_type21_1 = models.StringField() Stock_type22_1 = models.StringField() Stock_type23_1 = models.StringField() Stock_type24_1 = models.StringField() Stock_type25_1 = models.StringField() Stock_type26_1 = models.StringField() Stock_type27_1 = models.StringField() Stock_type28_1 = models.StringField() Stock_type29_1 = models.StringField() Stock_type30_1 = models.StringField() Stock_type31_1 = models.StringField() Stock_type32_1 = models.StringField() Stock_type33_1 = models.StringField() Stock_type34_1 = models.StringField() Stock_type35_1 = models.StringField() Stock_type36_1 = models.StringField() Stock_type37_1 = models.StringField() Stock_type38_1 = models.StringField() Stock_type39_1 = models.StringField() Stock_type40_1 = models.StringField() Stock_type41_1 = models.StringField() Stock_type42_1 = models.StringField() Stock_type43_1 = models.StringField() Stock_type44_1 = models.StringField() Stock_type1_2 = models.StringField() Stock_type2_2 = models.StringField() Stock_type3_2 = models.StringField() Stock_type4_2 = models.StringField() Stock_type5_2 = models.StringField() Stock_type6_2 = models.StringField() Stock_type7_2 = models.StringField() Stock_type8_2 = models.StringField() Stock_type9_2 = models.StringField() Stock_type10_2 = models.StringField() Stock_type11_2 = models.StringField() Stock_type12_2 = models.StringField() Stock_type13_2 = models.StringField() Stock_type14_2 = models.StringField() Stock_type15_2 = models.StringField() Stock_type16_2 = models.StringField() Stock_type17_2 = models.StringField() Stock_type18_2 = models.StringField() Stock_type19_2 = models.StringField() Stock_type20_2 = models.StringField() Stock_type21_2 = models.StringField() Stock_type22_2 = models.StringField() Stock_type23_2 = models.StringField() Stock_type24_2 = models.StringField() Stock_type25_2 = models.StringField() Stock_type26_2 = models.StringField() Stock_type27_2 = models.StringField() Stock_type28_2 = models.StringField() Stock_type29_2 = models.StringField() Stock_type30_2 = models.StringField() Stock_type31_2 = models.StringField() Stock_type32_2 = models.StringField() Stock_type33_2 = models.StringField() Stock_type34_2 = models.StringField() Stock_type35_2 = models.StringField() Stock_type36_2 = models.StringField() Stock_type37_2 = models.StringField() Stock_type38_2 = models.StringField() Stock_type39_2 = models.StringField() Stock_type40_2 = models.StringField() Stock_type41_2 = models.StringField() Stock_type42_2 = models.StringField() Stock_type43_2 = models.StringField() Stock_type44_2 = models.StringField() Stock1_p1_1 = models.IntegerField() Stock1_p2_1 = models.IntegerField() Stock1_p3_1 = models.IntegerField() Stock1_p4_1 = models.IntegerField() Stock1_p5_1 = models.IntegerField() Stock1_p6_1 = models.IntegerField() Stock1_p7_1 = models.IntegerField() Stock1_p8_1 = models.IntegerField() Stock1_p9_1 = models.IntegerField() Stock1_p10_1 = models.IntegerField() Stock2_p1_1 = models.IntegerField() Stock2_p2_1 = models.IntegerField() Stock2_p3_1 = models.IntegerField() Stock2_p4_1 = models.IntegerField() Stock2_p5_1 = models.IntegerField() Stock2_p6_1 = models.IntegerField() Stock2_p7_1 = models.IntegerField() Stock2_p8_1 = models.IntegerField() Stock2_p9_1 = models.IntegerField() Stock2_p10_1 = models.IntegerField() Stock3_p1_1 = models.IntegerField() Stock3_p2_1 = models.IntegerField() Stock3_p3_1 = models.IntegerField() Stock3_p4_1 = models.IntegerField() Stock3_p5_1 = models.IntegerField() Stock3_p6_1 = models.IntegerField() Stock3_p7_1 = models.IntegerField() Stock3_p8_1 = models.IntegerField() Stock3_p9_1 = models.IntegerField() Stock3_p10_1 = models.IntegerField() Stock4_p1_1 = models.IntegerField() Stock4_p2_1 = models.IntegerField() Stock4_p3_1 = models.IntegerField() Stock4_p4_1 = models.IntegerField() Stock4_p5_1 = models.IntegerField() Stock4_p6_1 = models.IntegerField() Stock4_p7_1 = models.IntegerField() Stock4_p8_1 = models.IntegerField() Stock4_p9_1 = models.IntegerField() Stock4_p10_1 = models.IntegerField() Stock5_p1_1 = models.IntegerField() Stock5_p2_1 = models.IntegerField() Stock5_p3_1 = models.IntegerField() Stock5_p4_1 = models.IntegerField() Stock5_p5_1 = models.IntegerField() Stock5_p6_1 = models.IntegerField() Stock5_p7_1 = models.IntegerField() Stock5_p8_1 = models.IntegerField() Stock5_p9_1 = models.IntegerField() Stock5_p10_1 = models.IntegerField() Stock6_p1_1 = models.IntegerField() Stock6_p2_1 = models.IntegerField() Stock6_p3_1 = models.IntegerField() Stock6_p4_1 = models.IntegerField() Stock6_p5_1 = models.IntegerField() Stock6_p6_1 = models.IntegerField() Stock6_p7_1 = models.IntegerField() Stock6_p8_1 = models.IntegerField() Stock6_p9_1 = models.IntegerField() Stock6_p10_1 = models.IntegerField() Stock7_p1_1 = models.IntegerField() Stock7_p2_1 = models.IntegerField() Stock7_p3_1 = models.IntegerField() Stock7_p4_1 = models.IntegerField() Stock7_p5_1 = models.IntegerField() Stock7_p6_1 = models.IntegerField() Stock7_p7_1 = models.IntegerField() Stock7_p8_1 = models.IntegerField() Stock7_p9_1 = models.IntegerField() Stock7_p10_1 = models.IntegerField() Stock8_p1_1 = models.IntegerField() Stock8_p2_1 = models.IntegerField() Stock8_p3_1 = models.IntegerField() Stock8_p4_1 = models.IntegerField() Stock8_p5_1 = models.IntegerField() Stock8_p6_1 = models.IntegerField() Stock8_p7_1 = models.IntegerField() Stock8_p8_1 = models.IntegerField() Stock8_p9_1 = models.IntegerField() Stock8_p10_1 = models.IntegerField() Stock9_p1_1 = models.IntegerField() Stock9_p2_1 = models.IntegerField() Stock9_p3_1 = models.IntegerField() Stock9_p4_1 = models.IntegerField() Stock9_p5_1 = models.IntegerField() Stock9_p6_1 = models.IntegerField() Stock9_p7_1 = models.IntegerField() Stock9_p8_1 = models.IntegerField() Stock9_p9_1 = models.IntegerField() Stock9_p10_1 = models.IntegerField() Stock10_p1_1 = models.IntegerField() Stock10_p2_1 = models.IntegerField() Stock10_p3_1 = models.IntegerField() Stock10_p4_1 = models.IntegerField() Stock10_p5_1 = models.IntegerField() Stock10_p6_1 = models.IntegerField() Stock10_p7_1 = models.IntegerField() Stock10_p8_1 = models.IntegerField() Stock10_p9_1 = models.IntegerField() Stock10_p10_1 = models.IntegerField() Stock11_p1_1 = models.IntegerField() Stock11_p2_1 = models.IntegerField() Stock11_p3_1 = models.IntegerField() Stock11_p4_1 = models.IntegerField() Stock11_p5_1 = models.IntegerField() Stock11_p6_1 = models.IntegerField() Stock11_p7_1 = models.IntegerField() Stock11_p8_1 = models.IntegerField() Stock11_p9_1 = models.IntegerField() Stock11_p10_1 = models.IntegerField() Stock12_p1_1 = models.IntegerField() Stock12_p2_1 = models.IntegerField() Stock12_p3_1 = models.IntegerField() Stock12_p4_1 = models.IntegerField() Stock12_p5_1 = models.IntegerField() Stock12_p6_1 = models.IntegerField() Stock12_p7_1 = models.IntegerField() Stock12_p8_1 = models.IntegerField() Stock12_p9_1 = models.IntegerField() Stock12_p10_1 = models.IntegerField() Stock13_p1_1 = models.IntegerField() Stock13_p2_1 = models.IntegerField() Stock13_p3_1 = models.IntegerField() Stock13_p4_1 = models.IntegerField() Stock13_p5_1 = models.IntegerField() Stock13_p6_1 = models.IntegerField() Stock13_p7_1 = models.IntegerField() Stock13_p8_1 = models.IntegerField() Stock13_p9_1 = models.IntegerField() Stock13_p10_1 = models.IntegerField() Stock14_p1_1 = models.IntegerField() Stock14_p2_1 = models.IntegerField() Stock14_p3_1 = models.IntegerField() Stock14_p4_1 = models.IntegerField() Stock14_p5_1 = models.IntegerField() Stock14_p6_1 = models.IntegerField() Stock14_p7_1 = models.IntegerField() Stock14_p8_1 = models.IntegerField() Stock14_p9_1 = models.IntegerField() Stock14_p10_1 = models.IntegerField() Stock15_p1_1 = models.IntegerField() Stock15_p2_1 = models.IntegerField() Stock15_p3_1 = models.IntegerField() Stock15_p4_1 = models.IntegerField() Stock15_p5_1 = models.IntegerField() Stock15_p6_1 = models.IntegerField() Stock15_p7_1 = models.IntegerField() Stock15_p8_1 = models.IntegerField() Stock15_p9_1 = models.IntegerField() Stock15_p10_1 = models.IntegerField() Stock16_p1_1 = models.IntegerField() Stock16_p2_1 = models.IntegerField() Stock16_p3_1 = models.IntegerField() Stock16_p4_1 = models.IntegerField() Stock16_p5_1 = models.IntegerField() Stock16_p6_1 = models.IntegerField() Stock16_p7_1 = models.IntegerField() Stock16_p8_1 = models.IntegerField() Stock16_p9_1 = models.IntegerField() Stock16_p10_1 = models.IntegerField() Stock17_p1_1 = models.IntegerField() Stock17_p2_1 = models.IntegerField() Stock17_p3_1 = models.IntegerField() Stock17_p4_1 = models.IntegerField() Stock17_p5_1 = models.IntegerField() Stock17_p6_1 = models.IntegerField() Stock17_p7_1 = models.IntegerField() Stock17_p8_1 = models.IntegerField() Stock17_p9_1 = models.IntegerField() Stock17_p10_1 = models.IntegerField() Stock18_p1_1 = models.IntegerField() Stock18_p2_1 = models.IntegerField() Stock18_p3_1 = models.IntegerField() Stock18_p4_1 = models.IntegerField() Stock18_p5_1 = models.IntegerField() Stock18_p6_1 = models.IntegerField() Stock18_p7_1 = models.IntegerField() Stock18_p8_1 = models.IntegerField() Stock18_p9_1 = models.IntegerField() Stock18_p10_1 = models.IntegerField() Stock19_p1_1 = models.IntegerField() Stock19_p2_1 = models.IntegerField() Stock19_p3_1 = models.IntegerField() Stock19_p4_1 = models.IntegerField() Stock19_p5_1 = models.IntegerField() Stock19_p6_1 = models.IntegerField() Stock19_p7_1 = models.IntegerField() Stock19_p8_1 = models.IntegerField() Stock19_p9_1 = models.IntegerField() Stock19_p10_1 = models.IntegerField() Stock20_p1_1 = models.IntegerField() Stock20_p2_1 = models.IntegerField() Stock20_p3_1 = models.IntegerField() Stock20_p4_1 = models.IntegerField() Stock20_p5_1 = models.IntegerField() Stock20_p6_1 = models.IntegerField() Stock20_p7_1 = models.IntegerField() Stock20_p8_1 = models.IntegerField() Stock20_p9_1 = models.IntegerField() Stock20_p10_1 = models.IntegerField() Stock21_p1_1 = models.IntegerField() Stock21_p2_1 = models.IntegerField() Stock21_p3_1 = models.IntegerField() Stock21_p4_1 = models.IntegerField() Stock21_p5_1 = models.IntegerField() Stock21_p6_1 = models.IntegerField() Stock21_p7_1 = models.IntegerField() Stock21_p8_1 = models.IntegerField() Stock21_p9_1 = models.IntegerField() Stock21_p10_1 = models.IntegerField() Stock22_p1_1 = models.IntegerField() Stock22_p2_1 = models.IntegerField() Stock22_p3_1 = models.IntegerField() Stock22_p4_1 = models.IntegerField() Stock22_p5_1 = models.IntegerField() Stock22_p6_1 = models.IntegerField() Stock22_p7_1 = models.IntegerField() Stock22_p8_1 = models.IntegerField() Stock22_p9_1 = models.IntegerField() Stock22_p10_1 = models.IntegerField() Stock23_p1_1 = models.IntegerField() Stock23_p2_1 = models.IntegerField() Stock23_p3_1 = models.IntegerField() Stock23_p4_1 = models.IntegerField() Stock23_p5_1 = models.IntegerField() Stock23_p6_1 = models.IntegerField() Stock23_p7_1 = models.IntegerField() Stock23_p8_1 = models.IntegerField() Stock23_p9_1 = models.IntegerField() Stock23_p10_1 = models.IntegerField() Stock24_p1_1 = models.IntegerField() Stock24_p2_1 = models.IntegerField() Stock24_p3_1 = models.IntegerField() Stock24_p4_1 = models.IntegerField() Stock24_p5_1 = models.IntegerField() Stock24_p6_1 = models.IntegerField() Stock24_p7_1 = models.IntegerField() Stock24_p8_1 = models.IntegerField() Stock24_p9_1 = models.IntegerField() Stock24_p10_1 = models.IntegerField() Stock25_p1_1 = models.IntegerField() Stock25_p2_1 = models.IntegerField() Stock25_p3_1 = models.IntegerField() Stock25_p4_1 = models.IntegerField() Stock25_p5_1 = models.IntegerField() Stock25_p6_1 = models.IntegerField() Stock25_p7_1 = models.IntegerField() Stock25_p8_1 = models.IntegerField() Stock25_p9_1 = models.IntegerField() Stock25_p10_1 = models.IntegerField() Stock26_p1_1 = models.IntegerField() Stock26_p2_1 = models.IntegerField() Stock26_p3_1 = models.IntegerField() Stock26_p4_1 = models.IntegerField() Stock26_p5_1 = models.IntegerField() Stock26_p6_1 = models.IntegerField() Stock26_p7_1 = models.IntegerField() Stock26_p8_1 = models.IntegerField() Stock26_p9_1 = models.IntegerField() Stock26_p10_1 = models.IntegerField() Stock27_p1_1 = models.IntegerField() Stock27_p2_1 = models.IntegerField() Stock27_p3_1 = models.IntegerField() Stock27_p4_1 = models.IntegerField() Stock27_p5_1 = models.IntegerField() Stock27_p6_1 = models.IntegerField() Stock27_p7_1 = models.IntegerField() Stock27_p8_1 = models.IntegerField() Stock27_p9_1 = models.IntegerField() Stock27_p10_1 = models.IntegerField() Stock28_p1_1 = models.IntegerField() Stock28_p2_1 = models.IntegerField() Stock28_p3_1 = models.IntegerField() Stock28_p4_1 = models.IntegerField() Stock28_p5_1 = models.IntegerField() Stock28_p6_1 = models.IntegerField() Stock28_p7_1 = models.IntegerField() Stock28_p8_1 = models.IntegerField() Stock28_p9_1 = models.IntegerField() Stock28_p10_1 = models.IntegerField() Stock29_p1_1 = models.IntegerField() Stock29_p2_1 = models.IntegerField() Stock29_p3_1 = models.IntegerField() Stock29_p4_1 = models.IntegerField() Stock29_p5_1 = models.IntegerField() Stock29_p6_1 = models.IntegerField() Stock29_p7_1 = models.IntegerField() Stock29_p8_1 = models.IntegerField() Stock29_p9_1 = models.IntegerField() Stock29_p10_1 = models.IntegerField() Stock30_p1_1 = models.IntegerField() Stock30_p2_1 = models.IntegerField() Stock30_p3_1 = models.IntegerField() Stock30_p4_1 = models.IntegerField() Stock30_p5_1 = models.IntegerField() Stock30_p6_1 = models.IntegerField() Stock30_p7_1 = models.IntegerField() Stock30_p8_1 = models.IntegerField() Stock30_p9_1 = models.IntegerField() Stock30_p10_1 = models.IntegerField() Stock31_p1_1 = models.IntegerField() Stock31_p2_1 = models.IntegerField() Stock31_p3_1 = models.IntegerField() Stock31_p4_1 = models.IntegerField() Stock31_p5_1 = models.IntegerField() Stock31_p6_1 = models.IntegerField() Stock31_p7_1 = models.IntegerField() Stock31_p8_1 = models.IntegerField() Stock31_p9_1 = models.IntegerField() Stock31_p10_1 = models.IntegerField() Stock32_p1_1 = models.IntegerField() Stock32_p2_1 = models.IntegerField() Stock32_p3_1 = models.IntegerField() Stock32_p4_1 = models.IntegerField() Stock32_p5_1 = models.IntegerField() Stock32_p6_1 = models.IntegerField() Stock32_p7_1 = models.IntegerField() Stock32_p8_1 = models.IntegerField() Stock32_p9_1 = models.IntegerField() Stock32_p10_1 = models.IntegerField() Stock33_p1_1 = models.IntegerField() Stock33_p2_1 = models.IntegerField() Stock33_p3_1 = models.IntegerField() Stock33_p4_1 = models.IntegerField() Stock33_p5_1 = models.IntegerField() Stock33_p6_1 = models.IntegerField() Stock33_p7_1 = models.IntegerField() Stock33_p8_1 = models.IntegerField() Stock33_p9_1 = models.IntegerField() Stock33_p10_1 = models.IntegerField() Stock34_p1_1 = models.IntegerField() Stock34_p2_1 = models.IntegerField() Stock34_p3_1 = models.IntegerField() Stock34_p4_1 = models.IntegerField() Stock34_p5_1 = models.IntegerField() Stock34_p6_1 = models.IntegerField() Stock34_p7_1 = models.IntegerField() Stock34_p8_1 = models.IntegerField() Stock34_p9_1 = models.IntegerField() Stock34_p10_1 = models.IntegerField() Stock35_p1_1 = models.IntegerField() Stock35_p2_1 = models.IntegerField() Stock35_p3_1 = models.IntegerField() Stock35_p4_1 = models.IntegerField() Stock35_p5_1 = models.IntegerField() Stock35_p6_1 = models.IntegerField() Stock35_p7_1 = models.IntegerField() Stock35_p8_1 = models.IntegerField() Stock35_p9_1 = models.IntegerField() Stock35_p10_1 = models.IntegerField() Stock36_p1_1 = models.IntegerField() Stock36_p2_1 = models.IntegerField() Stock36_p3_1 = models.IntegerField() Stock36_p4_1 = models.IntegerField() Stock36_p5_1 = models.IntegerField() Stock36_p6_1 = models.IntegerField() Stock36_p7_1 = models.IntegerField() Stock36_p8_1 = models.IntegerField() Stock36_p9_1 = models.IntegerField() Stock36_p10_1 = models.IntegerField() Stock37_p1_1 = models.IntegerField() Stock37_p2_1 = models.IntegerField() Stock37_p3_1 = models.IntegerField() Stock37_p4_1 = models.IntegerField() Stock37_p5_1 = models.IntegerField() Stock37_p6_1 = models.IntegerField() Stock37_p7_1 = models.IntegerField() Stock37_p8_1 = models.IntegerField() Stock37_p9_1 = models.IntegerField() Stock37_p10_1 = models.IntegerField() Stock38_p1_1 = models.IntegerField() Stock38_p2_1 = models.IntegerField() Stock38_p3_1 = models.IntegerField() Stock38_p4_1 = models.IntegerField() Stock38_p5_1 = models.IntegerField() Stock38_p6_1 = models.IntegerField() Stock38_p7_1 = models.IntegerField() Stock38_p8_1 = models.IntegerField() Stock38_p9_1 = models.IntegerField() Stock38_p10_1 = models.IntegerField() Stock39_p1_1 = models.IntegerField() Stock39_p2_1 = models.IntegerField() Stock39_p3_1 = models.IntegerField() Stock39_p4_1 = models.IntegerField() Stock39_p5_1 = models.IntegerField() Stock39_p6_1 = models.IntegerField() Stock39_p7_1 = models.IntegerField() Stock39_p8_1 = models.IntegerField() Stock39_p9_1 = models.IntegerField() Stock39_p10_1 = models.IntegerField() Stock40_p1_1 = models.IntegerField() Stock40_p2_1 = models.IntegerField() Stock40_p3_1 = models.IntegerField() Stock40_p4_1 = models.IntegerField() Stock40_p5_1 = models.IntegerField() Stock40_p6_1 = models.IntegerField() Stock40_p7_1 = models.IntegerField() Stock40_p8_1 = models.IntegerField() Stock40_p9_1 = models.IntegerField() Stock40_p10_1 = models.IntegerField() Stock41_p1_1 = models.IntegerField() Stock41_p2_1 = models.IntegerField() Stock41_p3_1 = models.IntegerField() Stock41_p4_1 = models.IntegerField() Stock41_p5_1 = models.IntegerField() Stock41_p6_1 = models.IntegerField() Stock41_p7_1 = models.IntegerField() Stock41_p8_1 = models.IntegerField() Stock41_p9_1 = models.IntegerField() Stock41_p10_1 = models.IntegerField() Stock42_p1_1 = models.IntegerField() Stock42_p2_1 = models.IntegerField() Stock42_p3_1 = models.IntegerField() Stock42_p4_1 = models.IntegerField() Stock42_p5_1 = models.IntegerField() Stock42_p6_1 = models.IntegerField() Stock42_p7_1 = models.IntegerField() Stock42_p8_1 = models.IntegerField() Stock42_p9_1 = models.IntegerField() Stock42_p10_1 = models.IntegerField() Stock43_p1_1 = models.IntegerField() Stock43_p2_1 = models.IntegerField() Stock43_p3_1 = models.IntegerField() Stock43_p4_1 = models.IntegerField() Stock43_p5_1 = models.IntegerField() Stock43_p6_1 = models.IntegerField() Stock43_p7_1 = models.IntegerField() Stock43_p8_1 = models.IntegerField() Stock43_p9_1 = models.IntegerField() Stock43_p10_1 = models.IntegerField() Stock44_p1_1 = models.IntegerField() Stock44_p2_1 = models.IntegerField() Stock44_p3_1 = models.IntegerField() Stock44_p4_1 = models.IntegerField() Stock44_p5_1 = models.IntegerField() Stock44_p6_1 = models.IntegerField() Stock44_p7_1 = models.IntegerField() Stock44_p8_1 = models.IntegerField() Stock44_p9_1 = models.IntegerField() Stock44_p10_1 = models.IntegerField() Stock1_p1_2 = models.IntegerField() Stock1_p2_2 = models.IntegerField() Stock1_p3_2 = models.IntegerField() Stock1_p4_2 = models.IntegerField() Stock1_p5_2 = models.IntegerField() Stock1_p6_2 = models.IntegerField() Stock1_p7_2 = models.IntegerField() Stock1_p8_2 = models.IntegerField() Stock1_p9_2 = models.IntegerField() Stock1_p10_2 = models.IntegerField() Stock2_p1_2 = models.IntegerField() Stock2_p2_2 = models.IntegerField() Stock2_p3_2 = models.IntegerField() Stock2_p4_2 = models.IntegerField() Stock2_p5_2 = models.IntegerField() Stock2_p6_2 = models.IntegerField() Stock2_p7_2 = models.IntegerField() Stock2_p8_2 = models.IntegerField() Stock2_p9_2 = models.IntegerField() Stock2_p10_2 = models.IntegerField() Stock3_p1_2 = models.IntegerField() Stock3_p2_2 = models.IntegerField() Stock3_p3_2 = models.IntegerField() Stock3_p4_2 = models.IntegerField() Stock3_p5_2 = models.IntegerField() Stock3_p6_2 = models.IntegerField() Stock3_p7_2 = models.IntegerField() Stock3_p8_2 = models.IntegerField() Stock3_p9_2 = models.IntegerField() Stock3_p10_2 = models.IntegerField() Stock4_p1_2 = models.IntegerField() Stock4_p2_2 = models.IntegerField() Stock4_p3_2 = models.IntegerField() Stock4_p4_2 = models.IntegerField() Stock4_p5_2 = models.IntegerField() Stock4_p6_2 = models.IntegerField() Stock4_p7_2 = models.IntegerField() Stock4_p8_2 = models.IntegerField() Stock4_p9_2 = models.IntegerField() Stock4_p10_2 = models.IntegerField() Stock5_p1_2 = models.IntegerField() Stock5_p2_2 = models.IntegerField() Stock5_p3_2 = models.IntegerField() Stock5_p4_2 = models.IntegerField() Stock5_p5_2 = models.IntegerField() Stock5_p6_2 = models.IntegerField() Stock5_p7_2 = models.IntegerField() Stock5_p8_2 = models.IntegerField() Stock5_p9_2 = models.IntegerField() Stock5_p10_2 = models.IntegerField() Stock6_p1_2 = models.IntegerField() Stock6_p2_2 = models.IntegerField() Stock6_p3_2 = models.IntegerField() Stock6_p4_2 = models.IntegerField() Stock6_p5_2 = models.IntegerField() Stock6_p6_2 = models.IntegerField() Stock6_p7_2 = models.IntegerField() Stock6_p8_2 = models.IntegerField() Stock6_p9_2 = models.IntegerField() Stock6_p10_2 = models.IntegerField() Stock7_p1_2 = models.IntegerField() Stock7_p2_2 = models.IntegerField() Stock7_p3_2 = models.IntegerField() Stock7_p4_2 = models.IntegerField() Stock7_p5_2 = models.IntegerField() Stock7_p6_2 = models.IntegerField() Stock7_p7_2 = models.IntegerField() Stock7_p8_2 = models.IntegerField() Stock7_p9_2 = models.IntegerField() Stock7_p10_2 = models.IntegerField() Stock8_p1_2 = models.IntegerField() Stock8_p2_2 = models.IntegerField() Stock8_p3_2 = models.IntegerField() Stock8_p4_2 = models.IntegerField() Stock8_p5_2 = models.IntegerField() Stock8_p6_2 = models.IntegerField() Stock8_p7_2 = models.IntegerField() Stock8_p8_2 = models.IntegerField() Stock8_p9_2 = models.IntegerField() Stock8_p10_2 = models.IntegerField() Stock9_p1_2 = models.IntegerField() Stock9_p2_2 = models.IntegerField() Stock9_p3_2 = models.IntegerField() Stock9_p4_2 = models.IntegerField() Stock9_p5_2 = models.IntegerField() Stock9_p6_2 = models.IntegerField() Stock9_p7_2 = models.IntegerField() Stock9_p8_2 = models.IntegerField() Stock9_p9_2 = models.IntegerField() Stock9_p10_2 = models.IntegerField() Stock10_p1_2 = models.IntegerField() Stock10_p2_2 = models.IntegerField() Stock10_p3_2 = models.IntegerField() Stock10_p4_2 = models.IntegerField() Stock10_p5_2 = models.IntegerField() Stock10_p6_2 = models.IntegerField() Stock10_p7_2 = models.IntegerField() Stock10_p8_2 = models.IntegerField() Stock10_p9_2 = models.IntegerField() Stock10_p10_2 = models.IntegerField() Stock11_p1_2 = models.IntegerField() Stock11_p2_2 = models.IntegerField() Stock11_p3_2 = models.IntegerField() Stock11_p4_2 = models.IntegerField() Stock11_p5_2 = models.IntegerField() Stock11_p6_2 = models.IntegerField() Stock11_p7_2 = models.IntegerField() Stock11_p8_2 = models.IntegerField() Stock11_p9_2 = models.IntegerField() Stock11_p10_2 = models.IntegerField() Stock12_p1_2 = models.IntegerField() Stock12_p2_2 = models.IntegerField() Stock12_p3_2 = models.IntegerField() Stock12_p4_2 = models.IntegerField() Stock12_p5_2 = models.IntegerField() Stock12_p6_2 = models.IntegerField() Stock12_p7_2 = models.IntegerField() Stock12_p8_2 = models.IntegerField() Stock12_p9_2 = models.IntegerField() Stock12_p10_2 = models.IntegerField() Stock13_p1_2 = models.IntegerField() Stock13_p2_2 = models.IntegerField() Stock13_p3_2 = models.IntegerField() Stock13_p4_2 = models.IntegerField() Stock13_p5_2 = models.IntegerField() Stock13_p6_2 = models.IntegerField() Stock13_p7_2 = models.IntegerField() Stock13_p8_2 = models.IntegerField() Stock13_p9_2 = models.IntegerField() Stock13_p10_2 = models.IntegerField() Stock14_p1_2 = models.IntegerField() Stock14_p2_2 = models.IntegerField() Stock14_p3_2 = models.IntegerField() Stock14_p4_2 = models.IntegerField() Stock14_p5_2 = models.IntegerField() Stock14_p6_2 = models.IntegerField() Stock14_p7_2 = models.IntegerField() Stock14_p8_2 = models.IntegerField() Stock14_p9_2 = models.IntegerField() Stock14_p10_2 = models.IntegerField() Stock15_p1_2 = models.IntegerField() Stock15_p2_2 = models.IntegerField() Stock15_p3_2 = models.IntegerField() Stock15_p4_2 = models.IntegerField() Stock15_p5_2 = models.IntegerField() Stock15_p6_2 = models.IntegerField() Stock15_p7_2 = models.IntegerField() Stock15_p8_2 = models.IntegerField() Stock15_p9_2 = models.IntegerField() Stock15_p10_2 = models.IntegerField() Stock16_p1_2 = models.IntegerField() Stock16_p2_2 = models.IntegerField() Stock16_p3_2 = models.IntegerField() Stock16_p4_2 = models.IntegerField() Stock16_p5_2 = models.IntegerField() Stock16_p6_2 = models.IntegerField() Stock16_p7_2 = models.IntegerField() Stock16_p8_2 = models.IntegerField() Stock16_p9_2 = models.IntegerField() Stock16_p10_2 = models.IntegerField() Stock17_p1_2 = models.IntegerField() Stock17_p2_2 = models.IntegerField() Stock17_p3_2 = models.IntegerField() Stock17_p4_2 = models.IntegerField() Stock17_p5_2 = models.IntegerField() Stock17_p6_2 = models.IntegerField() Stock17_p7_2 = models.IntegerField() Stock17_p8_2 = models.IntegerField() Stock17_p9_2 = models.IntegerField() Stock17_p10_2 = models.IntegerField() Stock18_p1_2 = models.IntegerField() Stock18_p2_2 = models.IntegerField() Stock18_p3_2 = models.IntegerField() Stock18_p4_2 = models.IntegerField() Stock18_p5_2 = models.IntegerField() Stock18_p6_2 = models.IntegerField() Stock18_p7_2 = models.IntegerField() Stock18_p8_2 = models.IntegerField() Stock18_p9_2 = models.IntegerField() Stock18_p10_2 = models.IntegerField() Stock19_p1_2 = models.IntegerField() Stock19_p2_2 = models.IntegerField() Stock19_p3_2 = models.IntegerField() Stock19_p4_2 = models.IntegerField() Stock19_p5_2 = models.IntegerField() Stock19_p6_2 = models.IntegerField() Stock19_p7_2 = models.IntegerField() Stock19_p8_2 = models.IntegerField() Stock19_p9_2 = models.IntegerField() Stock19_p10_2 = models.IntegerField() Stock20_p1_2 = models.IntegerField() Stock20_p2_2 = models.IntegerField() Stock20_p3_2 = models.IntegerField() Stock20_p4_2 = models.IntegerField() Stock20_p5_2 = models.IntegerField() Stock20_p6_2 = models.IntegerField() Stock20_p7_2 = models.IntegerField() Stock20_p8_2 = models.IntegerField() Stock20_p9_2 = models.IntegerField() Stock20_p10_2 = models.IntegerField() Stock21_p1_2 = models.IntegerField() Stock21_p2_2 = models.IntegerField() Stock21_p3_2 = models.IntegerField() Stock21_p4_2 = models.IntegerField() Stock21_p5_2 = models.IntegerField() Stock21_p6_2 = models.IntegerField() Stock21_p7_2 = models.IntegerField() Stock21_p8_2 = models.IntegerField() Stock21_p9_2 = models.IntegerField() Stock21_p10_2 = models.IntegerField() Stock22_p1_2 = models.IntegerField() Stock22_p2_2 = models.IntegerField() Stock22_p3_2 = models.IntegerField() Stock22_p4_2 = models.IntegerField() Stock22_p5_2 = models.IntegerField() Stock22_p6_2 = models.IntegerField() Stock22_p7_2 = models.IntegerField() Stock22_p8_2 = models.IntegerField() Stock22_p9_2 = models.IntegerField() Stock22_p10_2 = models.IntegerField() Stock23_p1_2 = models.IntegerField() Stock23_p2_2 = models.IntegerField() Stock23_p3_2 = models.IntegerField() Stock23_p4_2 = models.IntegerField() Stock23_p5_2 = models.IntegerField() Stock23_p6_2 = models.IntegerField() Stock23_p7_2 = models.IntegerField() Stock23_p8_2 = models.IntegerField() Stock23_p9_2 = models.IntegerField() Stock23_p10_2 = models.IntegerField() Stock24_p1_2 = models.IntegerField() Stock24_p2_2 = models.IntegerField() Stock24_p3_2 = models.IntegerField() Stock24_p4_2 = models.IntegerField() Stock24_p5_2 = models.IntegerField() Stock24_p6_2 = models.IntegerField() Stock24_p7_2 = models.IntegerField() Stock24_p8_2 = models.IntegerField() Stock24_p9_2 = models.IntegerField() Stock24_p10_2 = models.IntegerField() Stock25_p1_2 = models.IntegerField() Stock25_p2_2 = models.IntegerField() Stock25_p3_2 = models.IntegerField() Stock25_p4_2 = models.IntegerField() Stock25_p5_2 = models.IntegerField() Stock25_p6_2 = models.IntegerField() Stock25_p7_2 = models.IntegerField() Stock25_p8_2 = models.IntegerField() Stock25_p9_2 = models.IntegerField() Stock25_p10_2 = models.IntegerField() Stock26_p1_2 = models.IntegerField() Stock26_p2_2 = models.IntegerField() Stock26_p3_2 = models.IntegerField() Stock26_p4_2 = models.IntegerField() Stock26_p5_2 = models.IntegerField() Stock26_p6_2 = models.IntegerField() Stock26_p7_2 = models.IntegerField() Stock26_p8_2 = models.IntegerField() Stock26_p9_2 = models.IntegerField() Stock26_p10_2 = models.IntegerField() Stock27_p1_2 = models.IntegerField() Stock27_p2_2 = models.IntegerField() Stock27_p3_2 = models.IntegerField() Stock27_p4_2 = models.IntegerField() Stock27_p5_2 = models.IntegerField() Stock27_p6_2 = models.IntegerField() Stock27_p7_2 = models.IntegerField() Stock27_p8_2 = models.IntegerField() Stock27_p9_2 = models.IntegerField() Stock27_p10_2 = models.IntegerField() Stock28_p1_2 = models.IntegerField() Stock28_p2_2 = models.IntegerField() Stock28_p3_2 = models.IntegerField() Stock28_p4_2 = models.IntegerField() Stock28_p5_2 = models.IntegerField() Stock28_p6_2 = models.IntegerField() Stock28_p7_2 = models.IntegerField() Stock28_p8_2 = models.IntegerField() Stock28_p9_2 = models.IntegerField() Stock28_p10_2 = models.IntegerField() Stock29_p1_2 = models.IntegerField() Stock29_p2_2 = models.IntegerField() Stock29_p3_2 = models.IntegerField() Stock29_p4_2 = models.IntegerField() Stock29_p5_2 = models.IntegerField() Stock29_p6_2 = models.IntegerField() Stock29_p7_2 = models.IntegerField() Stock29_p8_2 = models.IntegerField() Stock29_p9_2 = models.IntegerField() Stock29_p10_2 = models.IntegerField() Stock30_p1_2 = models.IntegerField() Stock30_p2_2 = models.IntegerField() Stock30_p3_2 = models.IntegerField() Stock30_p4_2 = models.IntegerField() Stock30_p5_2 = models.IntegerField() Stock30_p6_2 = models.IntegerField() Stock30_p7_2 = models.IntegerField() Stock30_p8_2 = models.IntegerField() Stock30_p9_2 = models.IntegerField() Stock30_p10_2 = models.IntegerField() Stock31_p1_2 = models.IntegerField() Stock31_p2_2 = models.IntegerField() Stock31_p3_2 = models.IntegerField() Stock31_p4_2 = models.IntegerField() Stock31_p5_2 = models.IntegerField() Stock31_p6_2 = models.IntegerField() Stock31_p7_2 = models.IntegerField() Stock31_p8_2 = models.IntegerField() Stock31_p9_2 = models.IntegerField() Stock31_p10_2 = models.IntegerField() Stock32_p1_2 = models.IntegerField() Stock32_p2_2 = models.IntegerField() Stock32_p3_2 = models.IntegerField() Stock32_p4_2 = models.IntegerField() Stock32_p5_2 = models.IntegerField() Stock32_p6_2 = models.IntegerField() Stock32_p7_2 = models.IntegerField() Stock32_p8_2 = models.IntegerField() Stock32_p9_2 = models.IntegerField() Stock32_p10_2 = models.IntegerField() Stock33_p1_2 = models.IntegerField() Stock33_p2_2 = models.IntegerField() Stock33_p3_2 = models.IntegerField() Stock33_p4_2 = models.IntegerField() Stock33_p5_2 = models.IntegerField() Stock33_p6_2 = models.IntegerField() Stock33_p7_2 = models.IntegerField() Stock33_p8_2 = models.IntegerField() Stock33_p9_2 = models.IntegerField() Stock33_p10_2 = models.IntegerField() Stock34_p1_2 = models.IntegerField() Stock34_p2_2 = models.IntegerField() Stock34_p3_2 = models.IntegerField() Stock34_p4_2 = models.IntegerField() Stock34_p5_2 = models.IntegerField() Stock34_p6_2 = models.IntegerField() Stock34_p7_2 = models.IntegerField() Stock34_p8_2 = models.IntegerField() Stock34_p9_2 = models.IntegerField() Stock34_p10_2 = models.IntegerField() Stock35_p1_2 = models.IntegerField() Stock35_p2_2 = models.IntegerField() Stock35_p3_2 = models.IntegerField() Stock35_p4_2 = models.IntegerField() Stock35_p5_2 = models.IntegerField() Stock35_p6_2 = models.IntegerField() Stock35_p7_2 = models.IntegerField() Stock35_p8_2 = models.IntegerField() Stock35_p9_2 = models.IntegerField() Stock35_p10_2 = models.IntegerField() Stock36_p1_2 = models.IntegerField() Stock36_p2_2 = models.IntegerField() Stock36_p3_2 = models.IntegerField() Stock36_p4_2 = models.IntegerField() Stock36_p5_2 = models.IntegerField() Stock36_p6_2 = models.IntegerField() Stock36_p7_2 = models.IntegerField() Stock36_p8_2 = models.IntegerField() Stock36_p9_2 = models.IntegerField() Stock36_p10_2 = models.IntegerField() Stock37_p1_2 = models.IntegerField() Stock37_p2_2 = models.IntegerField() Stock37_p3_2 = models.IntegerField() Stock37_p4_2 = models.IntegerField() Stock37_p5_2 = models.IntegerField() Stock37_p6_2 = models.IntegerField() Stock37_p7_2 = models.IntegerField() Stock37_p8_2 = models.IntegerField() Stock37_p9_2 = models.IntegerField() Stock37_p10_2 = models.IntegerField() Stock38_p1_2 = models.IntegerField() Stock38_p2_2 = models.IntegerField() Stock38_p3_2 = models.IntegerField() Stock38_p4_2 = models.IntegerField() Stock38_p5_2 = models.IntegerField() Stock38_p6_2 = models.IntegerField() Stock38_p7_2 = models.IntegerField() Stock38_p8_2 = models.IntegerField() Stock38_p9_2 = models.IntegerField() Stock38_p10_2 = models.IntegerField() Stock39_p1_2 = models.IntegerField() Stock39_p2_2 = models.IntegerField() Stock39_p3_2 = models.IntegerField() Stock39_p4_2 = models.IntegerField() Stock39_p5_2 = models.IntegerField() Stock39_p6_2 = models.IntegerField() Stock39_p7_2 = models.IntegerField() Stock39_p8_2 = models.IntegerField() Stock39_p9_2 = models.IntegerField() Stock39_p10_2 = models.IntegerField() Stock40_p1_2 = models.IntegerField() Stock40_p2_2 = models.IntegerField() Stock40_p3_2 = models.IntegerField() Stock40_p4_2 = models.IntegerField() Stock40_p5_2 = models.IntegerField() Stock40_p6_2 = models.IntegerField() Stock40_p7_2 = models.IntegerField() Stock40_p8_2 = models.IntegerField() Stock40_p9_2 = models.IntegerField() Stock40_p10_2 = models.IntegerField() Stock41_p1_2 = models.IntegerField() Stock41_p2_2 = models.IntegerField() Stock41_p3_2 = models.IntegerField() Stock41_p4_2 = models.IntegerField() Stock41_p5_2 = models.IntegerField() Stock41_p6_2 = models.IntegerField() Stock41_p7_2 = models.IntegerField() Stock41_p8_2 = models.IntegerField() Stock41_p9_2 = models.IntegerField() Stock41_p10_2 = models.IntegerField() Stock42_p1_2 = models.IntegerField() Stock42_p2_2 = models.IntegerField() Stock42_p3_2 = models.IntegerField() Stock42_p4_2 = models.IntegerField() Stock42_p5_2 = models.IntegerField() Stock42_p6_2 = models.IntegerField() Stock42_p7_2 = models.IntegerField() Stock42_p8_2 = models.IntegerField() Stock42_p9_2 = models.IntegerField() Stock42_p10_2 = models.IntegerField() Stock43_p1_2 = models.IntegerField() Stock43_p2_2 = models.IntegerField() Stock43_p3_2 = models.IntegerField() Stock43_p4_2 = models.IntegerField() Stock43_p5_2 = models.IntegerField() Stock43_p6_2 = models.IntegerField() Stock43_p7_2 = models.IntegerField() Stock43_p8_2 = models.IntegerField() Stock43_p9_2 = models.IntegerField() Stock43_p10_2 = models.IntegerField() Stock44_p1_2 = models.IntegerField() Stock44_p2_2 = models.IntegerField() Stock44_p3_2 = models.IntegerField() Stock44_p4_2 = models.IntegerField() Stock44_p5_2 = models.IntegerField() Stock44_p6_2 = models.IntegerField() Stock44_p7_2 = models.IntegerField() Stock44_p8_2 = models.IntegerField() Stock44_p9_2 = models.IntegerField() Stock44_p10_2 = models.IntegerField() Select_stock1 = models.StringField(blank = True) Select_stock2 = models.StringField(blank = True) Select_stock3 = models.StringField(blank = True) Select_stock4 = models.StringField(blank = True) Select_stock5 = models.StringField(blank = True) Select_stock6 = models.StringField(blank = True) Select_stock7 = models.StringField(blank = True) Select_stock8 = models.StringField(blank = True) Select_stock9 = models.StringField(blank = True) Select_stock10 = models.StringField(blank = True) Select_stock11 = models.StringField(blank = True) Select_stock12 = models.StringField(blank = True) Select_stock13 = models.StringField(blank = True) Select_stock14 = models.StringField(blank = True) Select_stock15 = models.StringField(blank = True) Select_stock16 = models.StringField(blank = True) Select_stock17 = models.StringField(blank = True) Select_stock18 = models.StringField(blank = True) Select_stock19 = models.StringField(blank = True) Select_stock20 = models.StringField(blank = True) Select_choice2 = models.IntegerField(choices=[[21, ''], [22, ''], [23, ''], [24, '']], label='', widget=widgets.RadioSelect) Select_choice3 = models.IntegerField(choices=[[25, ''], [26, ''], [27, ''], [28, '']], label='', widget=widgets.RadioSelect) Select_choice4 = models.IntegerField(choices=[[29, ''], [30, ''], [31, ''], [32, '']], label='', widget=widgets.RadioSelect) Select_choice5 = models.IntegerField(choices=[[33, ''], [34, ''], [35, ''], [36, '']], label='', widget=widgets.RadioSelect) Select_choice6 = models.IntegerField(choices=[[37, ''], [38, ''], [39, ''], [40, '']], label='', widget=widgets.RadioSelect) Select_choice7 = models.IntegerField(choices=[[41, ''], [42, ''], [43, ''], [44, '']], label='', widget=widgets.RadioSelect) Select_stock1_T2 = models.StringField(blank = True) Select_stock2_T2 = models.StringField(blank = True) Select_stock3_T2 = models.StringField(blank = True) Select_stock4_T2 = models.StringField(blank = True) Select_stock5_T2 = models.StringField(blank = True) Select_stock6_T2 = models.StringField(blank = True) Select_stock7_T2 = models.StringField(blank = True) Select_stock8_T2 = models.StringField(blank = True) Select_stock9_T2 = models.StringField(blank = True) Select_stock10_T2 = models.StringField(blank = True) Select_stock11_T2 = models.StringField(blank = True) Select_stock12_T2 = models.StringField(blank = True) Select_stock13_T2 = models.StringField(blank = True) Select_stock14_T2 = models.StringField(blank = True) Select_stock15_T2 = models.StringField(blank = True) Select_stock16_T2 = models.StringField(blank = True) Select_stock17_T2 = models.StringField(blank = True) Select_stock18_T2 = models.StringField(blank = True) Select_stock19_T2 = models.StringField(blank = True) Select_stock20_T2 = models.StringField(blank = True) Select_choice2_T2 = models.IntegerField(choices=[[21, ''], [22, ''], [23, ''], [24, '']], label='', widget=widgets.RadioSelect) Select_choice3_T2 = models.IntegerField(choices=[[25, ''], [26, ''], [27, ''], [28, '']], label='', widget=widgets.RadioSelect) Select_choice4_T2 = models.IntegerField(choices=[[29, ''], [30, ''], [31, ''], [32, '']], label='', widget=widgets.RadioSelect) Select_choice5_T2 = models.IntegerField(choices=[[33, ''], [34, ''], [35, ''], [36, '']], label='', widget=widgets.RadioSelect) Select_choice6_T2 = models.IntegerField(choices=[[37, ''], [38, ''], [39, ''], [40, '']], label='', widget=widgets.RadioSelect) Select_choice7_T2 = models.IntegerField(choices=[[41, ''], [42, ''], [43, ''], [44, '']], label='', widget=widgets.RadioSelect) Select_stock50 = models.StringField(blank = True) Select_stock51 = models.StringField(blank = True) Select_stock52 = models.StringField(blank = True) Select_stock53 = models.StringField(blank = True) Select_stock54 = models.StringField(blank = True) Select_stock55 = models.StringField(blank = True) Select_stock56 = models.StringField(blank = True) Select_stock57 = models.StringField(blank = True) Select_stock58 = models.StringField(blank = True) Select_stock59 = models.StringField(blank = True) Select_stock60 = models.StringField(blank = True) Select_stock61 = models.StringField(blank = True) Increased_shares_stock50 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock51 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock52 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock53 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock54 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock55 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock56 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock57 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock58 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock59 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock60 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) Increased_shares_stock61 = models.IntegerField(choices=[[0, '1 share'], [1, '2 shares'], [2, '3 shares']], label='', widget=widgets.RadioSelect, blank = True) period1Price_stock1 = models.IntegerField() period1Price_stock2 = models.IntegerField() period1Price_stock3 = models.IntegerField() period1Price_stock4 = models.IntegerField() period1Price_stock5 = models.IntegerField() period1Price_stock6 = models.IntegerField() period1Price_stock7 = models.IntegerField() period1Price_stock8 = models.IntegerField() period1Price_stock9 = models.IntegerField() period1Price_stock10 = models.IntegerField() period1Price_stock11 = models.IntegerField() period1Price_stock12 = models.IntegerField() period1Price_stock13 = models.IntegerField() period1Price_stock14 = models.IntegerField() period1Price_stock15 = models.IntegerField() period1Price_stock16 = models.IntegerField() period1Price_stock17 = models.IntegerField() period1Price_stock18 = models.IntegerField() period1Price_stock19 = models.IntegerField() period1Price_stock20 = models.IntegerField() stockRow1 = models.StringField() stockRow2 = models.StringField() stockRow3 = models.StringField() stockRow4 = models.StringField() stockRow5 = models.StringField() period1Price_row1 = models.IntegerField() period1Price_row2 = models.IntegerField() period1Price_row3 = models.IntegerField() period1Price_row4 = models.IntegerField() period1Price_row5 = models.IntegerField() period1PriceChange_row1 = models.IntegerField() period1PriceChange_row2 = models.IntegerField() period1PriceChange_row3 = models.IntegerField() period1PriceChange_row4 = models.IntegerField() period1PriceChange_row5 = models.IntegerField() period2Price_row1 = models.IntegerField() period2Price_row2 = models.IntegerField() period2Price_row3 = models.IntegerField() period2Price_row4 = models.IntegerField() period2Price_row5 = models.IntegerField() period2PriceChange_row1 = models.IntegerField() period2PriceChange_row2 = models.IntegerField() period2PriceChange_row3 = models.IntegerField() period2PriceChange_row4 = models.IntegerField() period2PriceChange_row5 = models.IntegerField() period3Price_row1 = models.IntegerField() period3Price_row2 = models.IntegerField() period3Price_row3 = models.IntegerField() period3Price_row4 = models.IntegerField() period3Price_row5 = models.IntegerField() period3PriceChange_row1 = models.IntegerField() period3PriceChange_row2 = models.IntegerField() period3PriceChange_row3 = models.IntegerField() period3PriceChange_row4 = models.IntegerField() period3PriceChange_row5 = models.IntegerField() period4Price_row1 = models.IntegerField() period4Price_row2 = models.IntegerField() period4Price_row3 = models.IntegerField() period4Price_row4 = models.IntegerField() period4Price_row5 = models.IntegerField() period4PriceChange_row1 = models.IntegerField() period4PriceChange_row2 = models.IntegerField() period4PriceChange_row3 = models.IntegerField() period4PriceChange_row4 = models.IntegerField() period4PriceChange_row5 = models.IntegerField() period5Price_row1 = models.IntegerField() period5Price_row2 = models.IntegerField() period5Price_row3 = models.IntegerField() period5Price_row4 = models.IntegerField() period5Price_row5 = models.IntegerField() period5PriceChange_row1 = models.IntegerField() period5PriceChange_row2 = models.IntegerField() period5PriceChange_row3 = models.IntegerField() period5PriceChange_row4 = models.IntegerField() period5PriceChange_row5 = models.IntegerField() period6Price_row1 = models.IntegerField() period6Price_row2 = models.IntegerField() period6Price_row3 = models.IntegerField() period6Price_row4 = models.IntegerField() period6Price_row5 = models.IntegerField() period6PriceChange_row1 = models.IntegerField() period6PriceChange_row2 = models.IntegerField() period6PriceChange_row3 = models.IntegerField() period6PriceChange_row4 = models.IntegerField() period6PriceChange_row5 = models.IntegerField() period7Price_row1 = models.IntegerField() period7Price_row2 = models.IntegerField() period7Price_row3 = models.IntegerField() period7Price_row4 = models.IntegerField() period7Price_row5 = models.IntegerField() period7PriceChange_row1 = models.IntegerField() period7PriceChange_row2 = models.IntegerField() period7PriceChange_row3 = models.IntegerField() period7PriceChange_row4 = models.IntegerField() period7PriceChange_row5 = models.IntegerField() preperiod1Price_row1 = models.IntegerField() preperiod1Price_row2 = models.IntegerField() preperiod1Price_row3 = models.IntegerField() preperiod1Price_row4 = models.IntegerField() preperiod1Price_row5 = models.IntegerField() preperiod2Price_row1 = models.IntegerField() preperiod2Price_row2 = models.IntegerField() preperiod2Price_row3 = models.IntegerField() preperiod2Price_row4 = models.IntegerField() preperiod2Price_row5 = models.IntegerField() preperiod3Price_row1 = models.IntegerField() preperiod3Price_row2 = models.IntegerField() preperiod3Price_row3 = models.IntegerField() preperiod3Price_row4 = models.IntegerField() preperiod3Price_row5 = models.IntegerField() preperiod4Price_row1 = models.IntegerField() preperiod4Price_row2 = models.IntegerField() preperiod4Price_row3 = models.IntegerField() preperiod4Price_row4 = models.IntegerField() preperiod4Price_row5 = models.IntegerField() preperiod5Price_row1 = models.IntegerField() preperiod5Price_row2 = models.IntegerField() preperiod5Price_row3 = models.IntegerField() preperiod5Price_row4 = models.IntegerField() preperiod5Price_row5 = models.IntegerField() preperiod6Price_row1 = models.IntegerField() preperiod6Price_row2 = models.IntegerField() preperiod6Price_row3 = models.IntegerField() preperiod6Price_row4 = models.IntegerField() preperiod6Price_row5 = models.IntegerField() preperiod7Price_row1 = models.IntegerField() preperiod7Price_row2 = models.IntegerField() preperiod7Price_row3 = models.IntegerField() preperiod7Price_row4 = models.IntegerField() preperiod7Price_row5 = models.IntegerField() stockSold1 = models.StringField() stockSold2 = models.StringField() stockSold3 = models.StringField() stockSold4 = models.StringField() stockSold5 = models.StringField() stockSold6 = models.StringField() stockSold7 = models.StringField() stockSold8 = models.StringField() stockSold9 = models.StringField() stockSold10 = models.StringField() stockSold11 = models.StringField() sellingPriceSold1 = models.IntegerField() sellingPriceSold2 = models.IntegerField() sellingPriceSold3 = models.IntegerField() sellingPriceSold4 = models.IntegerField() sellingPriceSold5 = models.IntegerField() sellingPriceSold6 = models.IntegerField() sellingPriceSold7 = models.IntegerField() sellingPriceSold8 = models.IntegerField() sellingPriceSold9 = models.IntegerField() sellingPriceSold10 = models.IntegerField() sellingPriceSold11 = models.IntegerField() confidence1 = models.IntegerField(choices=[], label='', max=22, min=0) surpriseValueAnte = models.IntegerField() surpriseValuePost = models.IntegerField() surprise = models.IntegerField(choices=[[1, '1 (not at all surprised)'], [2, '2'], [3, '3'], [4, '4'], [5, '5 (very surprised)']], label='', widget=widgets.RadioSelect) confidence2 = models.IntegerField(choices=[], label='', max=100, min=0) confidence2_slider = models.IntegerField(label='', max=100, min=0, widget=widgets.Slider(attrs={'step': '1'})) confidence3 = models.IntegerField(choices=[], label='', max=100, min=0) confidence4 = models.IntegerField(choices=[], label='', max=100, min=0) memory = models.IntegerField(choices=[], label='', max=11, min=0) task1Earnings = models.FloatField() task2Earnings = models.FloatField() stockEvaluationEarnings = models.FloatField() recallEarnings = models.FloatField() paymentTask = models.StringField() bonusPayment = models.FloatField() countSales = models.IntegerField() surpriseSentence = models.StringField() cashPosition_choice = models.IntegerField() task1Proceeds = models.FloatField() task1Totals = models.FloatField() number_highStocks = models.IntegerField() numberAdditionalShares = models.IntegerField() numberTotalShares = models.IntegerField() task2Proceeds = models.FloatField() task2Totals = models.FloatField() costsPurchaseTask2 = models.IntegerField() costsFeesTask2 = models.FloatField() numberHighFeeTotal = models.IntegerField() stockRow1_Task2 = models.StringField() stockRow2_Task2 = models.StringField() stockRow3_Task2 = models.StringField() prePrice1Row1_Task2 = models.IntegerField() prePrice1Row2_Task2 = models.IntegerField() prePrice1Row3_Task2 = models.IntegerField() prePrice2Row1_Task2 = models.IntegerField() prePrice2Row2_Task2 = models.IntegerField() prePrice2Row3_Task2 = models.IntegerField() priceRow1_Task2 = models.IntegerField() priceRow2_Task2 = models.IntegerField() priceRow3_Task2 = models.IntegerField() sharesRow1_Task2 = models.IntegerField() sharesRow2_Task2 = models.IntegerField() sharesRow3_Task2 = models.IntegerField() numberWrongControl1 = models.IntegerField() numberWrongControl2 = models.IntegerField() Understanding = models.LongStringField(blank = True, label='') Comments = models.LongStringField(blank = True, label='') TimeFirstClick_stock50 = models.StringField(blank = True) TimeSecondClick_stock50 = models.StringField(blank = True) TimeFirstClick_stock51 = models.StringField(blank = True) TimeSecondClick_stock51 = models.StringField(blank = True) TimeFirstClick_stock52 = models.StringField(blank = True) TimeSecondClick_stock52 = models.StringField(blank = True) TimeFirstClick_stock53 = models.StringField(blank = True) TimeSecondClick_stock53 = models.StringField(blank = True) TimeFirstClick_stock54 = models.StringField(blank = True) TimeSecondClick_stock54 = models.StringField(blank = True) TimeFirstClick_stock55 = models.StringField(blank = True) TimeSecondClick_stock55 = models.StringField(blank = True) TimeFirstClick_stock56 = models.StringField(blank = True) TimeSecondClick_stock56 = models.StringField(blank = True) TimeFirstClick_stock57 = models.StringField(blank = True) TimeSecondClick_stock57 = models.StringField(blank = True) TimeFirstClick_stock58 = models.StringField(blank = True) TimeSecondClick_stock58 = models.StringField(blank = True) TimeFirstClick_stock59 = models.StringField(blank = True) TimeSecondClick_stock59 = models.StringField(blank = True) TimeFirstClick_stock60 = models.StringField(blank = True) TimeSecondClick_stock60 = models.StringField(blank = True) TimeFirstClick_stock61 = models.StringField(blank = True) TimeSecondClick_stock61 = models.StringField(blank = True) Link = models.StringField() #draw stock types def draw_type(self): import random player = self player.Stock_type1_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type2_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type3_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type4_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type5_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type6_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type7_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type8_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type9_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type10_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type11_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type12_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type13_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type14_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type15_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type16_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type17_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type18_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type19_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type20_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type21_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type22_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type23_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type24_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type25_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type26_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type27_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type28_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type29_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type30_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type31_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type32_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type33_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type34_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type35_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type36_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type37_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type38_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type39_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type40_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type41_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type42_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type43_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type44_1 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type1_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type2_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type3_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type4_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type5_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type6_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type7_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type8_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type9_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type10_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type11_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type12_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type13_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type14_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type15_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type16_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type17_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type18_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type19_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type20_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type21_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type22_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type23_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type24_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type25_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type26_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type27_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type28_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type29_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type30_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type31_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type32_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type33_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type34_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type35_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type36_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type37_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type38_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type39_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type40_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type41_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type42_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type43_2 = random.choice(['hi', 'lo', 'lo', 'lo']) player.Stock_type44_2 = random.choice(['hi', 'lo', 'lo', 'lo']) #draw price changes ### TRIAL 1 def draw_changes_T1(self): import random player = self ### STOCK 1 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type1_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock1_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 2 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type2_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock2_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 3 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type3_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock3_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 4 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type4_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock4_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 5 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type5_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock5_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 6 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type6_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock6_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 7 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type7_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock7_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 8 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type8_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock8_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 9 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type9_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock9_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 10 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type10_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock10_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 11 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type11_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock11_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 12 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type12_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock12_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 13 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type13_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock13_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 14 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type14_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock14_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 15 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type15_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock15_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 16 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type16_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock16_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 17 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type17_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock17_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 18 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type18_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock18_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 19 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type19_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock19_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 20 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type20_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock20_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 21 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type21_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock21_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 21 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type21_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock21_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 22 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type22_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock22_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 23 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type23_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock23_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 24 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type24_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock24_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 25 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type25_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock25_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 26 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type26_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock26_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 27 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type27_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock27_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 28 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type28_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock28_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 29 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type29_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock29_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 30 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type30_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock30_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 31 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type31_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock31_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 32 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type32_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock32_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 33 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type33_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock33_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 34 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type34_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock34_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 35 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type35_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock35_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 36 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type36_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock36_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 37 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type37_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock37_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 38 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type38_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock38_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 39 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type39_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock39_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 40 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type40_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock40_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 40 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type40_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock40_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 41 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type41_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock41_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 42 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type42_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock42_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 43 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type43_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock43_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 44 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type44_1 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock44_p1_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p2_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p3_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p4_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p5_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p6_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p7_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p8_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p9_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p10_1 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### TRIAL 2 def draw_changes_T2(self): import random player = self ### STOCK 1 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type1_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock1_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock1_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 2 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type2_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock2_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock2_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 3 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type3_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock3_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock3_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 4 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type4_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock4_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock4_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 5 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type5_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock5_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock5_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 6 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type6_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock6_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock6_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 7 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type7_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock7_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock7_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 8 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type8_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock8_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock8_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 9 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type9_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock9_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock9_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 10 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type10_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock10_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock10_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 11 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type11_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock11_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock11_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 12 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type12_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock12_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock12_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 13 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type13_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock13_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock13_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 14 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type14_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock14_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock14_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 15 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type15_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock15_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock15_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 16 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type16_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock16_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock16_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 17 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type17_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock17_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock17_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 18 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type18_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock18_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock18_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 19 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type19_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock19_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock19_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 20 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type20_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock20_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock20_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 21 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type21_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock21_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 21 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type21_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock21_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock21_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 22 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type22_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock22_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock22_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 23 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type23_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock23_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock23_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 24 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type24_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock24_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock24_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 25 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type25_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock25_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock25_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 26 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type26_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock26_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock26_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 27 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type27_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock27_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock27_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 28 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type28_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock28_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock28_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 29 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type29_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock29_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock29_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 30 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type30_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock30_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock30_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 31 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type31_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock31_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock31_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 32 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type32_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock32_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock32_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 33 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type33_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock33_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock33_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 34 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type34_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock34_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock34_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 35 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type35_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock35_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock35_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 36 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type36_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock36_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock36_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 37 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type37_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock37_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock37_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 38 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type38_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock38_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock38_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 39 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type39_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock39_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock39_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 40 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type40_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock40_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 40 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type40_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock40_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock40_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 41 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type41_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock41_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock41_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 42 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type42_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock42_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock42_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 43 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type43_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock43_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock43_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] ### STOCK 44 # set correcht price change weights Current_price_change_weights = Constants.Price_change_weights_lo if player.Stock_type44_2 == 'hi': Current_price_change_weights = Constants.Price_change_weights_hi # assign random price change to every price player.Stock44_p1_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p2_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p3_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p4_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p5_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p6_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p7_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p8_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p9_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] player.Stock44_p10_2 = random.choices(Constants.Price_changes, Current_price_change_weights, k=1)[0] #save price change dictionary #TRIAL 1 def createStockPriceDictT1(self): self.participant.vars["priceChangeDict"] = {} self.participant.vars["priceChangeDict"]['Stock1_p1_1']=self.Stock1_p1_1 self.participant.vars["priceChangeDict"]['Stock1_p2_1']=self.Stock1_p2_1 self.participant.vars["priceChangeDict"]['Stock1_p3_1']=self.Stock1_p3_1 self.participant.vars["priceChangeDict"]['Stock1_p4_1']=self.Stock1_p4_1 self.participant.vars["priceChangeDict"]['Stock1_p5_1']=self.Stock1_p5_1 self.participant.vars["priceChangeDict"]['Stock1_p6_1']=self.Stock1_p6_1 self.participant.vars["priceChangeDict"]['Stock1_p7_1']=self.Stock1_p7_1 self.participant.vars["priceChangeDict"]['Stock1_p8_1']=self.Stock1_p8_1 self.participant.vars["priceChangeDict"]['Stock1_p9_1']=self.Stock1_p9_1 self.participant.vars["priceChangeDict"]['Stock1_p10_1']=self.Stock1_p10_1 self.participant.vars["priceChangeDict"]['Stock2_p1_1']=self.Stock2_p1_1 self.participant.vars["priceChangeDict"]['Stock2_p2_1']=self.Stock2_p2_1 self.participant.vars["priceChangeDict"]['Stock2_p3_1']=self.Stock2_p3_1 self.participant.vars["priceChangeDict"]['Stock2_p4_1']=self.Stock2_p4_1 self.participant.vars["priceChangeDict"]['Stock2_p5_1']=self.Stock2_p5_1 self.participant.vars["priceChangeDict"]['Stock2_p6_1']=self.Stock2_p6_1 self.participant.vars["priceChangeDict"]['Stock2_p7_1']=self.Stock2_p7_1 self.participant.vars["priceChangeDict"]['Stock2_p8_1']=self.Stock2_p8_1 self.participant.vars["priceChangeDict"]['Stock2_p9_1']=self.Stock2_p9_1 self.participant.vars["priceChangeDict"]['Stock2_p10_1']=self.Stock2_p10_1 self.participant.vars["priceChangeDict"]['Stock3_p1_1']=self.Stock3_p1_1 self.participant.vars["priceChangeDict"]['Stock3_p2_1']=self.Stock3_p2_1 self.participant.vars["priceChangeDict"]['Stock3_p3_1']=self.Stock3_p3_1 self.participant.vars["priceChangeDict"]['Stock3_p4_1']=self.Stock3_p4_1 self.participant.vars["priceChangeDict"]['Stock3_p5_1']=self.Stock3_p5_1 self.participant.vars["priceChangeDict"]['Stock3_p6_1']=self.Stock3_p6_1 self.participant.vars["priceChangeDict"]['Stock3_p7_1']=self.Stock3_p7_1 self.participant.vars["priceChangeDict"]['Stock3_p8_1']=self.Stock3_p8_1 self.participant.vars["priceChangeDict"]['Stock3_p9_1']=self.Stock3_p9_1 self.participant.vars["priceChangeDict"]['Stock3_p10_1']=self.Stock3_p10_1 self.participant.vars["priceChangeDict"]['Stock4_p1_1']=self.Stock4_p1_1 self.participant.vars["priceChangeDict"]['Stock4_p2_1']=self.Stock4_p2_1 self.participant.vars["priceChangeDict"]['Stock4_p3_1']=self.Stock4_p3_1 self.participant.vars["priceChangeDict"]['Stock4_p4_1']=self.Stock4_p4_1 self.participant.vars["priceChangeDict"]['Stock4_p5_1']=self.Stock4_p5_1 self.participant.vars["priceChangeDict"]['Stock4_p6_1']=self.Stock4_p6_1 self.participant.vars["priceChangeDict"]['Stock4_p7_1']=self.Stock4_p7_1 self.participant.vars["priceChangeDict"]['Stock4_p8_1']=self.Stock4_p8_1 self.participant.vars["priceChangeDict"]['Stock4_p9_1']=self.Stock4_p9_1 self.participant.vars["priceChangeDict"]['Stock4_p10_1']=self.Stock4_p10_1 self.participant.vars["priceChangeDict"]['Stock5_p1_1']=self.Stock5_p1_1 self.participant.vars["priceChangeDict"]['Stock5_p2_1']=self.Stock5_p2_1 self.participant.vars["priceChangeDict"]['Stock5_p3_1']=self.Stock5_p3_1 self.participant.vars["priceChangeDict"]['Stock5_p4_1']=self.Stock5_p4_1 self.participant.vars["priceChangeDict"]['Stock5_p5_1']=self.Stock5_p5_1 self.participant.vars["priceChangeDict"]['Stock5_p6_1']=self.Stock5_p6_1 self.participant.vars["priceChangeDict"]['Stock5_p7_1']=self.Stock5_p7_1 self.participant.vars["priceChangeDict"]['Stock5_p8_1']=self.Stock5_p8_1 self.participant.vars["priceChangeDict"]['Stock5_p9_1']=self.Stock5_p9_1 self.participant.vars["priceChangeDict"]['Stock5_p10_1']=self.Stock5_p10_1 self.participant.vars["priceChangeDict"]['Stock6_p1_1']=self.Stock6_p1_1 self.participant.vars["priceChangeDict"]['Stock6_p2_1']=self.Stock6_p2_1 self.participant.vars["priceChangeDict"]['Stock6_p3_1']=self.Stock6_p3_1 self.participant.vars["priceChangeDict"]['Stock6_p4_1']=self.Stock6_p4_1 self.participant.vars["priceChangeDict"]['Stock6_p5_1']=self.Stock6_p5_1 self.participant.vars["priceChangeDict"]['Stock6_p6_1']=self.Stock6_p6_1 self.participant.vars["priceChangeDict"]['Stock6_p7_1']=self.Stock6_p7_1 self.participant.vars["priceChangeDict"]['Stock6_p8_1']=self.Stock6_p8_1 self.participant.vars["priceChangeDict"]['Stock6_p9_1']=self.Stock6_p9_1 self.participant.vars["priceChangeDict"]['Stock6_p10_1']=self.Stock6_p10_1 self.participant.vars["priceChangeDict"]['Stock7_p1_1']=self.Stock7_p1_1 self.participant.vars["priceChangeDict"]['Stock7_p2_1']=self.Stock7_p2_1 self.participant.vars["priceChangeDict"]['Stock7_p3_1']=self.Stock7_p3_1 self.participant.vars["priceChangeDict"]['Stock7_p4_1']=self.Stock7_p4_1 self.participant.vars["priceChangeDict"]['Stock7_p5_1']=self.Stock7_p5_1 self.participant.vars["priceChangeDict"]['Stock7_p6_1']=self.Stock7_p6_1 self.participant.vars["priceChangeDict"]['Stock7_p7_1']=self.Stock7_p7_1 self.participant.vars["priceChangeDict"]['Stock7_p8_1']=self.Stock7_p8_1 self.participant.vars["priceChangeDict"]['Stock7_p9_1']=self.Stock7_p9_1 self.participant.vars["priceChangeDict"]['Stock7_p10_1']=self.Stock7_p10_1 self.participant.vars["priceChangeDict"]['Stock8_p1_1']=self.Stock8_p1_1 self.participant.vars["priceChangeDict"]['Stock8_p2_1']=self.Stock8_p2_1 self.participant.vars["priceChangeDict"]['Stock8_p3_1']=self.Stock8_p3_1 self.participant.vars["priceChangeDict"]['Stock8_p4_1']=self.Stock8_p4_1 self.participant.vars["priceChangeDict"]['Stock8_p5_1']=self.Stock8_p5_1 self.participant.vars["priceChangeDict"]['Stock8_p6_1']=self.Stock8_p6_1 self.participant.vars["priceChangeDict"]['Stock8_p7_1']=self.Stock8_p7_1 self.participant.vars["priceChangeDict"]['Stock8_p8_1']=self.Stock8_p8_1 self.participant.vars["priceChangeDict"]['Stock8_p9_1']=self.Stock8_p9_1 self.participant.vars["priceChangeDict"]['Stock8_p10_1']=self.Stock8_p10_1 self.participant.vars["priceChangeDict"]['Stock9_p1_1']=self.Stock9_p1_1 self.participant.vars["priceChangeDict"]['Stock9_p2_1']=self.Stock9_p2_1 self.participant.vars["priceChangeDict"]['Stock9_p3_1']=self.Stock9_p3_1 self.participant.vars["priceChangeDict"]['Stock9_p4_1']=self.Stock9_p4_1 self.participant.vars["priceChangeDict"]['Stock9_p5_1']=self.Stock9_p5_1 self.participant.vars["priceChangeDict"]['Stock9_p6_1']=self.Stock9_p6_1 self.participant.vars["priceChangeDict"]['Stock9_p7_1']=self.Stock9_p7_1 self.participant.vars["priceChangeDict"]['Stock9_p8_1']=self.Stock9_p8_1 self.participant.vars["priceChangeDict"]['Stock9_p9_1']=self.Stock9_p9_1 self.participant.vars["priceChangeDict"]['Stock9_p10_1']=self.Stock9_p10_1 self.participant.vars["priceChangeDict"]['Stock10_p1_1']=self.Stock10_p1_1 self.participant.vars["priceChangeDict"]['Stock10_p2_1']=self.Stock10_p2_1 self.participant.vars["priceChangeDict"]['Stock10_p3_1']=self.Stock10_p3_1 self.participant.vars["priceChangeDict"]['Stock10_p4_1']=self.Stock10_p4_1 self.participant.vars["priceChangeDict"]['Stock10_p5_1']=self.Stock10_p5_1 self.participant.vars["priceChangeDict"]['Stock10_p6_1']=self.Stock10_p6_1 self.participant.vars["priceChangeDict"]['Stock10_p7_1']=self.Stock10_p7_1 self.participant.vars["priceChangeDict"]['Stock10_p8_1']=self.Stock10_p8_1 self.participant.vars["priceChangeDict"]['Stock10_p9_1']=self.Stock10_p9_1 self.participant.vars["priceChangeDict"]['Stock10_p10_1']=self.Stock10_p10_1 self.participant.vars["priceChangeDict"]['Stock11_p1_1']=self.Stock11_p1_1 self.participant.vars["priceChangeDict"]['Stock11_p2_1']=self.Stock11_p2_1 self.participant.vars["priceChangeDict"]['Stock11_p3_1']=self.Stock11_p3_1 self.participant.vars["priceChangeDict"]['Stock11_p4_1']=self.Stock11_p4_1 self.participant.vars["priceChangeDict"]['Stock11_p5_1']=self.Stock11_p5_1 self.participant.vars["priceChangeDict"]['Stock11_p6_1']=self.Stock11_p6_1 self.participant.vars["priceChangeDict"]['Stock11_p7_1']=self.Stock11_p7_1 self.participant.vars["priceChangeDict"]['Stock11_p8_1']=self.Stock11_p8_1 self.participant.vars["priceChangeDict"]['Stock11_p9_1']=self.Stock11_p9_1 self.participant.vars["priceChangeDict"]['Stock11_p10_1']=self.Stock11_p10_1 self.participant.vars["priceChangeDict"]['Stock12_p1_1']=self.Stock12_p1_1 self.participant.vars["priceChangeDict"]['Stock12_p2_1']=self.Stock12_p2_1 self.participant.vars["priceChangeDict"]['Stock12_p3_1']=self.Stock12_p3_1 self.participant.vars["priceChangeDict"]['Stock12_p4_1']=self.Stock12_p4_1 self.participant.vars["priceChangeDict"]['Stock12_p5_1']=self.Stock12_p5_1 self.participant.vars["priceChangeDict"]['Stock12_p6_1']=self.Stock12_p6_1 self.participant.vars["priceChangeDict"]['Stock12_p7_1']=self.Stock12_p7_1 self.participant.vars["priceChangeDict"]['Stock12_p8_1']=self.Stock12_p8_1 self.participant.vars["priceChangeDict"]['Stock12_p9_1']=self.Stock12_p9_1 self.participant.vars["priceChangeDict"]['Stock12_p10_1']=self.Stock12_p10_1 self.participant.vars["priceChangeDict"]['Stock13_p1_1']=self.Stock13_p1_1 self.participant.vars["priceChangeDict"]['Stock13_p2_1']=self.Stock13_p2_1 self.participant.vars["priceChangeDict"]['Stock13_p3_1']=self.Stock13_p3_1 self.participant.vars["priceChangeDict"]['Stock13_p4_1']=self.Stock13_p4_1 self.participant.vars["priceChangeDict"]['Stock13_p5_1']=self.Stock13_p5_1 self.participant.vars["priceChangeDict"]['Stock13_p6_1']=self.Stock13_p6_1 self.participant.vars["priceChangeDict"]['Stock13_p7_1']=self.Stock13_p7_1 self.participant.vars["priceChangeDict"]['Stock13_p8_1']=self.Stock13_p8_1 self.participant.vars["priceChangeDict"]['Stock13_p9_1']=self.Stock13_p9_1 self.participant.vars["priceChangeDict"]['Stock13_p10_1']=self.Stock13_p10_1 self.participant.vars["priceChangeDict"]['Stock14_p1_1']=self.Stock14_p1_1 self.participant.vars["priceChangeDict"]['Stock14_p2_1']=self.Stock14_p2_1 self.participant.vars["priceChangeDict"]['Stock14_p3_1']=self.Stock14_p3_1 self.participant.vars["priceChangeDict"]['Stock14_p4_1']=self.Stock14_p4_1 self.participant.vars["priceChangeDict"]['Stock14_p5_1']=self.Stock14_p5_1 self.participant.vars["priceChangeDict"]['Stock14_p6_1']=self.Stock14_p6_1 self.participant.vars["priceChangeDict"]['Stock14_p7_1']=self.Stock14_p7_1 self.participant.vars["priceChangeDict"]['Stock14_p8_1']=self.Stock14_p8_1 self.participant.vars["priceChangeDict"]['Stock14_p9_1']=self.Stock14_p9_1 self.participant.vars["priceChangeDict"]['Stock14_p10_1']=self.Stock14_p10_1 self.participant.vars["priceChangeDict"]['Stock15_p1_1']=self.Stock15_p1_1 self.participant.vars["priceChangeDict"]['Stock15_p2_1']=self.Stock15_p2_1 self.participant.vars["priceChangeDict"]['Stock15_p3_1']=self.Stock15_p3_1 self.participant.vars["priceChangeDict"]['Stock15_p4_1']=self.Stock15_p4_1 self.participant.vars["priceChangeDict"]['Stock15_p5_1']=self.Stock15_p5_1 self.participant.vars["priceChangeDict"]['Stock15_p6_1']=self.Stock15_p6_1 self.participant.vars["priceChangeDict"]['Stock15_p7_1']=self.Stock15_p7_1 self.participant.vars["priceChangeDict"]['Stock15_p8_1']=self.Stock15_p8_1 self.participant.vars["priceChangeDict"]['Stock15_p9_1']=self.Stock15_p9_1 self.participant.vars["priceChangeDict"]['Stock15_p10_1']=self.Stock15_p10_1 self.participant.vars["priceChangeDict"]['Stock16_p1_1']=self.Stock16_p1_1 self.participant.vars["priceChangeDict"]['Stock16_p2_1']=self.Stock16_p2_1 self.participant.vars["priceChangeDict"]['Stock16_p3_1']=self.Stock16_p3_1 self.participant.vars["priceChangeDict"]['Stock16_p4_1']=self.Stock16_p4_1 self.participant.vars["priceChangeDict"]['Stock16_p5_1']=self.Stock16_p5_1 self.participant.vars["priceChangeDict"]['Stock16_p6_1']=self.Stock16_p6_1 self.participant.vars["priceChangeDict"]['Stock16_p7_1']=self.Stock16_p7_1 self.participant.vars["priceChangeDict"]['Stock16_p8_1']=self.Stock16_p8_1 self.participant.vars["priceChangeDict"]['Stock16_p9_1']=self.Stock16_p9_1 self.participant.vars["priceChangeDict"]['Stock16_p10_1']=self.Stock16_p10_1 self.participant.vars["priceChangeDict"]['Stock17_p1_1']=self.Stock17_p1_1 self.participant.vars["priceChangeDict"]['Stock17_p2_1']=self.Stock17_p2_1 self.participant.vars["priceChangeDict"]['Stock17_p3_1']=self.Stock17_p3_1 self.participant.vars["priceChangeDict"]['Stock17_p4_1']=self.Stock17_p4_1 self.participant.vars["priceChangeDict"]['Stock17_p5_1']=self.Stock17_p5_1 self.participant.vars["priceChangeDict"]['Stock17_p6_1']=self.Stock17_p6_1 self.participant.vars["priceChangeDict"]['Stock17_p7_1']=self.Stock17_p7_1 self.participant.vars["priceChangeDict"]['Stock17_p8_1']=self.Stock17_p8_1 self.participant.vars["priceChangeDict"]['Stock17_p9_1']=self.Stock17_p9_1 self.participant.vars["priceChangeDict"]['Stock17_p10_1']=self.Stock17_p10_1 self.participant.vars["priceChangeDict"]['Stock18_p1_1']=self.Stock18_p1_1 self.participant.vars["priceChangeDict"]['Stock18_p2_1']=self.Stock18_p2_1 self.participant.vars["priceChangeDict"]['Stock18_p3_1']=self.Stock18_p3_1 self.participant.vars["priceChangeDict"]['Stock18_p4_1']=self.Stock18_p4_1 self.participant.vars["priceChangeDict"]['Stock18_p5_1']=self.Stock18_p5_1 self.participant.vars["priceChangeDict"]['Stock18_p6_1']=self.Stock18_p6_1 self.participant.vars["priceChangeDict"]['Stock18_p7_1']=self.Stock18_p7_1 self.participant.vars["priceChangeDict"]['Stock18_p8_1']=self.Stock18_p8_1 self.participant.vars["priceChangeDict"]['Stock18_p9_1']=self.Stock18_p9_1 self.participant.vars["priceChangeDict"]['Stock18_p10_1']=self.Stock18_p10_1 self.participant.vars["priceChangeDict"]['Stock19_p1_1']=self.Stock19_p1_1 self.participant.vars["priceChangeDict"]['Stock19_p2_1']=self.Stock19_p2_1 self.participant.vars["priceChangeDict"]['Stock19_p3_1']=self.Stock19_p3_1 self.participant.vars["priceChangeDict"]['Stock19_p4_1']=self.Stock19_p4_1 self.participant.vars["priceChangeDict"]['Stock19_p5_1']=self.Stock19_p5_1 self.participant.vars["priceChangeDict"]['Stock19_p6_1']=self.Stock19_p6_1 self.participant.vars["priceChangeDict"]['Stock19_p7_1']=self.Stock19_p7_1 self.participant.vars["priceChangeDict"]['Stock19_p8_1']=self.Stock19_p8_1 self.participant.vars["priceChangeDict"]['Stock19_p9_1']=self.Stock19_p9_1 self.participant.vars["priceChangeDict"]['Stock19_p10_1']=self.Stock19_p10_1 self.participant.vars["priceChangeDict"]['Stock20_p1_1']=self.Stock20_p1_1 self.participant.vars["priceChangeDict"]['Stock20_p2_1']=self.Stock20_p2_1 self.participant.vars["priceChangeDict"]['Stock20_p3_1']=self.Stock20_p3_1 self.participant.vars["priceChangeDict"]['Stock20_p4_1']=self.Stock20_p4_1 self.participant.vars["priceChangeDict"]['Stock20_p5_1']=self.Stock20_p5_1 self.participant.vars["priceChangeDict"]['Stock20_p6_1']=self.Stock20_p6_1 self.participant.vars["priceChangeDict"]['Stock20_p7_1']=self.Stock20_p7_1 self.participant.vars["priceChangeDict"]['Stock20_p8_1']=self.Stock20_p8_1 self.participant.vars["priceChangeDict"]['Stock20_p9_1']=self.Stock20_p9_1 self.participant.vars["priceChangeDict"]['Stock20_p10_1']=self.Stock20_p10_1 self.participant.vars["priceChangeDict"]['Stock21_p1_1']=self.Stock21_p1_1 self.participant.vars["priceChangeDict"]['Stock21_p2_1']=self.Stock21_p2_1 self.participant.vars["priceChangeDict"]['Stock21_p3_1']=self.Stock21_p3_1 self.participant.vars["priceChangeDict"]['Stock21_p4_1']=self.Stock21_p4_1 self.participant.vars["priceChangeDict"]['Stock21_p5_1']=self.Stock21_p5_1 self.participant.vars["priceChangeDict"]['Stock21_p6_1']=self.Stock21_p6_1 self.participant.vars["priceChangeDict"]['Stock21_p7_1']=self.Stock21_p7_1 self.participant.vars["priceChangeDict"]['Stock21_p8_1']=self.Stock21_p8_1 self.participant.vars["priceChangeDict"]['Stock21_p9_1']=self.Stock21_p9_1 self.participant.vars["priceChangeDict"]['Stock21_p10_1']=self.Stock21_p10_1 self.participant.vars["priceChangeDict"]['Stock22_p1_1']=self.Stock22_p1_1 self.participant.vars["priceChangeDict"]['Stock22_p2_1']=self.Stock22_p2_1 self.participant.vars["priceChangeDict"]['Stock22_p3_1']=self.Stock22_p3_1 self.participant.vars["priceChangeDict"]['Stock22_p4_1']=self.Stock22_p4_1 self.participant.vars["priceChangeDict"]['Stock22_p5_1']=self.Stock22_p5_1 self.participant.vars["priceChangeDict"]['Stock22_p6_1']=self.Stock22_p6_1 self.participant.vars["priceChangeDict"]['Stock22_p7_1']=self.Stock22_p7_1 self.participant.vars["priceChangeDict"]['Stock22_p8_1']=self.Stock22_p8_1 self.participant.vars["priceChangeDict"]['Stock22_p9_1']=self.Stock22_p9_1 self.participant.vars["priceChangeDict"]['Stock22_p10_1']=self.Stock22_p10_1 self.participant.vars["priceChangeDict"]['Stock23_p1_1']=self.Stock23_p1_1 self.participant.vars["priceChangeDict"]['Stock23_p2_1']=self.Stock23_p2_1 self.participant.vars["priceChangeDict"]['Stock23_p3_1']=self.Stock23_p3_1 self.participant.vars["priceChangeDict"]['Stock23_p4_1']=self.Stock23_p4_1 self.participant.vars["priceChangeDict"]['Stock23_p5_1']=self.Stock23_p5_1 self.participant.vars["priceChangeDict"]['Stock23_p6_1']=self.Stock23_p6_1 self.participant.vars["priceChangeDict"]['Stock23_p7_1']=self.Stock23_p7_1 self.participant.vars["priceChangeDict"]['Stock23_p8_1']=self.Stock23_p8_1 self.participant.vars["priceChangeDict"]['Stock23_p9_1']=self.Stock23_p9_1 self.participant.vars["priceChangeDict"]['Stock23_p10_1']=self.Stock23_p10_1 self.participant.vars["priceChangeDict"]['Stock24_p1_1']=self.Stock24_p1_1 self.participant.vars["priceChangeDict"]['Stock24_p2_1']=self.Stock24_p2_1 self.participant.vars["priceChangeDict"]['Stock24_p3_1']=self.Stock24_p3_1 self.participant.vars["priceChangeDict"]['Stock24_p4_1']=self.Stock24_p4_1 self.participant.vars["priceChangeDict"]['Stock24_p5_1']=self.Stock24_p5_1 self.participant.vars["priceChangeDict"]['Stock24_p6_1']=self.Stock24_p6_1 self.participant.vars["priceChangeDict"]['Stock24_p7_1']=self.Stock24_p7_1 self.participant.vars["priceChangeDict"]['Stock24_p8_1']=self.Stock24_p8_1 self.participant.vars["priceChangeDict"]['Stock24_p9_1']=self.Stock24_p9_1 self.participant.vars["priceChangeDict"]['Stock24_p10_1']=self.Stock24_p10_1 self.participant.vars["priceChangeDict"]['Stock25_p1_1']=self.Stock25_p1_1 self.participant.vars["priceChangeDict"]['Stock25_p2_1']=self.Stock25_p2_1 self.participant.vars["priceChangeDict"]['Stock25_p3_1']=self.Stock25_p3_1 self.participant.vars["priceChangeDict"]['Stock25_p4_1']=self.Stock25_p4_1 self.participant.vars["priceChangeDict"]['Stock25_p5_1']=self.Stock25_p5_1 self.participant.vars["priceChangeDict"]['Stock25_p6_1']=self.Stock25_p6_1 self.participant.vars["priceChangeDict"]['Stock25_p7_1']=self.Stock25_p7_1 self.participant.vars["priceChangeDict"]['Stock25_p8_1']=self.Stock25_p8_1 self.participant.vars["priceChangeDict"]['Stock25_p9_1']=self.Stock25_p9_1 self.participant.vars["priceChangeDict"]['Stock25_p10_1']=self.Stock25_p10_1 self.participant.vars["priceChangeDict"]['Stock26_p1_1']=self.Stock26_p1_1 self.participant.vars["priceChangeDict"]['Stock26_p2_1']=self.Stock26_p2_1 self.participant.vars["priceChangeDict"]['Stock26_p3_1']=self.Stock26_p3_1 self.participant.vars["priceChangeDict"]['Stock26_p4_1']=self.Stock26_p4_1 self.participant.vars["priceChangeDict"]['Stock26_p5_1']=self.Stock26_p5_1 self.participant.vars["priceChangeDict"]['Stock26_p6_1']=self.Stock26_p6_1 self.participant.vars["priceChangeDict"]['Stock26_p7_1']=self.Stock26_p7_1 self.participant.vars["priceChangeDict"]['Stock26_p8_1']=self.Stock26_p8_1 self.participant.vars["priceChangeDict"]['Stock26_p9_1']=self.Stock26_p9_1 self.participant.vars["priceChangeDict"]['Stock26_p10_1']=self.Stock26_p10_1 self.participant.vars["priceChangeDict"]['Stock27_p1_1']=self.Stock27_p1_1 self.participant.vars["priceChangeDict"]['Stock27_p2_1']=self.Stock27_p2_1 self.participant.vars["priceChangeDict"]['Stock27_p3_1']=self.Stock27_p3_1 self.participant.vars["priceChangeDict"]['Stock27_p4_1']=self.Stock27_p4_1 self.participant.vars["priceChangeDict"]['Stock27_p5_1']=self.Stock27_p5_1 self.participant.vars["priceChangeDict"]['Stock27_p6_1']=self.Stock27_p6_1 self.participant.vars["priceChangeDict"]['Stock27_p7_1']=self.Stock27_p7_1 self.participant.vars["priceChangeDict"]['Stock27_p8_1']=self.Stock27_p8_1 self.participant.vars["priceChangeDict"]['Stock27_p9_1']=self.Stock27_p9_1 self.participant.vars["priceChangeDict"]['Stock27_p10_1']=self.Stock27_p10_1 self.participant.vars["priceChangeDict"]['Stock28_p1_1']=self.Stock28_p1_1 self.participant.vars["priceChangeDict"]['Stock28_p2_1']=self.Stock28_p2_1 self.participant.vars["priceChangeDict"]['Stock28_p3_1']=self.Stock28_p3_1 self.participant.vars["priceChangeDict"]['Stock28_p4_1']=self.Stock28_p4_1 self.participant.vars["priceChangeDict"]['Stock28_p5_1']=self.Stock28_p5_1 self.participant.vars["priceChangeDict"]['Stock28_p6_1']=self.Stock28_p6_1 self.participant.vars["priceChangeDict"]['Stock28_p7_1']=self.Stock28_p7_1 self.participant.vars["priceChangeDict"]['Stock28_p8_1']=self.Stock28_p8_1 self.participant.vars["priceChangeDict"]['Stock28_p9_1']=self.Stock28_p9_1 self.participant.vars["priceChangeDict"]['Stock28_p10_1']=self.Stock28_p10_1 self.participant.vars["priceChangeDict"]['Stock29_p1_1']=self.Stock29_p1_1 self.participant.vars["priceChangeDict"]['Stock29_p2_1']=self.Stock29_p2_1 self.participant.vars["priceChangeDict"]['Stock29_p3_1']=self.Stock29_p3_1 self.participant.vars["priceChangeDict"]['Stock29_p4_1']=self.Stock29_p4_1 self.participant.vars["priceChangeDict"]['Stock29_p5_1']=self.Stock29_p5_1 self.participant.vars["priceChangeDict"]['Stock29_p6_1']=self.Stock29_p6_1 self.participant.vars["priceChangeDict"]['Stock29_p7_1']=self.Stock29_p7_1 self.participant.vars["priceChangeDict"]['Stock29_p8_1']=self.Stock29_p8_1 self.participant.vars["priceChangeDict"]['Stock29_p9_1']=self.Stock29_p9_1 self.participant.vars["priceChangeDict"]['Stock29_p10_1']=self.Stock29_p10_1 self.participant.vars["priceChangeDict"]['Stock30_p1_1']=self.Stock30_p1_1 self.participant.vars["priceChangeDict"]['Stock30_p2_1']=self.Stock30_p2_1 self.participant.vars["priceChangeDict"]['Stock30_p3_1']=self.Stock30_p3_1 self.participant.vars["priceChangeDict"]['Stock30_p4_1']=self.Stock30_p4_1 self.participant.vars["priceChangeDict"]['Stock30_p5_1']=self.Stock30_p5_1 self.participant.vars["priceChangeDict"]['Stock30_p6_1']=self.Stock30_p6_1 self.participant.vars["priceChangeDict"]['Stock30_p7_1']=self.Stock30_p7_1 self.participant.vars["priceChangeDict"]['Stock30_p8_1']=self.Stock30_p8_1 self.participant.vars["priceChangeDict"]['Stock30_p9_1']=self.Stock30_p9_1 self.participant.vars["priceChangeDict"]['Stock30_p10_1']=self.Stock30_p10_1 self.participant.vars["priceChangeDict"]['Stock31_p1_1']=self.Stock31_p1_1 self.participant.vars["priceChangeDict"]['Stock31_p2_1']=self.Stock31_p2_1 self.participant.vars["priceChangeDict"]['Stock31_p3_1']=self.Stock31_p3_1 self.participant.vars["priceChangeDict"]['Stock31_p4_1']=self.Stock31_p4_1 self.participant.vars["priceChangeDict"]['Stock31_p5_1']=self.Stock31_p5_1 self.participant.vars["priceChangeDict"]['Stock31_p6_1']=self.Stock31_p6_1 self.participant.vars["priceChangeDict"]['Stock31_p7_1']=self.Stock31_p7_1 self.participant.vars["priceChangeDict"]['Stock31_p8_1']=self.Stock31_p8_1 self.participant.vars["priceChangeDict"]['Stock31_p9_1']=self.Stock31_p9_1 self.participant.vars["priceChangeDict"]['Stock31_p10_1']=self.Stock31_p10_1 self.participant.vars["priceChangeDict"]['Stock32_p1_1']=self.Stock32_p1_1 self.participant.vars["priceChangeDict"]['Stock32_p2_1']=self.Stock32_p2_1 self.participant.vars["priceChangeDict"]['Stock32_p3_1']=self.Stock32_p3_1 self.participant.vars["priceChangeDict"]['Stock32_p4_1']=self.Stock32_p4_1 self.participant.vars["priceChangeDict"]['Stock32_p5_1']=self.Stock32_p5_1 self.participant.vars["priceChangeDict"]['Stock32_p6_1']=self.Stock32_p6_1 self.participant.vars["priceChangeDict"]['Stock32_p7_1']=self.Stock32_p7_1 self.participant.vars["priceChangeDict"]['Stock32_p8_1']=self.Stock32_p8_1 self.participant.vars["priceChangeDict"]['Stock32_p9_1']=self.Stock32_p9_1 self.participant.vars["priceChangeDict"]['Stock32_p10_1']=self.Stock32_p10_1 self.participant.vars["priceChangeDict"]['Stock33_p1_1']=self.Stock33_p1_1 self.participant.vars["priceChangeDict"]['Stock33_p2_1']=self.Stock33_p2_1 self.participant.vars["priceChangeDict"]['Stock33_p3_1']=self.Stock33_p3_1 self.participant.vars["priceChangeDict"]['Stock33_p4_1']=self.Stock33_p4_1 self.participant.vars["priceChangeDict"]['Stock33_p5_1']=self.Stock33_p5_1 self.participant.vars["priceChangeDict"]['Stock33_p6_1']=self.Stock33_p6_1 self.participant.vars["priceChangeDict"]['Stock33_p7_1']=self.Stock33_p7_1 self.participant.vars["priceChangeDict"]['Stock33_p8_1']=self.Stock33_p8_1 self.participant.vars["priceChangeDict"]['Stock33_p9_1']=self.Stock33_p9_1 self.participant.vars["priceChangeDict"]['Stock33_p10_1']=self.Stock33_p10_1 self.participant.vars["priceChangeDict"]['Stock34_p1_1']=self.Stock34_p1_1 self.participant.vars["priceChangeDict"]['Stock34_p2_1']=self.Stock34_p2_1 self.participant.vars["priceChangeDict"]['Stock34_p3_1']=self.Stock34_p3_1 self.participant.vars["priceChangeDict"]['Stock34_p4_1']=self.Stock34_p4_1 self.participant.vars["priceChangeDict"]['Stock34_p5_1']=self.Stock34_p5_1 self.participant.vars["priceChangeDict"]['Stock34_p6_1']=self.Stock34_p6_1 self.participant.vars["priceChangeDict"]['Stock34_p7_1']=self.Stock34_p7_1 self.participant.vars["priceChangeDict"]['Stock34_p8_1']=self.Stock34_p8_1 self.participant.vars["priceChangeDict"]['Stock34_p9_1']=self.Stock34_p9_1 self.participant.vars["priceChangeDict"]['Stock34_p10_1']=self.Stock34_p10_1 self.participant.vars["priceChangeDict"]['Stock35_p1_1']=self.Stock35_p1_1 self.participant.vars["priceChangeDict"]['Stock35_p2_1']=self.Stock35_p2_1 self.participant.vars["priceChangeDict"]['Stock35_p3_1']=self.Stock35_p3_1 self.participant.vars["priceChangeDict"]['Stock35_p4_1']=self.Stock35_p4_1 self.participant.vars["priceChangeDict"]['Stock35_p5_1']=self.Stock35_p5_1 self.participant.vars["priceChangeDict"]['Stock35_p6_1']=self.Stock35_p6_1 self.participant.vars["priceChangeDict"]['Stock35_p7_1']=self.Stock35_p7_1 self.participant.vars["priceChangeDict"]['Stock35_p8_1']=self.Stock35_p8_1 self.participant.vars["priceChangeDict"]['Stock35_p9_1']=self.Stock35_p9_1 self.participant.vars["priceChangeDict"]['Stock35_p10_1']=self.Stock35_p10_1 self.participant.vars["priceChangeDict"]['Stock36_p1_1']=self.Stock36_p1_1 self.participant.vars["priceChangeDict"]['Stock36_p2_1']=self.Stock36_p2_1 self.participant.vars["priceChangeDict"]['Stock36_p3_1']=self.Stock36_p3_1 self.participant.vars["priceChangeDict"]['Stock36_p4_1']=self.Stock36_p4_1 self.participant.vars["priceChangeDict"]['Stock36_p5_1']=self.Stock36_p5_1 self.participant.vars["priceChangeDict"]['Stock36_p6_1']=self.Stock36_p6_1 self.participant.vars["priceChangeDict"]['Stock36_p7_1']=self.Stock36_p7_1 self.participant.vars["priceChangeDict"]['Stock36_p8_1']=self.Stock36_p8_1 self.participant.vars["priceChangeDict"]['Stock36_p9_1']=self.Stock36_p9_1 self.participant.vars["priceChangeDict"]['Stock36_p10_1']=self.Stock36_p10_1 self.participant.vars["priceChangeDict"]['Stock37_p1_1']=self.Stock37_p1_1 self.participant.vars["priceChangeDict"]['Stock37_p2_1']=self.Stock37_p2_1 self.participant.vars["priceChangeDict"]['Stock37_p3_1']=self.Stock37_p3_1 self.participant.vars["priceChangeDict"]['Stock37_p4_1']=self.Stock37_p4_1 self.participant.vars["priceChangeDict"]['Stock37_p5_1']=self.Stock37_p5_1 self.participant.vars["priceChangeDict"]['Stock37_p6_1']=self.Stock37_p6_1 self.participant.vars["priceChangeDict"]['Stock37_p7_1']=self.Stock37_p7_1 self.participant.vars["priceChangeDict"]['Stock37_p8_1']=self.Stock37_p8_1 self.participant.vars["priceChangeDict"]['Stock37_p9_1']=self.Stock37_p9_1 self.participant.vars["priceChangeDict"]['Stock37_p10_1']=self.Stock37_p10_1 self.participant.vars["priceChangeDict"]['Stock38_p1_1']=self.Stock38_p1_1 self.participant.vars["priceChangeDict"]['Stock38_p2_1']=self.Stock38_p2_1 self.participant.vars["priceChangeDict"]['Stock38_p3_1']=self.Stock38_p3_1 self.participant.vars["priceChangeDict"]['Stock38_p4_1']=self.Stock38_p4_1 self.participant.vars["priceChangeDict"]['Stock38_p5_1']=self.Stock38_p5_1 self.participant.vars["priceChangeDict"]['Stock38_p6_1']=self.Stock38_p6_1 self.participant.vars["priceChangeDict"]['Stock38_p7_1']=self.Stock38_p7_1 self.participant.vars["priceChangeDict"]['Stock38_p8_1']=self.Stock38_p8_1 self.participant.vars["priceChangeDict"]['Stock38_p9_1']=self.Stock38_p9_1 self.participant.vars["priceChangeDict"]['Stock38_p10_1']=self.Stock38_p10_1 self.participant.vars["priceChangeDict"]['Stock39_p1_1']=self.Stock39_p1_1 self.participant.vars["priceChangeDict"]['Stock39_p2_1']=self.Stock39_p2_1 self.participant.vars["priceChangeDict"]['Stock39_p3_1']=self.Stock39_p3_1 self.participant.vars["priceChangeDict"]['Stock39_p4_1']=self.Stock39_p4_1 self.participant.vars["priceChangeDict"]['Stock39_p5_1']=self.Stock39_p5_1 self.participant.vars["priceChangeDict"]['Stock39_p6_1']=self.Stock39_p6_1 self.participant.vars["priceChangeDict"]['Stock39_p7_1']=self.Stock39_p7_1 self.participant.vars["priceChangeDict"]['Stock39_p8_1']=self.Stock39_p8_1 self.participant.vars["priceChangeDict"]['Stock39_p9_1']=self.Stock39_p9_1 self.participant.vars["priceChangeDict"]['Stock39_p10_1']=self.Stock39_p10_1 self.participant.vars["priceChangeDict"]['Stock40_p1_1']=self.Stock40_p1_1 self.participant.vars["priceChangeDict"]['Stock40_p2_1']=self.Stock40_p2_1 self.participant.vars["priceChangeDict"]['Stock40_p3_1']=self.Stock40_p3_1 self.participant.vars["priceChangeDict"]['Stock40_p4_1']=self.Stock40_p4_1 self.participant.vars["priceChangeDict"]['Stock40_p5_1']=self.Stock40_p5_1 self.participant.vars["priceChangeDict"]['Stock40_p6_1']=self.Stock40_p6_1 self.participant.vars["priceChangeDict"]['Stock40_p7_1']=self.Stock40_p7_1 self.participant.vars["priceChangeDict"]['Stock40_p8_1']=self.Stock40_p8_1 self.participant.vars["priceChangeDict"]['Stock40_p9_1']=self.Stock40_p9_1 self.participant.vars["priceChangeDict"]['Stock40_p10_1']=self.Stock40_p10_1 self.participant.vars["priceChangeDict"]['Stock41_p1_1']=self.Stock41_p1_1 self.participant.vars["priceChangeDict"]['Stock41_p2_1']=self.Stock41_p2_1 self.participant.vars["priceChangeDict"]['Stock41_p3_1']=self.Stock41_p3_1 self.participant.vars["priceChangeDict"]['Stock41_p4_1']=self.Stock41_p4_1 self.participant.vars["priceChangeDict"]['Stock41_p5_1']=self.Stock41_p5_1 self.participant.vars["priceChangeDict"]['Stock41_p6_1']=self.Stock41_p6_1 self.participant.vars["priceChangeDict"]['Stock41_p7_1']=self.Stock41_p7_1 self.participant.vars["priceChangeDict"]['Stock41_p8_1']=self.Stock41_p8_1 self.participant.vars["priceChangeDict"]['Stock41_p9_1']=self.Stock41_p9_1 self.participant.vars["priceChangeDict"]['Stock41_p10_1']=self.Stock41_p10_1 self.participant.vars["priceChangeDict"]['Stock42_p1_1']=self.Stock42_p1_1 self.participant.vars["priceChangeDict"]['Stock42_p2_1']=self.Stock42_p2_1 self.participant.vars["priceChangeDict"]['Stock42_p3_1']=self.Stock42_p3_1 self.participant.vars["priceChangeDict"]['Stock42_p4_1']=self.Stock42_p4_1 self.participant.vars["priceChangeDict"]['Stock42_p5_1']=self.Stock42_p5_1 self.participant.vars["priceChangeDict"]['Stock42_p6_1']=self.Stock42_p6_1 self.participant.vars["priceChangeDict"]['Stock42_p7_1']=self.Stock42_p7_1 self.participant.vars["priceChangeDict"]['Stock42_p8_1']=self.Stock42_p8_1 self.participant.vars["priceChangeDict"]['Stock42_p9_1']=self.Stock42_p9_1 self.participant.vars["priceChangeDict"]['Stock42_p10_1']=self.Stock42_p10_1 self.participant.vars["priceChangeDict"]['Stock43_p1_1']=self.Stock43_p1_1 self.participant.vars["priceChangeDict"]['Stock43_p2_1']=self.Stock43_p2_1 self.participant.vars["priceChangeDict"]['Stock43_p3_1']=self.Stock43_p3_1 self.participant.vars["priceChangeDict"]['Stock43_p4_1']=self.Stock43_p4_1 self.participant.vars["priceChangeDict"]['Stock43_p5_1']=self.Stock43_p5_1 self.participant.vars["priceChangeDict"]['Stock43_p6_1']=self.Stock43_p6_1 self.participant.vars["priceChangeDict"]['Stock43_p7_1']=self.Stock43_p7_1 self.participant.vars["priceChangeDict"]['Stock43_p8_1']=self.Stock43_p8_1 self.participant.vars["priceChangeDict"]['Stock43_p9_1']=self.Stock43_p9_1 self.participant.vars["priceChangeDict"]['Stock43_p10_1']=self.Stock43_p10_1 self.participant.vars["priceChangeDict"]['Stock44_p1_1']=self.Stock44_p1_1 self.participant.vars["priceChangeDict"]['Stock44_p2_1']=self.Stock44_p2_1 self.participant.vars["priceChangeDict"]['Stock44_p3_1']=self.Stock44_p3_1 self.participant.vars["priceChangeDict"]['Stock44_p4_1']=self.Stock44_p4_1 self.participant.vars["priceChangeDict"]['Stock44_p5_1']=self.Stock44_p5_1 self.participant.vars["priceChangeDict"]['Stock44_p6_1']=self.Stock44_p6_1 self.participant.vars["priceChangeDict"]['Stock44_p7_1']=self.Stock44_p7_1 self.participant.vars["priceChangeDict"]['Stock44_p8_1']=self.Stock44_p8_1 self.participant.vars["priceChangeDict"]['Stock44_p9_1']=self.Stock44_p9_1 self.participant.vars["priceChangeDict"]['Stock44_p10_1']=self.Stock44_p10_1 #TRIAL 2 def createStockPriceDictT2(self): self.participant.vars["priceChangeDict_2"] = {} self.participant.vars["priceChangeDict_2"]['Stock1_p1_2']=self.Stock1_p1_2 self.participant.vars["priceChangeDict_2"]['Stock1_p2_2']=self.Stock1_p2_2 self.participant.vars["priceChangeDict_2"]['Stock1_p3_2']=self.Stock1_p3_2 self.participant.vars["priceChangeDict_2"]['Stock1_p4_2']=self.Stock1_p4_2 self.participant.vars["priceChangeDict_2"]['Stock1_p5_2']=self.Stock1_p5_2 self.participant.vars["priceChangeDict_2"]['Stock1_p6_2']=self.Stock1_p6_2 self.participant.vars["priceChangeDict_2"]['Stock1_p7_2']=self.Stock1_p7_2 self.participant.vars["priceChangeDict_2"]['Stock1_p8_2']=self.Stock1_p8_2 self.participant.vars["priceChangeDict_2"]['Stock1_p9_2']=self.Stock1_p9_2 self.participant.vars["priceChangeDict_2"]['Stock1_p10_2']=self.Stock1_p10_2 self.participant.vars["priceChangeDict_2"]['Stock2_p1_2']=self.Stock2_p1_2 self.participant.vars["priceChangeDict_2"]['Stock2_p2_2']=self.Stock2_p2_2 self.participant.vars["priceChangeDict_2"]['Stock2_p3_2']=self.Stock2_p3_2 self.participant.vars["priceChangeDict_2"]['Stock2_p4_2']=self.Stock2_p4_2 self.participant.vars["priceChangeDict_2"]['Stock2_p5_2']=self.Stock2_p5_2 self.participant.vars["priceChangeDict_2"]['Stock2_p6_2']=self.Stock2_p6_2 self.participant.vars["priceChangeDict_2"]['Stock2_p7_2']=self.Stock2_p7_2 self.participant.vars["priceChangeDict_2"]['Stock2_p8_2']=self.Stock2_p8_2 self.participant.vars["priceChangeDict_2"]['Stock2_p9_2']=self.Stock2_p9_2 self.participant.vars["priceChangeDict_2"]['Stock2_p10_2']=self.Stock2_p10_2 self.participant.vars["priceChangeDict_2"]['Stock3_p1_2']=self.Stock3_p1_2 self.participant.vars["priceChangeDict_2"]['Stock3_p2_2']=self.Stock3_p2_2 self.participant.vars["priceChangeDict_2"]['Stock3_p3_2']=self.Stock3_p3_2 self.participant.vars["priceChangeDict_2"]['Stock3_p4_2']=self.Stock3_p4_2 self.participant.vars["priceChangeDict_2"]['Stock3_p5_2']=self.Stock3_p5_2 self.participant.vars["priceChangeDict_2"]['Stock3_p6_2']=self.Stock3_p6_2 self.participant.vars["priceChangeDict_2"]['Stock3_p7_2']=self.Stock3_p7_2 self.participant.vars["priceChangeDict_2"]['Stock3_p8_2']=self.Stock3_p8_2 self.participant.vars["priceChangeDict_2"]['Stock3_p9_2']=self.Stock3_p9_2 self.participant.vars["priceChangeDict_2"]['Stock3_p10_2']=self.Stock3_p10_2 self.participant.vars["priceChangeDict_2"]['Stock4_p1_2']=self.Stock4_p1_2 self.participant.vars["priceChangeDict_2"]['Stock4_p2_2']=self.Stock4_p2_2 self.participant.vars["priceChangeDict_2"]['Stock4_p3_2']=self.Stock4_p3_2 self.participant.vars["priceChangeDict_2"]['Stock4_p4_2']=self.Stock4_p4_2 self.participant.vars["priceChangeDict_2"]['Stock4_p5_2']=self.Stock4_p5_2 self.participant.vars["priceChangeDict_2"]['Stock4_p6_2']=self.Stock4_p6_2 self.participant.vars["priceChangeDict_2"]['Stock4_p7_2']=self.Stock4_p7_2 self.participant.vars["priceChangeDict_2"]['Stock4_p8_2']=self.Stock4_p8_2 self.participant.vars["priceChangeDict_2"]['Stock4_p9_2']=self.Stock4_p9_2 self.participant.vars["priceChangeDict_2"]['Stock4_p10_2']=self.Stock4_p10_2 self.participant.vars["priceChangeDict_2"]['Stock5_p1_2']=self.Stock5_p1_2 self.participant.vars["priceChangeDict_2"]['Stock5_p2_2']=self.Stock5_p2_2 self.participant.vars["priceChangeDict_2"]['Stock5_p3_2']=self.Stock5_p3_2 self.participant.vars["priceChangeDict_2"]['Stock5_p4_2']=self.Stock5_p4_2 self.participant.vars["priceChangeDict_2"]['Stock5_p5_2']=self.Stock5_p5_2 self.participant.vars["priceChangeDict_2"]['Stock5_p6_2']=self.Stock5_p6_2 self.participant.vars["priceChangeDict_2"]['Stock5_p7_2']=self.Stock5_p7_2 self.participant.vars["priceChangeDict_2"]['Stock5_p8_2']=self.Stock5_p8_2 self.participant.vars["priceChangeDict_2"]['Stock5_p9_2']=self.Stock5_p9_2 self.participant.vars["priceChangeDict_2"]['Stock5_p10_2']=self.Stock5_p10_2 self.participant.vars["priceChangeDict_2"]['Stock6_p1_2']=self.Stock6_p1_2 self.participant.vars["priceChangeDict_2"]['Stock6_p2_2']=self.Stock6_p2_2 self.participant.vars["priceChangeDict_2"]['Stock6_p3_2']=self.Stock6_p3_2 self.participant.vars["priceChangeDict_2"]['Stock6_p4_2']=self.Stock6_p4_2 self.participant.vars["priceChangeDict_2"]['Stock6_p5_2']=self.Stock6_p5_2 self.participant.vars["priceChangeDict_2"]['Stock6_p6_2']=self.Stock6_p6_2 self.participant.vars["priceChangeDict_2"]['Stock6_p7_2']=self.Stock6_p7_2 self.participant.vars["priceChangeDict_2"]['Stock6_p8_2']=self.Stock6_p8_2 self.participant.vars["priceChangeDict_2"]['Stock6_p9_2']=self.Stock6_p9_2 self.participant.vars["priceChangeDict_2"]['Stock6_p10_2']=self.Stock6_p10_2 self.participant.vars["priceChangeDict_2"]['Stock7_p1_2']=self.Stock7_p1_2 self.participant.vars["priceChangeDict_2"]['Stock7_p2_2']=self.Stock7_p2_2 self.participant.vars["priceChangeDict_2"]['Stock7_p3_2']=self.Stock7_p3_2 self.participant.vars["priceChangeDict_2"]['Stock7_p4_2']=self.Stock7_p4_2 self.participant.vars["priceChangeDict_2"]['Stock7_p5_2']=self.Stock7_p5_2 self.participant.vars["priceChangeDict_2"]['Stock7_p6_2']=self.Stock7_p6_2 self.participant.vars["priceChangeDict_2"]['Stock7_p7_2']=self.Stock7_p7_2 self.participant.vars["priceChangeDict_2"]['Stock7_p8_2']=self.Stock7_p8_2 self.participant.vars["priceChangeDict_2"]['Stock7_p9_2']=self.Stock7_p9_2 self.participant.vars["priceChangeDict_2"]['Stock7_p10_2']=self.Stock7_p10_2 self.participant.vars["priceChangeDict_2"]['Stock8_p1_2']=self.Stock8_p1_2 self.participant.vars["priceChangeDict_2"]['Stock8_p2_2']=self.Stock8_p2_2 self.participant.vars["priceChangeDict_2"]['Stock8_p3_2']=self.Stock8_p3_2 self.participant.vars["priceChangeDict_2"]['Stock8_p4_2']=self.Stock8_p4_2 self.participant.vars["priceChangeDict_2"]['Stock8_p5_2']=self.Stock8_p5_2 self.participant.vars["priceChangeDict_2"]['Stock8_p6_2']=self.Stock8_p6_2 self.participant.vars["priceChangeDict_2"]['Stock8_p7_2']=self.Stock8_p7_2 self.participant.vars["priceChangeDict_2"]['Stock8_p8_2']=self.Stock8_p8_2 self.participant.vars["priceChangeDict_2"]['Stock8_p9_2']=self.Stock8_p9_2 self.participant.vars["priceChangeDict_2"]['Stock8_p10_2']=self.Stock8_p10_2 self.participant.vars["priceChangeDict_2"]['Stock9_p1_2']=self.Stock9_p1_2 self.participant.vars["priceChangeDict_2"]['Stock9_p2_2']=self.Stock9_p2_2 self.participant.vars["priceChangeDict_2"]['Stock9_p3_2']=self.Stock9_p3_2 self.participant.vars["priceChangeDict_2"]['Stock9_p4_2']=self.Stock9_p4_2 self.participant.vars["priceChangeDict_2"]['Stock9_p5_2']=self.Stock9_p5_2 self.participant.vars["priceChangeDict_2"]['Stock9_p6_2']=self.Stock9_p6_2 self.participant.vars["priceChangeDict_2"]['Stock9_p7_2']=self.Stock9_p7_2 self.participant.vars["priceChangeDict_2"]['Stock9_p8_2']=self.Stock9_p8_2 self.participant.vars["priceChangeDict_2"]['Stock9_p9_2']=self.Stock9_p9_2 self.participant.vars["priceChangeDict_2"]['Stock9_p10_2']=self.Stock9_p10_2 self.participant.vars["priceChangeDict_2"]['Stock10_p1_2']=self.Stock10_p1_2 self.participant.vars["priceChangeDict_2"]['Stock10_p2_2']=self.Stock10_p2_2 self.participant.vars["priceChangeDict_2"]['Stock10_p3_2']=self.Stock10_p3_2 self.participant.vars["priceChangeDict_2"]['Stock10_p4_2']=self.Stock10_p4_2 self.participant.vars["priceChangeDict_2"]['Stock10_p5_2']=self.Stock10_p5_2 self.participant.vars["priceChangeDict_2"]['Stock10_p6_2']=self.Stock10_p6_2 self.participant.vars["priceChangeDict_2"]['Stock10_p7_2']=self.Stock10_p7_2 self.participant.vars["priceChangeDict_2"]['Stock10_p8_2']=self.Stock10_p8_2 self.participant.vars["priceChangeDict_2"]['Stock10_p9_2']=self.Stock10_p9_2 self.participant.vars["priceChangeDict_2"]['Stock10_p10_2']=self.Stock10_p10_2 self.participant.vars["priceChangeDict_2"]['Stock11_p1_2']=self.Stock11_p1_2 self.participant.vars["priceChangeDict_2"]['Stock11_p2_2']=self.Stock11_p2_2 self.participant.vars["priceChangeDict_2"]['Stock11_p3_2']=self.Stock11_p3_2 self.participant.vars["priceChangeDict_2"]['Stock11_p4_2']=self.Stock11_p4_2 self.participant.vars["priceChangeDict_2"]['Stock11_p5_2']=self.Stock11_p5_2 self.participant.vars["priceChangeDict_2"]['Stock11_p6_2']=self.Stock11_p6_2 self.participant.vars["priceChangeDict_2"]['Stock11_p7_2']=self.Stock11_p7_2 self.participant.vars["priceChangeDict_2"]['Stock11_p8_2']=self.Stock11_p8_2 self.participant.vars["priceChangeDict_2"]['Stock11_p9_2']=self.Stock11_p9_2 self.participant.vars["priceChangeDict_2"]['Stock11_p10_2']=self.Stock11_p10_2 self.participant.vars["priceChangeDict_2"]['Stock12_p1_2']=self.Stock12_p1_2 self.participant.vars["priceChangeDict_2"]['Stock12_p2_2']=self.Stock12_p2_2 self.participant.vars["priceChangeDict_2"]['Stock12_p3_2']=self.Stock12_p3_2 self.participant.vars["priceChangeDict_2"]['Stock12_p4_2']=self.Stock12_p4_2 self.participant.vars["priceChangeDict_2"]['Stock12_p5_2']=self.Stock12_p5_2 self.participant.vars["priceChangeDict_2"]['Stock12_p6_2']=self.Stock12_p6_2 self.participant.vars["priceChangeDict_2"]['Stock12_p7_2']=self.Stock12_p7_2 self.participant.vars["priceChangeDict_2"]['Stock12_p8_2']=self.Stock12_p8_2 self.participant.vars["priceChangeDict_2"]['Stock12_p9_2']=self.Stock12_p9_2 self.participant.vars["priceChangeDict_2"]['Stock12_p10_2']=self.Stock12_p10_2 self.participant.vars["priceChangeDict_2"]['Stock13_p1_2']=self.Stock13_p1_2 self.participant.vars["priceChangeDict_2"]['Stock13_p2_2']=self.Stock13_p2_2 self.participant.vars["priceChangeDict_2"]['Stock13_p3_2']=self.Stock13_p3_2 self.participant.vars["priceChangeDict_2"]['Stock13_p4_2']=self.Stock13_p4_2 self.participant.vars["priceChangeDict_2"]['Stock13_p5_2']=self.Stock13_p5_2 self.participant.vars["priceChangeDict_2"]['Stock13_p6_2']=self.Stock13_p6_2 self.participant.vars["priceChangeDict_2"]['Stock13_p7_2']=self.Stock13_p7_2 self.participant.vars["priceChangeDict_2"]['Stock13_p8_2']=self.Stock13_p8_2 self.participant.vars["priceChangeDict_2"]['Stock13_p9_2']=self.Stock13_p9_2 self.participant.vars["priceChangeDict_2"]['Stock13_p10_2']=self.Stock13_p10_2 self.participant.vars["priceChangeDict_2"]['Stock14_p1_2']=self.Stock14_p1_2 self.participant.vars["priceChangeDict_2"]['Stock14_p2_2']=self.Stock14_p2_2 self.participant.vars["priceChangeDict_2"]['Stock14_p3_2']=self.Stock14_p3_2 self.participant.vars["priceChangeDict_2"]['Stock14_p4_2']=self.Stock14_p4_2 self.participant.vars["priceChangeDict_2"]['Stock14_p5_2']=self.Stock14_p5_2 self.participant.vars["priceChangeDict_2"]['Stock14_p6_2']=self.Stock14_p6_2 self.participant.vars["priceChangeDict_2"]['Stock14_p7_2']=self.Stock14_p7_2 self.participant.vars["priceChangeDict_2"]['Stock14_p8_2']=self.Stock14_p8_2 self.participant.vars["priceChangeDict_2"]['Stock14_p9_2']=self.Stock14_p9_2 self.participant.vars["priceChangeDict_2"]['Stock14_p10_2']=self.Stock14_p10_2 self.participant.vars["priceChangeDict_2"]['Stock15_p1_2']=self.Stock15_p1_2 self.participant.vars["priceChangeDict_2"]['Stock15_p2_2']=self.Stock15_p2_2 self.participant.vars["priceChangeDict_2"]['Stock15_p3_2']=self.Stock15_p3_2 self.participant.vars["priceChangeDict_2"]['Stock15_p4_2']=self.Stock15_p4_2 self.participant.vars["priceChangeDict_2"]['Stock15_p5_2']=self.Stock15_p5_2 self.participant.vars["priceChangeDict_2"]['Stock15_p6_2']=self.Stock15_p6_2 self.participant.vars["priceChangeDict_2"]['Stock15_p7_2']=self.Stock15_p7_2 self.participant.vars["priceChangeDict_2"]['Stock15_p8_2']=self.Stock15_p8_2 self.participant.vars["priceChangeDict_2"]['Stock15_p9_2']=self.Stock15_p9_2 self.participant.vars["priceChangeDict_2"]['Stock15_p10_2']=self.Stock15_p10_2 self.participant.vars["priceChangeDict_2"]['Stock16_p1_2']=self.Stock16_p1_2 self.participant.vars["priceChangeDict_2"]['Stock16_p2_2']=self.Stock16_p2_2 self.participant.vars["priceChangeDict_2"]['Stock16_p3_2']=self.Stock16_p3_2 self.participant.vars["priceChangeDict_2"]['Stock16_p4_2']=self.Stock16_p4_2 self.participant.vars["priceChangeDict_2"]['Stock16_p5_2']=self.Stock16_p5_2 self.participant.vars["priceChangeDict_2"]['Stock16_p6_2']=self.Stock16_p6_2 self.participant.vars["priceChangeDict_2"]['Stock16_p7_2']=self.Stock16_p7_2 self.participant.vars["priceChangeDict_2"]['Stock16_p8_2']=self.Stock16_p8_2 self.participant.vars["priceChangeDict_2"]['Stock16_p9_2']=self.Stock16_p9_2 self.participant.vars["priceChangeDict_2"]['Stock16_p10_2']=self.Stock16_p10_2 self.participant.vars["priceChangeDict_2"]['Stock17_p1_2']=self.Stock17_p1_2 self.participant.vars["priceChangeDict_2"]['Stock17_p2_2']=self.Stock17_p2_2 self.participant.vars["priceChangeDict_2"]['Stock17_p3_2']=self.Stock17_p3_2 self.participant.vars["priceChangeDict_2"]['Stock17_p4_2']=self.Stock17_p4_2 self.participant.vars["priceChangeDict_2"]['Stock17_p5_2']=self.Stock17_p5_2 self.participant.vars["priceChangeDict_2"]['Stock17_p6_2']=self.Stock17_p6_2 self.participant.vars["priceChangeDict_2"]['Stock17_p7_2']=self.Stock17_p7_2 self.participant.vars["priceChangeDict_2"]['Stock17_p8_2']=self.Stock17_p8_2 self.participant.vars["priceChangeDict_2"]['Stock17_p9_2']=self.Stock17_p9_2 self.participant.vars["priceChangeDict_2"]['Stock17_p10_2']=self.Stock17_p10_2 self.participant.vars["priceChangeDict_2"]['Stock18_p1_2']=self.Stock18_p1_2 self.participant.vars["priceChangeDict_2"]['Stock18_p2_2']=self.Stock18_p2_2 self.participant.vars["priceChangeDict_2"]['Stock18_p3_2']=self.Stock18_p3_2 self.participant.vars["priceChangeDict_2"]['Stock18_p4_2']=self.Stock18_p4_2 self.participant.vars["priceChangeDict_2"]['Stock18_p5_2']=self.Stock18_p5_2 self.participant.vars["priceChangeDict_2"]['Stock18_p6_2']=self.Stock18_p6_2 self.participant.vars["priceChangeDict_2"]['Stock18_p7_2']=self.Stock18_p7_2 self.participant.vars["priceChangeDict_2"]['Stock18_p8_2']=self.Stock18_p8_2 self.participant.vars["priceChangeDict_2"]['Stock18_p9_2']=self.Stock18_p9_2 self.participant.vars["priceChangeDict_2"]['Stock18_p10_2']=self.Stock18_p10_2 self.participant.vars["priceChangeDict_2"]['Stock19_p1_2']=self.Stock19_p1_2 self.participant.vars["priceChangeDict_2"]['Stock19_p2_2']=self.Stock19_p2_2 self.participant.vars["priceChangeDict_2"]['Stock19_p3_2']=self.Stock19_p3_2 self.participant.vars["priceChangeDict_2"]['Stock19_p4_2']=self.Stock19_p4_2 self.participant.vars["priceChangeDict_2"]['Stock19_p5_2']=self.Stock19_p5_2 self.participant.vars["priceChangeDict_2"]['Stock19_p6_2']=self.Stock19_p6_2 self.participant.vars["priceChangeDict_2"]['Stock19_p7_2']=self.Stock19_p7_2 self.participant.vars["priceChangeDict_2"]['Stock19_p8_2']=self.Stock19_p8_2 self.participant.vars["priceChangeDict_2"]['Stock19_p9_2']=self.Stock19_p9_2 self.participant.vars["priceChangeDict_2"]['Stock19_p10_2']=self.Stock19_p10_2 self.participant.vars["priceChangeDict_2"]['Stock20_p1_2']=self.Stock20_p1_2 self.participant.vars["priceChangeDict_2"]['Stock20_p2_2']=self.Stock20_p2_2 self.participant.vars["priceChangeDict_2"]['Stock20_p3_2']=self.Stock20_p3_2 self.participant.vars["priceChangeDict_2"]['Stock20_p4_2']=self.Stock20_p4_2 self.participant.vars["priceChangeDict_2"]['Stock20_p5_2']=self.Stock20_p5_2 self.participant.vars["priceChangeDict_2"]['Stock20_p6_2']=self.Stock20_p6_2 self.participant.vars["priceChangeDict_2"]['Stock20_p7_2']=self.Stock20_p7_2 self.participant.vars["priceChangeDict_2"]['Stock20_p8_2']=self.Stock20_p8_2 self.participant.vars["priceChangeDict_2"]['Stock20_p9_2']=self.Stock20_p9_2 self.participant.vars["priceChangeDict_2"]['Stock20_p10_2']=self.Stock20_p10_2 self.participant.vars["priceChangeDict_2"]['Stock21_p1_2']=self.Stock21_p1_2 self.participant.vars["priceChangeDict_2"]['Stock21_p2_2']=self.Stock21_p2_2 self.participant.vars["priceChangeDict_2"]['Stock21_p3_2']=self.Stock21_p3_2 self.participant.vars["priceChangeDict_2"]['Stock21_p4_2']=self.Stock21_p4_2 self.participant.vars["priceChangeDict_2"]['Stock21_p5_2']=self.Stock21_p5_2 self.participant.vars["priceChangeDict_2"]['Stock21_p6_2']=self.Stock21_p6_2 self.participant.vars["priceChangeDict_2"]['Stock21_p7_2']=self.Stock21_p7_2 self.participant.vars["priceChangeDict_2"]['Stock21_p8_2']=self.Stock21_p8_2 self.participant.vars["priceChangeDict_2"]['Stock21_p9_2']=self.Stock21_p9_2 self.participant.vars["priceChangeDict_2"]['Stock21_p10_2']=self.Stock21_p10_2 self.participant.vars["priceChangeDict_2"]['Stock22_p1_2']=self.Stock22_p1_2 self.participant.vars["priceChangeDict_2"]['Stock22_p2_2']=self.Stock22_p2_2 self.participant.vars["priceChangeDict_2"]['Stock22_p3_2']=self.Stock22_p3_2 self.participant.vars["priceChangeDict_2"]['Stock22_p4_2']=self.Stock22_p4_2 self.participant.vars["priceChangeDict_2"]['Stock22_p5_2']=self.Stock22_p5_2 self.participant.vars["priceChangeDict_2"]['Stock22_p6_2']=self.Stock22_p6_2 self.participant.vars["priceChangeDict_2"]['Stock22_p7_2']=self.Stock22_p7_2 self.participant.vars["priceChangeDict_2"]['Stock22_p8_2']=self.Stock22_p8_2 self.participant.vars["priceChangeDict_2"]['Stock22_p9_2']=self.Stock22_p9_2 self.participant.vars["priceChangeDict_2"]['Stock22_p10_2']=self.Stock22_p10_2 self.participant.vars["priceChangeDict_2"]['Stock23_p1_2']=self.Stock23_p1_2 self.participant.vars["priceChangeDict_2"]['Stock23_p2_2']=self.Stock23_p2_2 self.participant.vars["priceChangeDict_2"]['Stock23_p3_2']=self.Stock23_p3_2 self.participant.vars["priceChangeDict_2"]['Stock23_p4_2']=self.Stock23_p4_2 self.participant.vars["priceChangeDict_2"]['Stock23_p5_2']=self.Stock23_p5_2 self.participant.vars["priceChangeDict_2"]['Stock23_p6_2']=self.Stock23_p6_2 self.participant.vars["priceChangeDict_2"]['Stock23_p7_2']=self.Stock23_p7_2 self.participant.vars["priceChangeDict_2"]['Stock23_p8_2']=self.Stock23_p8_2 self.participant.vars["priceChangeDict_2"]['Stock23_p9_2']=self.Stock23_p9_2 self.participant.vars["priceChangeDict_2"]['Stock23_p10_2']=self.Stock23_p10_2 self.participant.vars["priceChangeDict_2"]['Stock24_p1_2']=self.Stock24_p1_2 self.participant.vars["priceChangeDict_2"]['Stock24_p2_2']=self.Stock24_p2_2 self.participant.vars["priceChangeDict_2"]['Stock24_p3_2']=self.Stock24_p3_2 self.participant.vars["priceChangeDict_2"]['Stock24_p4_2']=self.Stock24_p4_2 self.participant.vars["priceChangeDict_2"]['Stock24_p5_2']=self.Stock24_p5_2 self.participant.vars["priceChangeDict_2"]['Stock24_p6_2']=self.Stock24_p6_2 self.participant.vars["priceChangeDict_2"]['Stock24_p7_2']=self.Stock24_p7_2 self.participant.vars["priceChangeDict_2"]['Stock24_p8_2']=self.Stock24_p8_2 self.participant.vars["priceChangeDict_2"]['Stock24_p9_2']=self.Stock24_p9_2 self.participant.vars["priceChangeDict_2"]['Stock24_p10_2']=self.Stock24_p10_2 self.participant.vars["priceChangeDict_2"]['Stock25_p1_2']=self.Stock25_p1_2 self.participant.vars["priceChangeDict_2"]['Stock25_p2_2']=self.Stock25_p2_2 self.participant.vars["priceChangeDict_2"]['Stock25_p3_2']=self.Stock25_p3_2 self.participant.vars["priceChangeDict_2"]['Stock25_p4_2']=self.Stock25_p4_2 self.participant.vars["priceChangeDict_2"]['Stock25_p5_2']=self.Stock25_p5_2 self.participant.vars["priceChangeDict_2"]['Stock25_p6_2']=self.Stock25_p6_2 self.participant.vars["priceChangeDict_2"]['Stock25_p7_2']=self.Stock25_p7_2 self.participant.vars["priceChangeDict_2"]['Stock25_p8_2']=self.Stock25_p8_2 self.participant.vars["priceChangeDict_2"]['Stock25_p9_2']=self.Stock25_p9_2 self.participant.vars["priceChangeDict_2"]['Stock25_p10_2']=self.Stock25_p10_2 self.participant.vars["priceChangeDict_2"]['Stock26_p1_2']=self.Stock26_p1_2 self.participant.vars["priceChangeDict_2"]['Stock26_p2_2']=self.Stock26_p2_2 self.participant.vars["priceChangeDict_2"]['Stock26_p3_2']=self.Stock26_p3_2 self.participant.vars["priceChangeDict_2"]['Stock26_p4_2']=self.Stock26_p4_2 self.participant.vars["priceChangeDict_2"]['Stock26_p5_2']=self.Stock26_p5_2 self.participant.vars["priceChangeDict_2"]['Stock26_p6_2']=self.Stock26_p6_2 self.participant.vars["priceChangeDict_2"]['Stock26_p7_2']=self.Stock26_p7_2 self.participant.vars["priceChangeDict_2"]['Stock26_p8_2']=self.Stock26_p8_2 self.participant.vars["priceChangeDict_2"]['Stock26_p9_2']=self.Stock26_p9_2 self.participant.vars["priceChangeDict_2"]['Stock26_p10_2']=self.Stock26_p10_2 self.participant.vars["priceChangeDict_2"]['Stock27_p1_2']=self.Stock27_p1_2 self.participant.vars["priceChangeDict_2"]['Stock27_p2_2']=self.Stock27_p2_2 self.participant.vars["priceChangeDict_2"]['Stock27_p3_2']=self.Stock27_p3_2 self.participant.vars["priceChangeDict_2"]['Stock27_p4_2']=self.Stock27_p4_2 self.participant.vars["priceChangeDict_2"]['Stock27_p5_2']=self.Stock27_p5_2 self.participant.vars["priceChangeDict_2"]['Stock27_p6_2']=self.Stock27_p6_2 self.participant.vars["priceChangeDict_2"]['Stock27_p7_2']=self.Stock27_p7_2 self.participant.vars["priceChangeDict_2"]['Stock27_p8_2']=self.Stock27_p8_2 self.participant.vars["priceChangeDict_2"]['Stock27_p9_2']=self.Stock27_p9_2 self.participant.vars["priceChangeDict_2"]['Stock27_p10_2']=self.Stock27_p10_2 self.participant.vars["priceChangeDict_2"]['Stock28_p1_2']=self.Stock28_p1_2 self.participant.vars["priceChangeDict_2"]['Stock28_p2_2']=self.Stock28_p2_2 self.participant.vars["priceChangeDict_2"]['Stock28_p3_2']=self.Stock28_p3_2 self.participant.vars["priceChangeDict_2"]['Stock28_p4_2']=self.Stock28_p4_2 self.participant.vars["priceChangeDict_2"]['Stock28_p5_2']=self.Stock28_p5_2 self.participant.vars["priceChangeDict_2"]['Stock28_p6_2']=self.Stock28_p6_2 self.participant.vars["priceChangeDict_2"]['Stock28_p7_2']=self.Stock28_p7_2 self.participant.vars["priceChangeDict_2"]['Stock28_p8_2']=self.Stock28_p8_2 self.participant.vars["priceChangeDict_2"]['Stock28_p9_2']=self.Stock28_p9_2 self.participant.vars["priceChangeDict_2"]['Stock28_p10_2']=self.Stock28_p10_2 self.participant.vars["priceChangeDict_2"]['Stock29_p1_2']=self.Stock29_p1_2 self.participant.vars["priceChangeDict_2"]['Stock29_p2_2']=self.Stock29_p2_2 self.participant.vars["priceChangeDict_2"]['Stock29_p3_2']=self.Stock29_p3_2 self.participant.vars["priceChangeDict_2"]['Stock29_p4_2']=self.Stock29_p4_2 self.participant.vars["priceChangeDict_2"]['Stock29_p5_2']=self.Stock29_p5_2 self.participant.vars["priceChangeDict_2"]['Stock29_p6_2']=self.Stock29_p6_2 self.participant.vars["priceChangeDict_2"]['Stock29_p7_2']=self.Stock29_p7_2 self.participant.vars["priceChangeDict_2"]['Stock29_p8_2']=self.Stock29_p8_2 self.participant.vars["priceChangeDict_2"]['Stock29_p9_2']=self.Stock29_p9_2 self.participant.vars["priceChangeDict_2"]['Stock29_p10_2']=self.Stock29_p10_2 self.participant.vars["priceChangeDict_2"]['Stock30_p1_2']=self.Stock30_p1_2 self.participant.vars["priceChangeDict_2"]['Stock30_p2_2']=self.Stock30_p2_2 self.participant.vars["priceChangeDict_2"]['Stock30_p3_2']=self.Stock30_p3_2 self.participant.vars["priceChangeDict_2"]['Stock30_p4_2']=self.Stock30_p4_2 self.participant.vars["priceChangeDict_2"]['Stock30_p5_2']=self.Stock30_p5_2 self.participant.vars["priceChangeDict_2"]['Stock30_p6_2']=self.Stock30_p6_2 self.participant.vars["priceChangeDict_2"]['Stock30_p7_2']=self.Stock30_p7_2 self.participant.vars["priceChangeDict_2"]['Stock30_p8_2']=self.Stock30_p8_2 self.participant.vars["priceChangeDict_2"]['Stock30_p9_2']=self.Stock30_p9_2 self.participant.vars["priceChangeDict_2"]['Stock30_p10_2']=self.Stock30_p10_2 self.participant.vars["priceChangeDict_2"]['Stock31_p1_2']=self.Stock31_p1_2 self.participant.vars["priceChangeDict_2"]['Stock31_p2_2']=self.Stock31_p2_2 self.participant.vars["priceChangeDict_2"]['Stock31_p3_2']=self.Stock31_p3_2 self.participant.vars["priceChangeDict_2"]['Stock31_p4_2']=self.Stock31_p4_2 self.participant.vars["priceChangeDict_2"]['Stock31_p5_2']=self.Stock31_p5_2 self.participant.vars["priceChangeDict_2"]['Stock31_p6_2']=self.Stock31_p6_2 self.participant.vars["priceChangeDict_2"]['Stock31_p7_2']=self.Stock31_p7_2 self.participant.vars["priceChangeDict_2"]['Stock31_p8_2']=self.Stock31_p8_2 self.participant.vars["priceChangeDict_2"]['Stock31_p9_2']=self.Stock31_p9_2 self.participant.vars["priceChangeDict_2"]['Stock31_p10_2']=self.Stock31_p10_2 self.participant.vars["priceChangeDict_2"]['Stock32_p1_2']=self.Stock32_p1_2 self.participant.vars["priceChangeDict_2"]['Stock32_p2_2']=self.Stock32_p2_2 self.participant.vars["priceChangeDict_2"]['Stock32_p3_2']=self.Stock32_p3_2 self.participant.vars["priceChangeDict_2"]['Stock32_p4_2']=self.Stock32_p4_2 self.participant.vars["priceChangeDict_2"]['Stock32_p5_2']=self.Stock32_p5_2 self.participant.vars["priceChangeDict_2"]['Stock32_p6_2']=self.Stock32_p6_2 self.participant.vars["priceChangeDict_2"]['Stock32_p7_2']=self.Stock32_p7_2 self.participant.vars["priceChangeDict_2"]['Stock32_p8_2']=self.Stock32_p8_2 self.participant.vars["priceChangeDict_2"]['Stock32_p9_2']=self.Stock32_p9_2 self.participant.vars["priceChangeDict_2"]['Stock32_p10_2']=self.Stock32_p10_2 self.participant.vars["priceChangeDict_2"]['Stock33_p1_2']=self.Stock33_p1_2 self.participant.vars["priceChangeDict_2"]['Stock33_p2_2']=self.Stock33_p2_2 self.participant.vars["priceChangeDict_2"]['Stock33_p3_2']=self.Stock33_p3_2 self.participant.vars["priceChangeDict_2"]['Stock33_p4_2']=self.Stock33_p4_2 self.participant.vars["priceChangeDict_2"]['Stock33_p5_2']=self.Stock33_p5_2 self.participant.vars["priceChangeDict_2"]['Stock33_p6_2']=self.Stock33_p6_2 self.participant.vars["priceChangeDict_2"]['Stock33_p7_2']=self.Stock33_p7_2 self.participant.vars["priceChangeDict_2"]['Stock33_p8_2']=self.Stock33_p8_2 self.participant.vars["priceChangeDict_2"]['Stock33_p9_2']=self.Stock33_p9_2 self.participant.vars["priceChangeDict_2"]['Stock33_p10_2']=self.Stock33_p10_2 self.participant.vars["priceChangeDict_2"]['Stock34_p1_2']=self.Stock34_p1_2 self.participant.vars["priceChangeDict_2"]['Stock34_p2_2']=self.Stock34_p2_2 self.participant.vars["priceChangeDict_2"]['Stock34_p3_2']=self.Stock34_p3_2 self.participant.vars["priceChangeDict_2"]['Stock34_p4_2']=self.Stock34_p4_2 self.participant.vars["priceChangeDict_2"]['Stock34_p5_2']=self.Stock34_p5_2 self.participant.vars["priceChangeDict_2"]['Stock34_p6_2']=self.Stock34_p6_2 self.participant.vars["priceChangeDict_2"]['Stock34_p7_2']=self.Stock34_p7_2 self.participant.vars["priceChangeDict_2"]['Stock34_p8_2']=self.Stock34_p8_2 self.participant.vars["priceChangeDict_2"]['Stock34_p9_2']=self.Stock34_p9_2 self.participant.vars["priceChangeDict_2"]['Stock34_p10_2']=self.Stock34_p10_2 self.participant.vars["priceChangeDict_2"]['Stock35_p1_2']=self.Stock35_p1_2 self.participant.vars["priceChangeDict_2"]['Stock35_p2_2']=self.Stock35_p2_2 self.participant.vars["priceChangeDict_2"]['Stock35_p3_2']=self.Stock35_p3_2 self.participant.vars["priceChangeDict_2"]['Stock35_p4_2']=self.Stock35_p4_2 self.participant.vars["priceChangeDict_2"]['Stock35_p5_2']=self.Stock35_p5_2 self.participant.vars["priceChangeDict_2"]['Stock35_p6_2']=self.Stock35_p6_2 self.participant.vars["priceChangeDict_2"]['Stock35_p7_2']=self.Stock35_p7_2 self.participant.vars["priceChangeDict_2"]['Stock35_p8_2']=self.Stock35_p8_2 self.participant.vars["priceChangeDict_2"]['Stock35_p9_2']=self.Stock35_p9_2 self.participant.vars["priceChangeDict_2"]['Stock35_p10_2']=self.Stock35_p10_2 self.participant.vars["priceChangeDict_2"]['Stock36_p1_2']=self.Stock36_p1_2 self.participant.vars["priceChangeDict_2"]['Stock36_p2_2']=self.Stock36_p2_2 self.participant.vars["priceChangeDict_2"]['Stock36_p3_2']=self.Stock36_p3_2 self.participant.vars["priceChangeDict_2"]['Stock36_p4_2']=self.Stock36_p4_2 self.participant.vars["priceChangeDict_2"]['Stock36_p5_2']=self.Stock36_p5_2 self.participant.vars["priceChangeDict_2"]['Stock36_p6_2']=self.Stock36_p6_2 self.participant.vars["priceChangeDict_2"]['Stock36_p7_2']=self.Stock36_p7_2 self.participant.vars["priceChangeDict_2"]['Stock36_p8_2']=self.Stock36_p8_2 self.participant.vars["priceChangeDict_2"]['Stock36_p9_2']=self.Stock36_p9_2 self.participant.vars["priceChangeDict_2"]['Stock36_p10_2']=self.Stock36_p10_2 self.participant.vars["priceChangeDict_2"]['Stock37_p1_2']=self.Stock37_p1_2 self.participant.vars["priceChangeDict_2"]['Stock37_p2_2']=self.Stock37_p2_2 self.participant.vars["priceChangeDict_2"]['Stock37_p3_2']=self.Stock37_p3_2 self.participant.vars["priceChangeDict_2"]['Stock37_p4_2']=self.Stock37_p4_2 self.participant.vars["priceChangeDict_2"]['Stock37_p5_2']=self.Stock37_p5_2 self.participant.vars["priceChangeDict_2"]['Stock37_p6_2']=self.Stock37_p6_2 self.participant.vars["priceChangeDict_2"]['Stock37_p7_2']=self.Stock37_p7_2 self.participant.vars["priceChangeDict_2"]['Stock37_p8_2']=self.Stock37_p8_2 self.participant.vars["priceChangeDict_2"]['Stock37_p9_2']=self.Stock37_p9_2 self.participant.vars["priceChangeDict_2"]['Stock37_p10_2']=self.Stock37_p10_2 self.participant.vars["priceChangeDict_2"]['Stock38_p1_2']=self.Stock38_p1_2 self.participant.vars["priceChangeDict_2"]['Stock38_p2_2']=self.Stock38_p2_2 self.participant.vars["priceChangeDict_2"]['Stock38_p3_2']=self.Stock38_p3_2 self.participant.vars["priceChangeDict_2"]['Stock38_p4_2']=self.Stock38_p4_2 self.participant.vars["priceChangeDict_2"]['Stock38_p5_2']=self.Stock38_p5_2 self.participant.vars["priceChangeDict_2"]['Stock38_p6_2']=self.Stock38_p6_2 self.participant.vars["priceChangeDict_2"]['Stock38_p7_2']=self.Stock38_p7_2 self.participant.vars["priceChangeDict_2"]['Stock38_p8_2']=self.Stock38_p8_2 self.participant.vars["priceChangeDict_2"]['Stock38_p9_2']=self.Stock38_p9_2 self.participant.vars["priceChangeDict_2"]['Stock38_p10_2']=self.Stock38_p10_2 self.participant.vars["priceChangeDict_2"]['Stock39_p1_2']=self.Stock39_p1_2 self.participant.vars["priceChangeDict_2"]['Stock39_p2_2']=self.Stock39_p2_2 self.participant.vars["priceChangeDict_2"]['Stock39_p3_2']=self.Stock39_p3_2 self.participant.vars["priceChangeDict_2"]['Stock39_p4_2']=self.Stock39_p4_2 self.participant.vars["priceChangeDict_2"]['Stock39_p5_2']=self.Stock39_p5_2 self.participant.vars["priceChangeDict_2"]['Stock39_p6_2']=self.Stock39_p6_2 self.participant.vars["priceChangeDict_2"]['Stock39_p7_2']=self.Stock39_p7_2 self.participant.vars["priceChangeDict_2"]['Stock39_p8_2']=self.Stock39_p8_2 self.participant.vars["priceChangeDict_2"]['Stock39_p9_2']=self.Stock39_p9_2 self.participant.vars["priceChangeDict_2"]['Stock39_p10_2']=self.Stock39_p10_2 self.participant.vars["priceChangeDict_2"]['Stock40_p1_2']=self.Stock40_p1_2 self.participant.vars["priceChangeDict_2"]['Stock40_p2_2']=self.Stock40_p2_2 self.participant.vars["priceChangeDict_2"]['Stock40_p3_2']=self.Stock40_p3_2 self.participant.vars["priceChangeDict_2"]['Stock40_p4_2']=self.Stock40_p4_2 self.participant.vars["priceChangeDict_2"]['Stock40_p5_2']=self.Stock40_p5_2 self.participant.vars["priceChangeDict_2"]['Stock40_p6_2']=self.Stock40_p6_2 self.participant.vars["priceChangeDict_2"]['Stock40_p7_2']=self.Stock40_p7_2 self.participant.vars["priceChangeDict_2"]['Stock40_p8_2']=self.Stock40_p8_2 self.participant.vars["priceChangeDict_2"]['Stock40_p9_2']=self.Stock40_p9_2 self.participant.vars["priceChangeDict_2"]['Stock40_p10_2']=self.Stock40_p10_2 self.participant.vars["priceChangeDict_2"]['Stock41_p1_2']=self.Stock41_p1_2 self.participant.vars["priceChangeDict_2"]['Stock41_p2_2']=self.Stock41_p2_2 self.participant.vars["priceChangeDict_2"]['Stock41_p3_2']=self.Stock41_p3_2 self.participant.vars["priceChangeDict_2"]['Stock41_p4_2']=self.Stock41_p4_2 self.participant.vars["priceChangeDict_2"]['Stock41_p5_2']=self.Stock41_p5_2 self.participant.vars["priceChangeDict_2"]['Stock41_p6_2']=self.Stock41_p6_2 self.participant.vars["priceChangeDict_2"]['Stock41_p7_2']=self.Stock41_p7_2 self.participant.vars["priceChangeDict_2"]['Stock41_p8_2']=self.Stock41_p8_2 self.participant.vars["priceChangeDict_2"]['Stock41_p9_2']=self.Stock41_p9_2 self.participant.vars["priceChangeDict_2"]['Stock41_p10_2']=self.Stock41_p10_2 self.participant.vars["priceChangeDict_2"]['Stock42_p1_2']=self.Stock42_p1_2 self.participant.vars["priceChangeDict_2"]['Stock42_p2_2']=self.Stock42_p2_2 self.participant.vars["priceChangeDict_2"]['Stock42_p3_2']=self.Stock42_p3_2 self.participant.vars["priceChangeDict_2"]['Stock42_p4_2']=self.Stock42_p4_2 self.participant.vars["priceChangeDict_2"]['Stock42_p5_2']=self.Stock42_p5_2 self.participant.vars["priceChangeDict_2"]['Stock42_p6_2']=self.Stock42_p6_2 self.participant.vars["priceChangeDict_2"]['Stock42_p7_2']=self.Stock42_p7_2 self.participant.vars["priceChangeDict_2"]['Stock42_p8_2']=self.Stock42_p8_2 self.participant.vars["priceChangeDict_2"]['Stock42_p9_2']=self.Stock42_p9_2 self.participant.vars["priceChangeDict_2"]['Stock42_p10_2']=self.Stock42_p10_2 self.participant.vars["priceChangeDict_2"]['Stock43_p1_2']=self.Stock43_p1_2 self.participant.vars["priceChangeDict_2"]['Stock43_p2_2']=self.Stock43_p2_2 self.participant.vars["priceChangeDict_2"]['Stock43_p3_2']=self.Stock43_p3_2 self.participant.vars["priceChangeDict_2"]['Stock43_p4_2']=self.Stock43_p4_2 self.participant.vars["priceChangeDict_2"]['Stock43_p5_2']=self.Stock43_p5_2 self.participant.vars["priceChangeDict_2"]['Stock43_p6_2']=self.Stock43_p6_2 self.participant.vars["priceChangeDict_2"]['Stock43_p7_2']=self.Stock43_p7_2 self.participant.vars["priceChangeDict_2"]['Stock43_p8_2']=self.Stock43_p8_2 self.participant.vars["priceChangeDict_2"]['Stock43_p9_2']=self.Stock43_p9_2 self.participant.vars["priceChangeDict_2"]['Stock43_p10_2']=self.Stock43_p10_2 self.participant.vars["priceChangeDict_2"]['Stock44_p1_2']=self.Stock44_p1_2 self.participant.vars["priceChangeDict_2"]['Stock44_p2_2']=self.Stock44_p2_2 self.participant.vars["priceChangeDict_2"]['Stock44_p3_2']=self.Stock44_p3_2 self.participant.vars["priceChangeDict_2"]['Stock44_p4_2']=self.Stock44_p4_2 self.participant.vars["priceChangeDict_2"]['Stock44_p5_2']=self.Stock44_p5_2 self.participant.vars["priceChangeDict_2"]['Stock44_p6_2']=self.Stock44_p6_2 self.participant.vars["priceChangeDict_2"]['Stock44_p7_2']=self.Stock44_p7_2 self.participant.vars["priceChangeDict_2"]['Stock44_p8_2']=self.Stock44_p8_2 self.participant.vars["priceChangeDict_2"]['Stock44_p9_2']=self.Stock44_p9_2 self.participant.vars["priceChangeDict_2"]['Stock44_p10_2']=self.Stock44_p10_2 #get price changes per row # TRIAL 1 def showPriceChangeForStockName_T1(self, stockName, period): priceChangeForStockName = 0 if period == 1: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p4_1',0) elif period == 2: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p5_1',0) elif period == 3: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p6_1',0) elif period == 4: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p7_1',0) elif period == 5: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p8_1',0) elif period == 6: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p9_1',0) elif period == 7: priceChangeForStockName = self.participant.vars["priceChangeDict"].get(stockName + '_p10_1',0) return priceChangeForStockName # TRIAL 2 def showPriceChangeForStockName_T2(self, stockName, period): priceChangeForStockName = 0 if period == 1: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p4_2',0) elif period == 2: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p5_2',0) elif period == 3: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p6_2',0) elif period == 4: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p7_2',0) elif period == 5: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p8_2',0) elif period == 6: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p9_2',0) elif period == 7: priceChangeForStockName = self.participant.vars["priceChangeDict_2"].get(stockName + '_p10_2',0) return priceChangeForStockName def getBuyingPeriod(self, stockName): buyingPeriod = 0 if stockName == 'Stock1': buyingPeriod = 0 if stockName == 'Stock2': buyingPeriod = 0 if stockName == 'Stock3': buyingPeriod = 0 if stockName == 'Stock4': buyingPeriod = 0 if stockName == 'Stock5': buyingPeriod = 0 if stockName == 'Stock6': buyingPeriod = 0 if stockName == 'Stock7': buyingPeriod = 0 if stockName == 'Stock8': buyingPeriod = 0 if stockName == 'Stock9': buyingPeriod = 0 if stockName == 'Stock10': buyingPeriod = 0 if stockName == 'Stock11': buyingPeriod = 0 if stockName == 'Stock12': buyingPeriod = 0 if stockName == 'Stock13': buyingPeriod = 0 if stockName == 'Stock14': buyingPeriod = 0 if stockName == 'Stock15': buyingPeriod = 0 if stockName == 'Stock16': buyingPeriod = 0 if stockName == 'Stock17': buyingPeriod = 0 if stockName == 'Stock18': buyingPeriod = 0 if stockName == 'Stock19': buyingPeriod = 0 if stockName == 'Stock20': buyingPeriod = 0 if stockName == 'Stock21': buyingPeriod = 1 if stockName == 'Stock22': buyingPeriod = 1 if stockName == 'Stock23': buyingPeriod = 1 if stockName == 'Stock24': buyingPeriod = 1 if stockName == 'Stock25': buyingPeriod = 2 if stockName == 'Stock26': buyingPeriod = 2 if stockName == 'Stock27': buyingPeriod = 2 if stockName == 'Stock28': buyingPeriod = 2 if stockName == 'Stock29': buyingPeriod = 3 if stockName == 'Stock30': buyingPeriod = 3 if stockName == 'Stock31': buyingPeriod = 3 if stockName == 'Stock32': buyingPeriod = 3 if stockName == 'Stock33': buyingPeriod = 4 if stockName == 'Stock34': buyingPeriod = 4 if stockName == 'Stock35': buyingPeriod = 4 if stockName == 'Stock36': buyingPeriod = 4 if stockName == 'Stock37': buyingPeriod = 5 if stockName == 'Stock38': buyingPeriod = 5 if stockName == 'Stock39': buyingPeriod = 5 if stockName == 'Stock40': buyingPeriod = 5 if stockName == 'Stock41': buyingPeriod = 6 if stockName == 'Stock42': buyingPeriod = 6 if stockName == 'Stock43': buyingPeriod = 6 if stockName == 'Stock44': buyingPeriod = 6 return buyingPeriod def sumPriceChangesInPeriod_T1(self, stockName, period): p = period sumPriceChange = 0 buyingPeriod = self.getBuyingPeriod(stockName) while (p - buyingPeriod) > 0: sumPriceChange = sumPriceChange + self.showPriceChangeForStockName_T1(stockName, p) p = p - 1 return sumPriceChange def sumPriceChangesInPeriod_T2(self, stockName, period): p = period sumPriceChange = 0 buyingPeriod = self.getBuyingPeriod(stockName) while (p - buyingPeriod) > 0: sumPriceChange = sumPriceChange + self.showPriceChangeForStockName_T2(stockName, p) p = p - 1 return sumPriceChange #selling price of stock def sellingPrice_T1(self, stockName, period): p = period sellingPrice = 30 + self.sumPriceChangesInPeriod_T1(stockName, p) return sellingPrice def sellingPrice_T2(self, stockName, period): p = period sellingPrice = 30 + self.sumPriceChangesInPeriod_T2(stockName, p) return sellingPrice #cash position def currentCash_choice(self, period): p = period cashPosition_choice = 0 if p == 1: cashPosition_choice = Constants.endowment - (5 * Constants.stockPrice) if p == 2: cashPosition_choice = Constants.endowment - (6 * Constants.stockPrice) + self.sellingPriceSold1 if p == 3: cashPosition_choice = Constants.endowment - (7 * Constants.stockPrice) + self.sellingPriceSold1 + self.sellingPriceSold2 if p == 4: cashPosition_choice = Constants.endowment - (8 * Constants.stockPrice) + self.sellingPriceSold1 + self.sellingPriceSold2 + self.sellingPriceSold3 if p == 5: cashPosition_choice = Constants.endowment - (9 * Constants.stockPrice) + self.sellingPriceSold1 + self.sellingPriceSold2 + self.sellingPriceSold3 + self.sellingPriceSold4 if p == 6: cashPosition_choice = Constants.endowment - (10 * Constants.stockPrice) + self.sellingPriceSold1 + self.sellingPriceSold2 + self.sellingPriceSold3 + self.sellingPriceSold4 + self.sellingPriceSold5 if p == 7: cashPosition_choice = Constants.endowment - (11 * Constants.stockPrice) + self.sellingPriceSold1 + self.sellingPriceSold2 + self.sellingPriceSold3 + self.sellingPriceSold4 + self.sellingPriceSold5 + self.sellingPriceSold6 + self.sellingPriceSold7 + self.sellingPriceSold8 + self.sellingPriceSold9 + self.sellingPriceSold10 + self.sellingPriceSold11 return cashPosition_choice # create list with all sold stocks def soldList(self): self.participant.vars['soldList'] = [] self.participant.vars['soldList'].append(self.stockSold1) self.participant.vars['soldList'].append(self.stockSold2) self.participant.vars['soldList'].append(self.stockSold3) self.participant.vars['soldList'].append(self.stockSold4) self.participant.vars['soldList'].append(self.stockSold5) self.participant.vars['soldList'].append(self.stockSold6) self.participant.vars['soldList'].append(self.stockSold7) self.participant.vars['soldList'].append(self.stockSold8) self.participant.vars['soldList'].append(self.stockSold9) self.participant.vars['soldList'].append(self.stockSold10) self.participant.vars['soldList'].append(self.stockSold11) # get stock type for stock name def getStockType(self, name): if name == 'Stock1': stockType = self.Stock_type1 if name == 'Stock2': stockType = self.Stock_type2 if name == 'Stock3': stockType = self.Stock_type3 if name == 'Stock4': stockType = self.Stock_type4 if name == 'Stock5': stockType = self.Stock_type5 if name == 'Stock6': stockType = self.Stock_type6 if name == 'Stock7': stockType = self.Stock_type7 if name == 'Stock8': stockType = self.Stock_type8 if name == 'Stock9': stockType = self.Stock_type9 if name == 'Stock10': stockType = self.Stock_type10 if name == 'Stock11': stockType = self.Stock_type11 if name == 'Stock12': stockType = self.Stock_type12 if name == 'Stock13': stockType = self.Stock_type13 if name == 'Stock14': stockType = self.Stock_type14 if name == 'Stock15': stockType = self.Stock_type15 if name == 'Stock16': stockType = self.Stock_type16 if name == 'Stock17': stockType = self.Stock_type17 if name == 'Stock18': stockType = self.Stock_type18 if name == 'Stock19': stockType = self.Stock_type19 if name == 'Stock20': stockType = self.Stock_type20 if name == 'Stock21': stockType = self.Stock_type21 if name == 'Stock22': stockType = self.Stock_type22 if name == 'Stock23': stockType = self.Stock_type23 if name == 'Stock24': stockType = self.Stock_type24 if name == 'Stock25': stockType = self.Stock_type25 if name == 'Stock26': stockType = self.Stock_type26 if name == 'Stock27': stockType = self.Stock_type27 if name == 'Stock28': stockType = self.Stock_type28 if name == 'Stock29': stockType = self.Stock_type29 if name == 'Stock30': stockType = self.Stock_type30 if name == 'Stock31': stockType = self.Stock_type31 if name == 'Stock32': stockType = self.Stock_type32 if name == 'Stock33': stockType = self.Stock_type33 if name == 'Stock34': stockType = self.Stock_type34 if name == 'Stock35': stockType = self.Stock_type35 if name == 'Stock36': stockType = self.Stock_type36 if name == 'Stock37': stockType = self.Stock_type37 if name == 'Stock38': stockType = self.Stock_type38 if name == 'Stock39': stockType = self.Stock_type39 if name == 'Stock40': stockType = self.Stock_type40 if name == 'Stock41': stockType = self.Stock_type41 if name == 'Stock42': stockType = self.Stock_type42 if name == 'Stock43': stockType = self.Stock_type43 if name == 'Stock44': stockType = self.Stock_type44 return stockType