treatment "@1.ztt"{
	background{
		table globals{
		}
		table subjects{
		}
		table summary{
		}
		table contracts{
		}
		table session{
		}
		table logfile{
		}
		numsubjects = 12;
		numgroups = 2;
		numpracticeperiods = 0;
		numactualperiods = 1;
		exchangerate = 0.005;
		startendowment = 0;
		showupfee = 0;
		noAutoscope = FALSE;
		firstBoxesOnTop = FALSE;
		showupfeeawaytext = "Sie haben Verlust gemacht. Wollen Sie das Startgeld einsetzen, um diesen Verlust zu decken?";
		showupfeeawayyestext = "Ja";
		showupfeeawaynotext = "Nein";
		moneyawaytext = "Sie haben Verlust gemacht. Wollen Sie weiterfahren?";
		moneyawayyestext = "Ja";
		moneyawaynotext = "Nein";
		bancruptwaittext = "Bitte warten Sie bis Ihr Computer wieder freigegeben wird.";
		program{
			table = session;
			do{
				// this variable tells us wich task is chosen for payment
				Task = -1;
			}
		}
		program{
			table = globals;
			do{
				TimeAuction = 15;
				InitialNumberOfStocks = 4;
				InitialMoney = 720; //twice the fundamental value of one asset
				time = 0;
				start=0;
				latestPrice =0;
				expectedDividends = 15;
				payedDividends = 0;
				numTrades = 0;
				TimeRound = TimeAuction/expectedDividends;
				r = 0; //random number
				r2=0;
				previousDividend = 0;
				
				tradingPeriod = 1;
				bestBuyPrice = 0;
				bestSellPrice = 10000;
				
				//VARIABLES NEEDED FOR CONTRACT-MATCHING
				B=0; //Player offering best Buy
				S=0; //Player offering best Sell
				QuantitiyToBeTraded = 0;
				sold = 0; //Boolean: The contract from Seller has been deactivated
				bought = 0;
			}
		}
		program{
			table = subjects;
			do{
				Risk1 = 0;
				Risk2 = 0;
				Risk3 = 0;
				Risk4 = 0;
				Risk5 = 0;
				Risk6 = 0;
				Risk7 = 0;
				Risk8 = 0;
				Risk9 = 0;
				Risk10 = 0;
				
				LossAversion1 = 0;
				LossAversion2 = 0;
				LossAversion3 = 0;
				LossAversion4 = 0;
				LossAversion5 = 0;
				LossAversion6 = 0;
				
				ExpectedPercentil = -1;
				
				profitRisk =0;
				profitLossAversion = 0;
			}
		}
		program{
			table = contracts;
			do{
				Seller = -1;
				Buyer = -1; 
				Group = -1;
				p = 0;
				traded =0;
				active = 0;
				volume = 0;
				fromTradingPeriod =0;
				start = -1; // time at which the offer was made public
				end = -1; // time at which the offer was accepted
				sell=0; //not important, only needed for the graph
				actualVolume=0; // actual number of assets that were transfered during the trade
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Text"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Bitte warten Sie, bis das Experiment weitergeht.";
				}
			}
		}
	}
	stage "Introduction"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql Vielen Dank fr Ihre Teilnahme am Experiement. Insgesamt dauert dieses Experiement ungefhr 65 Minuten. Teil 1 wird ungefhr 15 Minuten dauern, Teil 2 wird ungefhr 50 Minuten dauern.\r\n\\par\\par\r\nSie werden verschiedene Aufgaben whrend des Experiments lsen. Von allen Aufgaben wird genau eine ausgezahlt. Der Computer entscheidet am Ende des Experimentes zufllig, welche der Aufgaben ausgezahlt wird.\r\n\\par\\par\r\nWhrend des gesamten Experiementes wird Geld in der Whrung \"ECU\" angezeigt. 200 ECU entsprechen dabei 1 Euro. Am Ende des Experimentes wird Ihr ECU-Guthaben umgerechnet in Euro an Sie ausgezahlt.\r\n\\par\\par\r\nWir beginnen nun mit Teil 1.\r\n\\par\r\nTeil 1 besteht aus 3 krzeren Aufgaben, in denen Sie Fragen beantworten oder Entscheidungen treffen mssen. Klicken Sie auf \"Weiter\", um Teil 1 zu starten.}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "RiskElicitation 1: Instructions"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql In diesem Teilexperiment mssen Sie 10 Entscheidungen treffen.\r\n\\par\\par\r\nSie werden 10-mal zwischen Lotterie A und Lotterie B whlen.\r\n\\par\r\n\\par Fr den Fall, dass der Computer diese Aufgabe zur Auszahlung auswhlt, wird genau eine der 10 Lotterien ausgezahlt. Welche Lotterie dies ist, entscheidet der Computer dann erneut zufllig.\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "RiskElicitation 2: Choices"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 90;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			helpbox "Help"{
				hasframe = TRUE;
				top = 0%;
				bottom = 85%;
				cuttop = TRUE;
				label = " Hilfe ";
				help = "{\\rtf\\fs24\\ql Whlen Sie in jeder Zeile zwischen Lotterie A und Lotterie B.

				\\par Bendenken Sie bei Ihrer Wahl, dass eine der 10 Entscheidungen fr Sie mglicherweise realisiert wird.

				\\par

				\\par Klicken Sie anschlieend auf den \"Weiter\"- Knopf am rechten unteren Bildschirmrand.}";
			}
			gridbox "Risk Elicitation"{
				hasframe = TRUE;
				top = 5%;
				bottom = 20%;
				cuttop = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				numrows = 11;
				numcolumns = 3;
				firstcolumnwidth = 100;
				firstrowheight = 100;
				fieldsinrows = FALSE;
				infieldlabeisallowed = FALSE;
				firstrowislabel = FALSE;
				firstcolumnislabel = FALSE;
				labelseparators = FALSE;
				rowseparators = TRUE;
				columnseparators = TRUE;
				item{
					label = "{\\rtf\\fs24\\ql Lotterie A}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 1 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 9 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 2 von 10 Fllen erhalten Sie 1880 ECU\r\n\\par & In 8 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 3 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 7 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 4 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 6 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 5 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 6 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 4 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 7 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 3 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 8 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 2 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 9 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 1 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 10 von 10 Fllen erhalten Sie 1800 ECU\r\n\\par & In 0 von 10 Fllen 1440 ECU.}";
				}
				item{
					label = "{\\rtf\\fs24\\ql Lotterie B}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 1 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 9 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 2 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 8 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 3 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 7 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 4 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 6 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 5 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 6 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 4 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 7 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 3 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 8 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 2 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 9 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 1 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 10 von 10 Fllen erhalten Sie 3465 ECU\r\n\\par & In 0 von 10 Fllen 90 ECU.}";
				}
				item{
					label = "{\\rtf\\fs24\\ql Ihre Wahl}";
				}
				item{
					variable = Risk1;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk2;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk3;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk4;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk5;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk6;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk7;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk8;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk9;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = Risk10;
					format = "!radioline: 0= \"Lotterie A\"; 1= \"Lotterie B\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 50%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "LossAversion 1: Instructions"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql In diesem Teilexperiment mssen Sie 6 Entscheidungen treffen.\r\n\\par\\par\r\nSie entscheiden 6-mal ob Sie eine Lotterie annehmen oder ablehnen.\r\n\\par\\par\r\nFr den Fall, dass der Computer diese Aufgabe zur Auszahlung auswhlt bekommen Sie zunchst 2000 ECU gutgeschrieben. Zustzlich wird genau eine der Lotterien zufllig ausgewhlt. Wird eine Lotterie ausgewhlt und Sie haben diese abgelehnt, erhalten Sie die zunchst gutgeschriebenen 2000 ECU und das Ergebnis der Lotterie hat keinen Einfluss auf Ihre Auszahlung. Haben Sie angegeben die Lotterie anzunehmen, wird das Ergebnis von den 2000 ECU abgezogen bzw. hinzuaddiert.\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "LossAversion 2: Choices"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 90;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			helpbox "Help"{
				hasframe = TRUE;
				top = 0%;
				bottom = 85%;
				cuttop = TRUE;
				label = " Hilfe ";
				help = "{\\rtf\\fs24\\ql Whlen Sie in jeder Zeile, ob Sie die Lotterie annehmen oder ablehnen.

				\\par Bendenken Sie bei Ihrer Wahl, dass eine der Entscheidungen fr Ihre Auszahlung relevant sein kann.

				\\par

				\\par Klicken Sie anschlieend auf den \"Weiter\"- Knopf am rechten unteren Bildschirmrand.}";
			}
			gridbox "Risk Elicitation"{
				hasframe = TRUE;
				top = 5%;
				bottom = 20%;
				cuttop = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				numrows = 7;
				numcolumns = 2;
				firstcolumnwidth = 100;
				firstrowheight = 100;
				fieldsinrows = FALSE;
				infieldlabeisallowed = FALSE;
				firstrowislabel = FALSE;
				firstcolumnislabel = FALSE;
				labelseparators = FALSE;
				rowseparators = TRUE;
				columnseparators = TRUE;
				item{
					label = "{\\rtf\\fs24\\ql Lotterie}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 570 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 855 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 1140 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 1425 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 1710 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs20\\ql In 5 von 10 Fllen verlieren Sie 1995 ECU\r\n\\par & In 5 von 10 Fllen erhalten Sie 1710 ECU.}";
				}
				item{
					label = "{\\rtf\\fs24\\ql Ihre Entscheidung}";
				}
				item{
					variable = LossAversion1;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = LossAversion2;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = LossAversion3;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = LossAversion4;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = LossAversion5;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
					variable = LossAversion6;
					format = "!radioline: 0= \"Ablehnen\"; 1= \"Annehmen\"; 2;";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 50%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Overconfidence 1: Instructions"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql In wenigen Minuten werden Sie zusammen mit anderen Versuchspersonen einen Aktienmarkt nachbilden.\r\n\\par\\par\r\nEs wird Dividenden geben, die regelmig pro Aktie gezahlt werden. Sie knnen Aktien kaufen und verkaufen und verfgen dabei ber ein Guthaben, welches Sie nach dem Experiment ausgezahlt bekommen. (Genaueres zum Aktienmarkt erfahren Sie in wenigen Minuten.)\r\n\\par\\par\r\nWir bitten Sie in der folgenden Frage abzuschtzen, wie hoch Ihr Guthaben am Ende des Aktienhandels im Vergleich zu den Guthaben anderer Versuchspersonen sein wird. Mit anderen Worten: Wie gut erwarten Sie (verglichen mit anderen Versuchspersonen) in einem Aktienmarkt abzuschneiden?\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Overconfidence 2: Choice"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql Wie gut erwarten Sie (verglichen mit anderen Versuchspersonen) in einem Aktienmarkt abzuschneiden?\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
					variable = ExpectedPercentil;
					format = "!slider: 0=\"Schlechtester\";100=\"Bester\";101;";
					input = TRUE;
					showdefault = TRUE;
					emptyallowed = FALSE;
					min = 0;
					max = 100;
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Introduction Wordle 1"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql Wie gesagt werden Sie gleich mit Versuchspersonen einen Aktienmarkt nachbilden. Mglicherweise wird einer der 6 menschlichen Spieler am Markt durch ein Computerprogramm ersetzt. Dieser Computerhndler hat whrend des Experiementes dieselben Mglichkeiten wie ein Mensch. Er startet mit demselben Anfangsguthaben und Menge an Aktien. Falls ein menschlicher Hndler durch einen Computerhndler im Experiment ersetzt wird, so bekommt der ersetzte Mensch am Ende des Experiments den Betrag, den der Computerhndler erzielt hat, ausgezahlt.\r\n\\par\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Introduction Wordle 2"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql Insgesamt gibt es in diesem Experiment 3 Gruppen. Gruppe 1 und 2 werden in einem Markt ohne Computerhndler handeln. Gruppe 3 handelt in einem Markt mit Computerhndler. Sie werden zufllig einer der Gruppen zugeteilt. Landen Sie in Gruppe 1, wird Ihnen dies gesagt. Versuchspersonen in Gruppe 2 und 3 erfahren nur, dass Sie in Gruppe 2 oder 3 sind, aber nicht, in welcher von beiden. Wenn Sie nicht in Gruppe 1 sind besteht also eine 50% Chance, dass Sie in einem Markt mit einem Computerhndler handeln werden. Die Gruppenzuteilung gilt fr beide Runden des Marktexperimentes.\r\n\\par\r\n\\par\r\nIn einem Vorlufer zu diesem Experiment mit gleichem Aktienmarkt, aber ohne Computerhndler, wurden Versuchspersonen gefragt, wie sie erwarten wrden, dass ein Computerhndler in dem Marktexperiment handelt. Unten finden Sie eine grafische Zusammenfassung der Antworten von Versuchspersonen.\r\n\\par\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Wordle"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 150;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			headerbox "Header"{
				hasframe = TRUE;
				height = 10%;
				top = 0p;
				cuttop = TRUE;
				showPeriods = TRUE;
				showNumPeriods = TRUE;
				periodtext = "Periode";
				periodoftext = "von";
				practiceperiodprefix = "Probe ";
				showtime = TRUE;
				timestr = "Verbleibende Zeit [sec]:";
				pleasedecidetext = "Bitte entscheiden Sie sich jetzt!";
			}
			helpbox "Help"{
				hasframe = TRUE;
				height = 25 %;
				bottom = 0p;
				cutbottom = TRUE;
				label = " Hilfe ";
				help = "- Je grer die Buchstaben eines Wortes, desto hufiger kommt das entsprechende Wort in den Antworten der Versuchspersonen vor. 

				

				- Grne Wrter sind Wrter, die das Verhalten eines Computerhndlers positiv beschreiben (ein Computer \"rechnet\" und ist \"strikt\"). 

				

				- Rote Wrter sind Wrter, die beschreiben wie, ein Computerhndler aus Sicht der Versuchspersonen nicht ist (ein Computer ist nicht wie ein \"Mensch\" und geht kein \"Risiko\" ein) ";
			}
			multimediabox "Wordle"{
				hasframe = TRUE;
				URL = /home/ewfuser/media4ztree/wordleColored.jpg;
				dorepeat = FALSE;
				maintainaspectratio = TRUE;
				enlargetofit = TRUE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "Payoff"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 30;
		program{
			table = subjects;
			do{
				//claculate payoff for Risk-task
				\r = random();
				\r2 = random();
				if (\r<0.1) {profitRisk = if(Risk1==0, if(r2<0.1,1880,1440), if(r2<0.1,3465,90)) ;}
				elsif (\r<0.2&r>=0.1) {profitRisk = if(Risk2==0, if(r2<0.2,1800,1440), if(r2<0.2,3465,90)) ;}
				elsif (\r<0.3&r>=0.2) {profitRisk = if(Risk3==0, if(r2<0.3,1800,1440), if(r2<0.3,3465,90)) ;}
				elsif (\r<0.4&r>=0.3) {profitRisk = if(Risk4==0, if(r2<0.4,1800,1440), if(r2<0.4,3465,90)) ;}
				elsif (\r<0.5&r>=0.4) {profitRisk = if(Risk5==0, if(r2<0.5,1800,1440), if(r2<0.5,3465,90)) ;}
				elsif (\r<0.6&r>=0.5) {profitRisk = if(Risk6==0, if(r2<0.6,1800,1440), if(r2<0.6,3465,90)) ;}
				elsif (\r<0.7&r>=0.6) {profitRisk = if(Risk7==0, if(r2<0.7,1800,1440), if(r2<0.7,3465,90)) ;}
				elsif (\r<0.8&r>=0.7) {profitRisk = if(Risk8==0, if(r2<0.8,1800,1440), if(r2<0.8,3465,90)) ;}
				elsif (\r<0.9&r>=0.8) {profitRisk = if(Risk9==0, if(r2<0.9,1800,1440), if(r2<0.9,3465,90)) ;}
				elsif (r>=0.9) {profitRisk = if(Risk10==0, if(r2<=1.0,1800,1440), if(r2<1.0,3465,90)) ;}
				
				
				//claculate payoff for Lossaversion
				\r = random();
				\r2 = random();
				if (\r<(1/6)) {profitLossAversion = 2000+ if(LossAversion1==0, 0, if(r2<0.5,-570,1710)) ;}
				elsif (\r<(2/6)&r>=(1/6)) {profitLossAversion = 2000+ if(LossAversion2==0, 0, if(r2<0.5,-855,1710)) ;}
				elsif (\r<(3/6)&r>=(2/6)) {profitLossAversion = 2000+ if(LossAversion3==0, 0, if(r2<0.5,-1140,1710)) ;}
				elsif (\r<(4/6)&r>=(3/6)) {profitLossAversion = 2000+ if(LossAversion4==0, 0, if(r2<0.5,-1425,1710)) ;}
				elsif (\r<(5/6)&r>=(4/6)) {profitLossAversion = 2000+ if(LossAversion5==0, 0, if(r2<0.5,-1710,1710)) ;}
				elsif (r>=(5/6)) {profitLossAversion = 2000+ if(LossAversion6==0, 0, if(r2<0.5,-1995,1710)) ;}
				
			}
		}
		program{
			table = session;
			do{
				//randomly one task is chosen for payment
				// 1=Riskaversion
				// 2=Lossaversion
				// 3=one of the two marketsimulations
				\r=random();
				if (\r< (1/3)) { Task =1; }
				elsif (\r< (2/3) & \r>=(1/3)) {Task =2; }
				else {Task =3; }
			}
		}
		program{
			table = subjects;
			do{
				if(session.find(same(Subject), Task) == 1) {Profit=profitRisk;}
				if(session.find(same(Subject), Task) == 2) {Profit=profitLossAversion;}
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				left = 10%;
				right = 10%;
				top = 20%;
				bottom = 40%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf\\fs24\\ql Teil 1 des Experimentes ist nun beendet.\r\n\\par\r\n\\par\r\nGleich startet der Experimentator ein Video. Das Video erklrt, wie der 2. Teil des Experiments abluft. Die Lautstrke des Videos knnen Sie ber das Rdchen der Maus anpassen. Passen Sie gut auf, da auch der 2. Teil zur Auszahlung ausgewhlt werden kann. \r\n\\par\r\nSie werden am Ende des Experiments darber informiert, welche Aufgabe zufllig zur Auszahlung ausgewhlt wurde.\r\n\\par\r\n\\par\r\nBitte setzen Sie nun die Kopfhrer auf und halten Sie die Tabelle bereit, die wir auf Ihren Platz gelegt haben.\r\n\\par\r\n\\par\r\nKlicken Sie auf \"Weiter\" um fortzufahren.\r\n}";
				}
			}
			standardbox "Buttonbox"{
				hasframe = FALSE;
				top = 90%;
				bottom = 0%;
				cutbottom = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "Weiter"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = TRUE;
					donotterminatestage = FALSE;
					specialbuttoncolor = TRUE;
					buttoncolor = 5921535;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Text"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Bitte warten Sie bis das Video beginnt.";
				}
			}
		}
	}
	roles{
		role "S 1"{
		}
		role "S 2"{
		}
		role "S 3"{
		}
		role "S 4"{
		}
		role "S 5"{
		}
		role "S 6"{
		}
		role "S 7"{
		}
		role "S 8"{
		}
		role "S 9"{
		}
		role "S 10"{
		}
		role "S 11"{
		}
		role "S 12"{
		}
	}
	period "1"{
		subject 1{
			group = 1;
		}
		subject 2{
			group = 1;
		}
		subject 3{
			group = 1;
		}
		subject 4{
			group = 1;
		}
		subject 5{
			group = 1;
		}
		subject 6{
			group = 1;
		}
		subject 7{
			group = 2;
		}
		subject 8{
			group = 2;
		}
		subject 9{
			group = 2;
		}
		subject 10{
			group = 2;
		}
		subject 11{
			group = 2;
		}
		subject 12{
			group = 2;
		}
	}
}