JavaScript is required. Please enable it to continue.
Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
Sequence Splash Screen Start Page Aims and rules (start with $100?) Market Sectors Folio News1 Trade End of Day - Calculate 1/->Next Day Summary Table Main 2+ Trade Summary Table End of Day calculations Start with $10? Overall Wealth Information Phase - General news, trends, Market Information Transaction Phase - Buy/Sell, Bank, Impact Phase - calculate impact on OW, dividends Repeat 10 Days? Play individual , against 1-2? Computer players, against real people (password required) Is there a cap on overall wealth for multiple players? Types of Shares: - Mining (environment, shipping, industrial relations, skilled labour) - IT (competition, market trends, cyber-attacks, lack of materials) - Financial (Reserve Bank, Disasters, Global Markets) - Farming (natural disasters) - Energy (availability, climate change, competition, infrastructure)? - Health Retail Buy price includes brokerage fee of $1 per share. Dividends are paid per share at 30% of the share's sale price. Random events/disasters (Breaking News after Transaction Phase) News categories -economy, workforce, transport and logistics, politics,
Financial Bank stocks have been some of the worst performers during the COVID-19 pandemic. Financial stocks -- especially banks -- can be cyclical, meaning they’re vulnerable to losing value during recessions. When unemployment rises, consumers and businesses often struggle to pay their bills, which can lead to large amounts of bad debt for banks. Be aware of the risks before investing, and, when conducting your analysis, consider the overall outlook for a financial company, not just one or two metrics. Also remember that financial sector stocks are best suited as long-term investment vehicles. So many factors can influence financial stock prices in the near term, and many of those factors -- such as weak economic conditions or falling interest rates -- have little to do with the strength of the business itself. If you have an investment time horizon of five years or more, then adding some of the best financial sector stocks to your portfolio is likely a wise choice. Energy The energy sector is a challenging one for investors, especially oil and natural gas companies. Energy prices can change in a heartbeat. This volatility can have a massive impact on the sector, as well as on the global economy. We’ve seen this firsthand in recent years. Oil and natural gas prices plunged during the early days of the pandemic as demand dried up. However, they rebounded sharply in 2021 as consumption recovered. Because of the impact commodity price volatility can have on the energy sector, investors need to understand how to invest in energy stocks. That includes keeping downside risk in mind. This factor should emphasize not allocating too much of a portfolio to one energy stock or the industry as a whole. Further, investors should focus on oil and natural gas companies with the financial and operational strength to survive if industry conditions significantly deteriorate. Mining Demand for basic materials is cyclical, making the sector's participants highly affected by changes in the health of the economy. If economic conditions weaken, demand for basic materials tends to decline, which lowers their prices. The COVID-19 pandemic severely affected the basic materials sector. However, demand recovered in 2021 as the economy improved. While the sector has faced some new headwinds from supply chain issues, passage of major infrastructure legislation in 2021 should drive increased demand for basic materials in the coming years. Health Healthcare is highly regulated. Drugmakers and medical device makers can fail to secure the necessary regulatory approvals to market new products, and regulatory changes can drastically alter a healthcare stock’s growth prospects. Many healthcare stocks also face significant litigation risk. For example, biopharmaceutical companies, medical device makers, and healthcare providers can be sued if patients think the companies’ products and services have caused them harm. Many healthcare companies are also highly dependent on Medicare reimbursement levels. The Biden administration has called for changes to Medicare to allow the program to negotiate prices with drugmakers. If these changes are made, drugmakers’ revenues and profits could fall as Medicare pays less for some drugs. Property In a Great Recession type of event, prices can collapse and take down your entire portfolio. Costs a lot to enter Insurance and disasters Interest rates can rise Farming The agriculture industry harvests and provides agricultural commodities such as grains, livestock, sugar, soybeans, and more. Other companies in the industry produce fertilizers, packaged foods, and agricultural machinery. Effected primarily by climate changes, REAL NEWS Anything could still happen. But once you move borders unilaterally by force you truly enter the multiverse of madness. ‘Reality’ can be upended in places that you thought it couldn’t be." The pan-European STOXX 600 index lost 1.3 per cent, to 454.81, along with Germany’s DAX, which dropped just over 2 per cent, to 14,731, and Britain's FTSE slid 0.4 per cent, to 7,834. The escalating threat of armed conflict also affected commodity markets, with some analysts tipping oil prices will hit $US100 a barrel by tomorrow. Spot gold gained half a per cent, to $US1,908.20 an ounce. Iron ore was up $US5.50, or 4.1 per cent, to $US139.00 per tonne. said. "CGC says harvest at the new farm in China, full-year contributions from citrus farms, increased volumes of premium blueberry varieties and a rebound in grape volumes will be 'significant earnings growth drivers
Double-click this passage to edit it. Body Blue background White text Buttons -Gold? Headings - Gold Links - normal blue Mining - earthy red/white Health - pale blue/black Property - white/black Tech - silver/black Financial - white/black Agriculture - green/white Energy - yellow/black
<div class="header">Mining</div><span id="Main"> <img src="Mining.jpg" width= 40%><div class="right"><<button "Past Performance">><<replace "#Main">> <img src="MineGraph.png" width=70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Mining">><</button>><</replace>><</button>></div> The Mining sector covers exploration, extraction and transport of basic materials mined from the earth. Demand for basic materials is volatile and the sector closely follows ups and downs in the health of the economy and demand for raw materials. <<button "Close" `previous()`>><</button>></span>
<<set $Mnumshare to 0>><<set $Mbuy to 8>><<set $Msell = $Mbuy-1>><<set $Fnumshare to 0>><<set $Fbuy to 6>><<set $Fsell = $Fbuy-1>><<set $Finnumshare to 0>><<set $Finbuy to 6>><<set $Finsell = $Finbuy-1>><<set $ITnumshare to 0>><<set $ITbuy to 5>><<set $ITsell =$ITbuy-1>><<set $Enumshare to 0>><<set $Ebuy to 7>><<set $Esell = $Ebuy-1>><<set $Hnumshare to 0>><<set $Hbuy to 6>><<set $Hsell = $Hbuy-1>><<set $Mvalue= $Msell*$Mnumshare>><<set $Fvalue= $Fsell*$Fnumshare>><<set $Finvalue= $Finsell*$Finnumshare>><<set $ITvalue= $ITsell*$ITnumshare>><<set $Evalue= $Esell*$Enumshare>><<set $Hvalue= $Hsell*$Hnumshare>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<set $Day to 1>> <<set $Record to []>><div class="headermain">Day Trader</div> <img src="Mainpic.jpg" width=65%> <<button "Play">><<set $Bank to 50>><<set $TW = $Bank + $Totalvalue>><<set $Total1 to $TW>><<goto "Start1">><</button>>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Game Information</div> <span id ="Main">Welcome to <i>Day Trader</i> the game where you trade shares for a week to see if you can increase your Total Wealth. Your current Total Wealth is $$<<=$TW.toFixed(0)>> - all in cash. <<button "Next">><<replace "#Main">>As a Day Trader you operate in a fictional world called Sharetopia. The Sharetopian share market works much the same as in the real world except that dividends on shares are paid daily rather than annually and share prices fluctuate much more frequently. <<button "Next">><<goto "Next">><</button>><</replace>><</button>></span></div></div><div class="left"> <<button "Skip">><<goto "Share1">><</button>></div>
<<if $Bank < $Bank.toFixed(0)>><<set $Bank=$Bank+0.5>><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Trade Shares</span></div><table><tr><th>Mining <img src="miningsm.jpg"></th><th><<button "Buy $$$Mbuy">><<set $MineB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$Msell">><<set $MineS to true>><<goto "Sell">><</button>></th><th>Farming <img src="farmingsm.jpg"></th><th><<button "Buy $$$Fbuy">><<set $FarmB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$Fsell">><<set $FarmS to true>><<goto "Sell">><</button>></th></tr></table><table><tr><th>Finance <img src="financesm.jpg"></th><th><<button "Buy $$$Finbuy">><<set $FinB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$Finsell">><<set $FinS to true>><<goto "Sell">><</button>></th><th>Info Tech <img src="ITsm.jpg"></th><th><<button "Buy $$$ITbuy">><<set $ITB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$ITsell">><<set $ITS to true>><<goto "Sell">><</button>></th></tr></table><table><tr><th>Energy <img src="energysm.jpg"></th><th><<button "Buy $$$Ebuy">><<set $EnergyB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$Esell">><<set $EnergyS to true>><<goto "Sell">><</button>></th><th>Health <img src="healthsm.jpg"></th><th><<button "Buy $$$Hbuy">><<set $HealthB to true>><<goto "Buy">><</button>></th><th><<button "Sell $$$Hsell">><<set $HealthS to true>><<goto"Sell">><</button>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Closing Prices">><<if $Day==1>><<goto "ShareClose1">><</if>><<if $Day==2>><<goto "ShareClose2">><</if>><<if $Day==3>><<goto "ShareClose3">><</if>><<if $Day==4>><<goto "ShareClose4">><</if>><<if $Day==5>><<goto "ShareClose5">><</if>><<if $Day==6>><<goto "ShareClose6">><</if>><<if $Day==7>><<goto "ShareClose7">><</if>><</button>></div>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "Economic Activity Down">><<replace "#Main">>Sharetopia's Economic activity data is out and shows an overall drop of 30%. <<linkreplace "Close">><<goto "News1">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Breakthrough AI Technology">><<replace "#Main">>Scientists have announced the development of a revolutionary new surgical technique which utilises artificial intelligence to more accurately perform difficult surgical procedures. <<linkreplace "Close">><<goto "News1">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Drought!">><<replace "#Main">>Western Sharetopia is now officially in drought conditions after expected rain failed to arrive. <<linkreplace "Close">><<goto "News1">><</linkreplace>><</replace>><</linkreplace>></div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<div class="header">Farming</div><span id="Main"> <img src="Farming.jpg" width= 40%><div class="right"><<button "Past Performance">><<set $FInfo to $FInfo+1>><<replace "#Main">> <img src="FarmGraph.png" width= 70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Farming">><</button>><</replace>><</button>></div> The agriculture industry harvests and provides agricultural commodities such as grains, livestock, sugar, soybeans, and more. Other companies in the industry produce fertilizers, packaged foods, and agricultural machinery. Farming shares prices tend to be steady but can drop considerably after adverse climate conditions and sharp rises in energy and fuel costs. <<set $FInfo to $FInfo+1>> <<button "Close" `previous()`>><</button>></span>
<div class="header">Energy</div><span id="Main"> <img src="Energy.jpg" width= 40%><div class="right"><<button "Past Performance">><<replace "#Main">> <img src="EnergyGraph.png" width=70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Energy">><</button>><</replace>><</button>></div> The energy sector is a challenging one for investors, especially oil and natural gas companies. Energy prices (and share value) can change very quickly depending on supply. This volatility can have a massive impact on the sector, as well as on the global economy and other sectors. <<button "Close" `previous()`>><</button>></span>
<div class="header">Finance</div><span id="Main"> <img src="Finance.jpg" width= 40%><div class="right"><<button "Past Performance">><<replace "#Main">> <img src="FinGraph.png" width=70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Finance">><</button>><</replace>><</button>></div> Financial companies,especially banks, can be cyclical, meaning they’re vulnerable to losing value during recessions. When unemployment rises, consumers and businesses often struggle to pay their bills, which can lead to large amounts of bad debt for banks. Many factors can influence financial stock prices in the near term such as weak economic conditions or falling interest rates. <<button "Close" `previous()`>><</button>></span>
<div class="header">Info Tech</div><span id="Main"> <img src="IT.jpg" width= 40%><div class="right"><<button "Past Performance">><<replace "#Main">> <img src="ITGraph.png" width=70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Info Tech">><</button>><</replace>><</button>></div> The information technology (IT) sector includes companies that produce software, hardware or semiconductor equipment, and companies that provide internet or related services. As a whole the IT sector has grown steadily for many years can be effected in the short to medium term by data privacy breaches, oversupply and a lack of skilled workers. <<button "Close" `previous()`>><</button>></span>
<div class="header">Health</div><span id="Main"> <img src="Health.jpg" width= 40%><div class="right"><<button "Past Performance">><<replace "#Main">> <img src="HealthGraph.png" width=70%> <div class="small">Past performance is not a guarantee of future earnings.</div> <<button "Close">><<goto "Health">><</button>><</replace>><</button>></div> The Healthcare industry is highly regulated. Drugmakers and medical device makers can fail to secure the necessary regulatory approvals to market new products, and regulatory changes can drastically alter a healthcare stock’s growth prospects. Many healthcare stocks also face significant litigation risk and are subject to changes in government policies and rebates. <<button "Close" `previous()`>><</button>></span>
<div class="left"><div class="header">Acknowledgements</div></div><div class="middle"><img src="Mainpic.jpg" width=25%></div> Please see below a list of open source resources used in this game. https://www.listcorp.com/asx/sectors/ https://www.investopedia.com/top-agriculture-stocks-5078974 https://www.brookings.edu/research/trends-in-the-information-technology-sector/ https://www2.asx.com.au/ Images: https://pixabay.com/ Made with: <a href="http://twinery.org/"> TWINE. </a> <<button "Play Again">><<goto "Splash">><</button>>
Sell price includes fixed brokerage fee of $1. Dividend = 0.3% per the sell value of each share Share Buy price never goes below $1 Share sale price never goes below 0 All amounts are calculated to the nearest whole number. Chance events Unemployment goes up (finance, mining) War (energy and mining up) (Farming - Unemployment rate goes up - this effects finance sector - Drop in economic activity - effects demand for raw materials (Mining goes down the year after Finance goes down in the same Day - Major disaster causes economic activity to drop the next Day War/conflict causes oil and gas prices to rise during the Day (Mining up/Energy up) Energy prices goes up - effect farming (down) and mining (up) Major security breach - IT down Too many players in the market - IT down Health tied to government regulation - News reports on:
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Buy Shares</div><span id="Main"><<if $MineB is true>><table><tr><th>Mining $$<<=$Mbuy.toFixed(0)>> <img src="miningsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$Mbuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+1)>><<set $Bank to $Bank-(1*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>> </th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$Mbuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+2)>><<set $Bank to $Bank-(2*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$Mbuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+3)>><<set $Bank to $Bank-(3*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$Mbuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+4)>><<set $Bank to $Bank-(4*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$Mbuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+5)>><<set $Bank to $Bank-(5*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$Mbuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+6)>><<set $Bank to $Bank-(6*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$Mbuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+7)>><<set $Bank to $Bank-(7*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$Mbuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+8)>><<set $Bank to $Bank-(8*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$Mbuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+9)>><<set $Bank to $Bank-(9*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$Mbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$Mbuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$Mbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare+10)>><<set $Bank to $Bank-(10*$Mbuy)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#MNum">><div class="plus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="plus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $MineB to false>><</if>><<if $FarmB is true>><table><tr><th>Farming $$<<=$Fbuy.toFixed(0)>> <img src="farmingsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$Fbuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+1)>><<set $Bank to $Bank-(1*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$Fbuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+2)>><<set $Bank to $Bank-(2*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$Fbuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+3)>><<set $Bank to $Bank-(3*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$Fbuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+4)>><<set $Bank to $Bank-(4*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$Fbuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+5)>><<set $Bank to $Bank-(5*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$Fbuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+6)>><<set $Bank to $Bank-(6*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$Fbuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+7)>><<set $Bank to $Bank-(7*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$Fbuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+8)>><<set $Bank to $Bank-(8*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$Fbuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+9)>><<set $Bank to $Bank-(9*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$Fbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$Fbuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$Fbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare+10)>><<set $Bank to $Bank-(10*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FNum">><div class="plus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="plus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $FarmB to false>><</if>><<if $FinB is true>><table><tr><th>Finance $$<<=$Finbuy.toFixed(0)>> <img src="financesm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$Finbuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+1)>><<set $Bank to $Bank-(1*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$Finbuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+2)>><<set $Bank to $Bank-(2*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$Finbuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+3)>><<set $Bank to $Bank-(3*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$Finbuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+4)>><<set $Bank to $Bank-(4*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$Finbuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+5)>><<set $Bank to $Bank-(5*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$Finbuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+6)>><<set $Bank to $Bank-(6*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$Finbuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+7)>><<set $Bank to $Bank-(7*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$Finbuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+8)>><<set $Bank to $Bank-(8*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$Finbuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+9)>><<set $Bank to $Bank-(9*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$Finbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$Finbuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$Finbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare+10)>><<set $Bank to $Bank-(10*$Finbuy)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#FinNum">><div class="plus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="plus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $FinB to false>><</if>><<if $ITB is true>><table><tr><th>Info Tech $$<<=$ITbuy.toFixed(0)>> <img src="ITsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$ITbuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+1)>><<set $Bank to $Bank-(1*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$ITbuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+2)>><<set $Bank to $Bank-(2*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$ITbuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+3)>><<set $Bank to $Bank-(3*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$ITbuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+4)>><<set $Bank to $Bank-(4*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$ITbuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+5)>><<set $Bank to $Bank-(5*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$ITbuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+6)>><<set $Bank to $Bank-(6*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$ITbuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+7)>><<set $Bank to $Bank-(7*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$ITbuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+8)>><<set $Bank to $Bank-(8*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$ITbuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+9)>><<set $Bank to $Bank-(9*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$ITbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$ITbuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$ITbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare+10)>><<set $Bank to $Bank-(10*$ITbuy)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ITNum">><div class="plus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="plus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $ITB to false>><</if>><<if $EnergyB is true>><table><tr><th>Energy $$<<=$Ebuy.toFixed(0)>> <img src="energysm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$Ebuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+1)>><<set $Bank to $Bank-(1*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$Ebuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+2)>><<set $Bank to $Bank-(2*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$Ebuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+3)>><<set $Bank to $Bank-(3*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$Ebuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+4)>><<set $Bank to $Bank-(4*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$Ebuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+5)>><<set $Bank to $Bank-(5*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$Ebuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+6)>><<set $Bank to $Bank-(6*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$Ebuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+7)>><<set $Bank to $Bank-(7*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$Ebuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+8)>><<set $Bank to $Bank-(8*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$Ebuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+9)>><<set $Bank to $Bank-(9*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$Ebuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$Ebuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$Ebuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare+10)>><<set $Bank to $Bank-(10*$Ebuy)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $EnergyB to false>><</if>><<if $HealthB is true>><table><tr><th>Health $$<<=$Hbuy.toFixed(0)>> <img src="healthsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Bank lt (1*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share - total cost $<<=$Hbuy*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=1>><<set $ID="Buy">><<set $Worth=(1*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+1)>><<set $Bank to $Bank-(1*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Bank lt (2*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares - total cost $<<=$Hbuy*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=2>><<set $ID="Buy">><<set $Worth=(2*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+2)>><<set $Bank to $Bank-(2*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Bank lt (3*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares - total cost $<<=$Hbuy*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=3>><<set $ID="Buy">><<set $Worth=(3*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+3)>><<set $Bank to $Bank-(3*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Bank lt (4*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares - total cost $<<=$Hbuy*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=4>><<set $ID="Buy">><<set $Worth=(4*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+4)>><<set $Bank to $Bank-(4*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Bank lt (5*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares - total cost $<<=$Hbuy*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=5>><<set $ID="Buy">><<set $Worth=(5*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+5)>><<set $Bank to $Bank-(5*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Bank lt (6*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares - total cost $<<=$Hbuy*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=6>><<set $ID="Buy">><<set $Worth=(6*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+6)>><<set $Bank to $Bank-(6*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Bank lt (7*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares - total cost $<<=$Hbuy*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=7>><<set $ID="Buy">><<set $Worth=(7*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+7)>><<set $Bank to $Bank-(7*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Bank lt (8*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares - total cost $<<=$Hbuy*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=8>><<set $ID="Buy">><<set $Worth=(8*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+8)>><<set $Bank to $Bank-(8*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Bank lt (9*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares - total cost $<<=$Hbuy*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=9>><<set $ID="Buy">><<set $Worth=(9*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+9)>><<set $Bank to $Bank-(9*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Bank lt (10*$Hbuy)>> You don't have enough money. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares - total cost $<<=$Hbuy*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=10>><<set $ID="Buy">><<set $Worth=(10*$Hbuy)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare+10)>><<set $Bank to $Bank-(10*$Hbuy)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<set $Temp=$TW>><<set $TW = $Bank + $Totalvalue>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#e60000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="plus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="plus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $HealthB to false>><</if>></span></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Sell Shares</div><span id="Main"><<if $MineS is true>><table><tr><th>Mining $$<<=$Msell.toFixed(0)>> <img src="miningsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Mnumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$Msell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-1)>><<set $Bank to $Bank+(1*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>> </th><th><<button "2">><<replace "#Main">><<if $Mnumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$Msell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-2)>><<set $Bank to $Bank+(2*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Mnumshare lt 3>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$Msell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-3)>><<set $Bank to $Bank+(3*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "4">><<replace "#Main">><<if $Mnumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$Msell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-4)>><<set $Bank to $Bank+(4*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "5">><<replace "#Main">><<if $Mnumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$Msell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-5)>><<set $Bank to $Bank+(5*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Mnumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$Msell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-6)>><<set $Bank to $Bank+(6*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "7">><<replace "#Main">><<if $Mnumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$Msell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-7)>><<set $Bank to $Bank+(7*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "8">><<replace "#Main">><<if $Mnumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$Msell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-8)>><<set $Bank to $Bank+(8*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "9">><<replace "#Main">><<if $Mnumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$Msell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-9)>><<set $Bank to $Bank+(9*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "10">><<replace "#Main">><<if $Mnumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$Msell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Mining">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$Msell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Mnumshare to ($Mnumshare-10)>><<set $Bank to $Bank+(10*$Msell)>><<set $Mvalue to($Mnumshare*$Msell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><<replace "#MVal">><div class="minus">$$$Mvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $MineS to false>><</if>><<if $FarmS is true>><table><tr><th>Farming $$<<=$Fsell.toFixed(0)>> <img src="farmingsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if Fnumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$Fsell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-1)>><<set $Bank to $Bank+(1*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Fnumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$Fsell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-2)>><<set $Bank to $Bank+(2*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Fnumshare lt 3>>You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$Fsell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-3)>><<set $Bank to $Bank+(3*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "4">><<replace "#Main">><<if $Fnumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$Fsell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-4)>><<set $Bank to $Bank+(4*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "5">><<replace "#Main">><<if $Fnumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$Fsell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-5)>><<set $Bank to $Bank+(5*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Fnumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$Fsell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-6)>><<set $Bank to $Bank+(6*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "7">><<replace "#Main">><<if $Fnumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$Fsell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-7)>><<set $Bank to $Bank+(7*$Fbuy)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "8">><<replace "#Main">><<if $Fnumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$Fsell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-8)>><<set $Bank to $Bank+(8*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "9">><<replace "#Main">><<if $Fnumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$Fsell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-9)>><<set $Bank to $Bank+(9*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th><th><<button "10">><<replace "#Main">><<if $Fnumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$Fsell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Farming">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$Fsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Fnumshare to ($Fnumshare-10)>><<set $Bank to $Bank+(10*$Fsell)>><<set $Fvalue to($Fnumshare*$Fsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FNum">><div class="minus">$Fnumshare</div><</replace>><<replace "#FVal">><div class="minus">$$$Fvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>><</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $FarmS to false>><</if>><<if $FinS is true>><table><tr><th>Finance $$<<=$Finsell.toFixed(0)>> <img src="financesm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Finnumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$Finsell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-1)>><<set $Bank to $Bank+(1*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Finnumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$Finsell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-2)>><<set $Bank to $Bank+(2*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Finnumshare lt 3>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$Finsell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-3)>><<set $Bank to $Bank+(3*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Finnumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$Finsell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-4)>><<set $Bank to $Bank+(4*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Finnumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$Finsell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-5)>><<set $Bank to $Bank+(5*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Finnumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$Finsell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-6)>><<set $Bank to $Bank+(6*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Finnumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$Finsell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-7)>><<set $Bank to $Bank+(7*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Finnumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$Finsell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-8)>><<set $Bank to $Bank+(8*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Finnumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$Finsell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-9)>><<set $Bank to $Bank+(9*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Finnumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$Finsell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Finance">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$Finsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Finnumshare to ($Finnumshare-10)>><<set $Bank to $Bank+(10*$Finsell)>><<set $Finvalue to($Finnumshare*$Finsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#FinNum">><div class="minus">$Finnumshare</div><</replace>><<replace "#FinVal">><div class="minus">$$$Finvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $FinS to false>><</if>><<if $ITS is true>><table><tr><th>Info Tech $$<<=$ITsell.toFixed(0)>> <img src="ITsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $ITnumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$ITsell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-1)>><<set $Bank to $Bank+(1*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $ITnumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$ITsell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-2)>><<set $Bank to $Bank+(2*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $ITnumshare lt 3>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$ITsell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-3)>><<set $Bank to $Bank+(3*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $ITnumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$ITsell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-4)>><<set $Bank to $Bank+(4*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $ITnumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$ITsell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-5)>><<set $Bank to $Bank+(5*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $ITnumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$ITsell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-6)>><<set $Bank to $Bank+(6*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $ITnumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$ITsell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-7)>><<set $Bank to $Bank+(7*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $ITnumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$ITsell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-8)>><<set $Bank to $Bank+(8*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $ITnumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$ITsell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-9)>><<set $Bank to $Bank+(9*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $ITnumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$ITsell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Info Tech">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$ITsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $ITnumshare to ($ITnumshare-10)>><<set $Bank to $Bank+(10*$ITsell)>><<set $ITvalue to($ITnumshare*$ITsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ITNum">><div class="minus">$ITnumshare</div><</replace>><<replace "#ITVal">><div class="minus">$$$ITvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $ITS to false>><</if>><<if $EnergyS is true>><table><tr><th>Energy $$<<=$Esell.toFixed(0)>> <img src="energysm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Enumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$Esell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-1)>><<set $Bank to $Bank+(1*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Enumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$Esell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-2)>><<set $Bank to $Bank+(2*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Enumshare lt 3>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$Esell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-3)>><<set $Bank to $Bank+(3*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Enumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$Esell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-4)>><<set $Bank to $Bank+(4*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Enumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$Esell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-5)>><<set $Bank to $Bank+(5*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Enumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$Esell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-6)>><<set $Bank to $Bank+(6*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Enumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$Esell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-7)>><<set $Bank to $Bank+(7*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Enumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$Esell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-8)>><<set $Bank to $Bank+(8*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="plus">$Enumshare</div><</replace>><<replace "#EVal">><div class="plus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Enumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$Esell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-9)>><<set $Bank to $Bank+(9*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Enumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$Esell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Energy">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$Esell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Enumshare to ($Enumshare-10)>><<set $Bank to $Bank+(10*$Esell)>><<set $Evalue to($Enumshare*$Esell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#ENum">><div class="minus">$Enumshare</div><</replace>><<replace "#EVal">><div class="minus">$$$Evalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $EnergyS to false>><</if>><<if $HealthS is true>><table><tr><th>Health $$<<=$Hsell.toFixed(0)>> <img src="healthsm.jpg"></th></tr></table><table><tr><th><<button "1">><<replace "#Main">><<if $Hnumshare lt 1>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 1 share is worth $<<=$Hsell*1>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=1>><<set $ID="Sell">><<set $Worth=(1*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-1)>><<set $Bank to $Bank+(1*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="plus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="plus">$$$Hvalue</div><</replace>> <<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "2">><<replace "#Main">><<if $Hnumshare lt 2>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 2 shares are worth $<<=$Hsell*2>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=2>><<set $ID="Sell">><<set $Worth=(2*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-2)>><<set $Bank to $Bank+(2*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "3">><<replace "#Main">><<if $Hnumshare lt 3>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 3 shares are worth $<<=$Hsell*3>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=3>><<set $ID="Sell">><<set $Worth=(3*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-3)>><<set $Bank to $Bank+(3*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "4">><<replace "#Main">><<if $Hnumshare lt 4>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 4 shares are worth $<<=$Hsell*4>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=4>><<set $ID="Sell">><<set $Worth=(4*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-4)>><<set $Bank to $Bank+(4*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "5">><<replace "#Main">><<if $Hnumshare lt 5>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 5 shares are worth $<<=$Hsell*5>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=5>><<set $ID="Sell">><<set $Worth=(5*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-5)>><<set $Bank to $Bank+(5*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table><table><tr><th><<button "6">><<replace "#Main">><<if $Hnumshare lt 6>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 6 shares are worth $<<=$Hsell*6>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=6>><<set $ID="Sell">><<set $Worth=(6*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-6)>><<set $Bank to $Bank+(6*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "7">><<replace "#Main">><<if $Hnumshare lt 7>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 7 shares are worth $<<=$Hsell*7>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=7>><<set $ID="Sell">><<set $Worth=(7*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-7)>><<set $Bank to $Bank+(7*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "8">><<replace "#Main">><<if $Hnumshare lt 8>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 8 shares are worth $<<=$Hsell*8>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=8>><<set $ID="Sell">><<set $Worth=(8*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-8)>><<set $Bank to $Bank+(8*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "9">><<replace "#Main">><<if $Hnumshare lt 9>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 9 shares are worth $<<=$Hsell*9>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=9>><<set $ID="Sell">><<set $Worth=(9*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-9)>><<set $Bank to $Bank+(9*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th><th><<button "10">><<replace "#Main">><<if $Hnumshare lt 10>> You don't have that many shares. <<button "Close">><<goto "Trade">><</button>><<else>> 10 shares are worth $<<=$Hsell*10>> <<button "Confirm">><<replace "#Main">><<set $Sector="Health">><<set $Sharenumber=10>><<set $ID="Sell">><<set $Worth=(10*$Hsell)>><<set $Transaction = [$Day, $Sector,$ID,$Sharenumber, $Worth]>><<run $Record.push($Transaction)>> Your transaction has been recorded. Increases are highlighted in <div class="plus1">Green</div> Decreases are highlighted in <div class="minus1">Red</div> <<button "Close">><<goto "Trade">><</button>><</replace>><<set $Hnumshare to ($Hnumshare-10)>><<set $Bank to $Bank+(10*$Hsell)>><<set $Hvalue to($Hnumshare*$Hsell)>><<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> <<replace "#HNum">><div class="minus">$Hnumshare</div><</replace>><<replace "#HVal">><div class="minus">$$$Hvalue</div><</replace>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<replace "#TotNum">><div class="minus"><<=$Totalnumshare.toFixed(0)>></div><</replace>><<replace "#TotVal">><div class="minus">$<<=$Totalvalue.toFixed(0)>></div><</replace>><</button>> <<button "Cancel">><<goto "Trade">><</button>><</if>><</replace>> <</button>></th></tr></table> <<button "Close">><<goto "Trade">><</button>><<set $HealthS to false>><</if>></span></div></div> <div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div></div>
<img src="Mainpic.jpg" width=20%> <img src="newsS.jpg" width=20%>
Mining <<set $Mbuy=$Mbuy-($Mbuy*0.2)>><<set $Msell=$Mbuy-1>> <<set $Mvalue= $Msell*$Mnumshare>> <<set $MDividend=($Mnumshare*$Msell)*0.3>> <<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> $$$Mbuy Finance <<set $Finbuy=($Finbuy-($Fbuy*0.2))>><<set $Finsell=($Finbuy-1)>> <<set $Finvalue= $Finsell*$Finnumshare>> <<set $FinDividend=($Finnumshare*$Finsell)*0.3>> <<set $Totalnumshare to $Mnumshare+$Fnumshare+$Finnumshare+$ITnumshare+$Enumshare+$Hnumshare>> <<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>> $$$Finbuy
<<set $Event1=[-1,-2,-3]>><<set $Mindex=$Event1.random()>><<set $Finindex=$Event1.random()>><<set $Eindex=$Event1.random()>><<set $Event2=[1, 2]>><<set $ITindex=$Event2.random()>><<set $Hindex= $Event2.random()>><<set $Event3=[-1, -2]>><<set $Findex=$Event3.random()>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>> <<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend1">><</button>></th><th></th></tr></table></div>
Day 2 Drought continues with no rain in sight. Increase in IT companies Banks lower interest rates. <<set $Event1=[-2,-3]>><<set $Findex=$Event1.random()>><<set $Event2=[3,4]>><<set $Eindex=$Event2.random()>><<set $ITindex=$Event2.random()>><<set $Finindex=$Event2.random()>><<set $Event3=[4,5]>><<set $Mindex=$Event3.random()>><<set $Hindex=0>> Farming down 2-3 Energy up 3-4 Mining up 4-5 IT Boom - IT up 3-4 Finance up 3-4 Day 3 Rain relief to farmers Government anounces plans to cut healthcare rebates Deep fakes and cybercrime Tensions escalate between North and South Gastopia <<set $Event1=[3,4]>><<set $Findex=$Event1.random()>><<set $Mindex=0>> <<set $Finindex =0>><<set $Event2=[5,6]>><<set $Eindex=$Event4.random()>><<set $Event3=[-2,-3]>><<set $ITindex=$Event5.random()>><<set $Event4=[-3,-4]>><<set $Hindex=$Event6.random()>> Farming - up 3,4 Mining - up 2,3 Finance - up 1,2 Energy - up 5,6 IT - down 2,3 Health - down 3,4 Day 4 Several IT companies announce bankruptcy Gastopia tensions continue High energy prices slow economic growth <<set $Event1=[2,3]>><<set $Finindex =$Event1.random()>><<set $Mindex=$Event1.random()>><<set $Findex=0>><<set $Hindex=0>><<set $Event2=[-1,-2]>><<set $ITindex=$Event2.random()>><<set $Eindex=0>> Farming - same Mining - down 2,3, Finance - down 2,3, Energy - same IT - down 1,2 Health - same Day 5 Researchers say they are close to developing a new universal anti-viral drug. Transport workers unhappy with latest pay offer. Investors demanding more green energy and reduced reliance on oil and gas Farming -down 2,3,4 Mining - down 3,4,5 Finance - down 3,4,5 Energy - down 3,4,5 IT same Health up 2,3,4 <<set $Event1=[-2,-3,-4]>><<set $Findex =$Event1.random()>><<set $Event2=[-3,-4,-5]>><<set $Mindex =$Event2.random()>><<set $Finindex =$Event2.random()>><<set $Eindex =$Event2.random()>><<set $Event3=[2,3,4]>><<set $Hindex =$Event3.random()>><<set $ITindex=0>> Day 6 War Farming - Mining - Finance - Energy - IT - Health - <<set $Event1=[-4,-5,-6,-7]>><<set $Mindex =$Event1.random()>><<set $Findex =$Event1.random()>><<set $Finindex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $ITindex =$Event1.random()>><<set $Hindex =$Event1.random()>> Day 7 disruptions to oil and gas supplies Strike over Demand for basic products rises <<set $Event1=[3,4,5]>><<set $Findex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $Event2=[-2,-3]>><<set $Mindex =$Event2.random()>><<set $Event3=[-2,3,-1,2,3,1]>><<set $Hindex =$Event3.random()>><<set $ITindex =$Event3.random()>><<set $Finindex =$Event3.random()>>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 1</div><<set $Total2 to $TW>><<set $dif to ($Total2-$Total1)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $TW lte 0>><<goto "End">><</if>><<if $Total2 gt $Total1>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total2 lt $Total1>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total1==$Total2>> You have the same Total Wealth as when you started. At least you didn't lose any money.<</if>> <div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th></th><th>Start</th><th></th><th></th><th>End</th></tr><tr><th>1</th><th></th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 2">><<set $Day to 2>><<goto "Share2">><</button>></th></tr></table></div>
<<set $Mindex=0>><<set $Finindex=1>><<set $Eindex=-3>><<set $ITindex=-1>><<set $Hindex=2>><<set $Findex=-1>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 1 Begin the day by checking the Market and the Share prices at the beginning of the day's trading. <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id="header">Share Market - Opening Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News1">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 2 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News2">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "Ten Year Dry Spell">><<replace "#Main">>The drought in Western Sharetopia continues. Locals say that conditions are the worst they've seen in 10 years. <<linkreplace "Close">><<goto "News2">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "IT Boom">><<replace "#Main">>Hundreds of new Tech start-ups have registered to commence trading in Sharetopia looking to make the most of increased demand. <<linkreplace "Close">><<goto "News2">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Interest Rate Rise">><<replace "#Main">>Banks have lifted the cash rate 20 basis points. <<linkreplace "Close">><<goto "News2">><</linkreplace>><</replace>><</linkreplace>></div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Share Sectors</div> Shares you own are recorded in your Portfolio Table. You can buy shares in the 6 general sectors listed in the Table. Each sector is subject to fluctuations in price depending on a range of market factors. For more detailed information about what effects each sector including past performance click on the relevant links in the Table. <<button "Next">><<goto "Next1">><</button>></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Skip">><<goto "Share1">><</button>></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><table><tr><th><div class="header">Hints and Tips</div></th></tr></table>It's a good idea to read the Finance news before trading shares. The news will help you predict which shareprices are likely to increase or decrease in value by the end of the day's trading. - Share Sell prices include a fixed brokerage fee of $1. - Dividends are paid daily at 0.3% per the Sell price of each share. - Share Buy prices never go below $1.</div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Start">><<goto "Share1">><</button>></div>
<<set $Event1=[-2,-3]>><<set $Findex=$Event1.random()>><<set $Event2=[1,2]>><<set $Eindex=$Event2.random()>><<set $ITindex=$Event2.random()>><<set $Finindex=$Event2.random()>><<set $Event3=[2,3]>><<set $Mindex=$Event3.random()>><<set $Hindex=0>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend2">><</button>></th><th></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 2</div><<set $Total3 to $TW>><<set $dif to ($Total3-$Total2)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $TW lte 0>><<goto "End">><</if>><<if $Total3 gt $Total2>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total3 lt $Total2>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total2==$Total3>> You have the same Total Wealth as when you started Day 2. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th></th><th>Start</th><th></th><th></th><th>End</th></tr><tr><th>1</th><th></th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 3">><<set $Day to 3>><<goto "Share3">><</button>></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 3 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News3">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "Here Comes the Rain">><<replace "#Main">>Widespread rainfall in drought effected regions bring relief to farmers and crops. <<linkreplace "Close">><<goto "News3">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Explosions and Gunfire Heard">><<replace "#Main">>Many reports of explosions and gunfire in Gastopia were received overnight. Analysts fear an escalation in tensions between the north and south of the country will disrupt global oil and gas supplies. <<linkreplace "Close">><<goto "News3">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Review of Health Rebates">><<replace "#Main">>The government completed its review of the Healthcare System and has announced plans to cut healthcare rebates by 10%. <<linkreplace "Close">><<goto "News3">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Real or Deep Fake?">><<replace "#Main">>Authorities report an alarming rise in cybercrime and the use of so-called "Deep Fakes" to scam businesses and individuals out of millions of dollars. <<linkreplace "Close">><<goto "News3">><</linkreplace>><</replace>><</linkreplace>></div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<<set $Event1=[1,2]>><<set $Findex=$Event1.random()>><<set $Mindex=0>> <<set $Finindex =0>><<set $Event2=[2,3]>><<set $Eindex=$Event2.random()>><<set $Event3=[-2,-3]>><<set $ITindex=$Event3.random()>><<set $Event4=[-3,-4]>><<set $Hindex=$Event4.random()>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend3">><</button>></th><th></th></tr></table></div>
<<if $TW lte 0>><<goto "End">><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 3</div><<set $Total4 to $TW>><<set $dif to ($Total4-$Total3)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $Total4 gt $Total3>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total4 lt $Total3>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total3==$Total4>> You have the same Total Wealth as when you started Day 3. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th>Start</th><th></th><th>End</th></tr><tr><th>1</th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr><tr><th>3</th><th></th><th>$$<<=$Total3.toFixed(0)>></th><th></th><th>$$<<=$Total4.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 4">><<set $Day to 4>><<goto "Share4">><</button>></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 4 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div> <table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News4">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "IT Start-ups go to the Wall">><<replace "#Main">>With share prices falling and trust at an all time low many tech companies have today declared bankruptcy. <<linkreplace "Close">><<goto "News4">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Slowing Economic Growth">><<replace "#Main">>The high price of fuel at the moment is impacting economic activity. <<linkreplace "Close">><<goto "News4">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Ceasefire Announced">><<replace "#Main">>A temporary ceasefire has been announced in Gastopia but civilians report continued hostilities along the border in some regions. <<linkreplace "Close">><<goto "News4">><</linkreplace>><</replace>><</linkreplace>></div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<<set $Event1=[1,2]>><<set $Finindex =$Event1.random()>><<set $Mindex=$Event1.random()>><<set $Findex=0>><<set $Hindex=0>><<set $Event2=[-1,-2]>><<set $ITindex=$Event2.random()>><<set $Eindex=0>> <<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend4">><</button>></th><th></th></tr></table></div>
<<if $TW lte 0>><<goto "End">><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 4</div><<set $Total5 to $TW>><<set $dif to ($Total5-$Total4)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $Total5 gt $Total4>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total5 lt $Total4>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total4==$Total5>> You have the same Total Wealth as when you started Day 4. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th>Start</th><th></th><th>End</th></tr><tr><th>1</th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr><tr><th>3</th><th></th><th>$$<<=$Total3.toFixed(0)>></th><th></th><th>$$<<=$Total4.toFixed(0)>></th></tr><tr><th>4</th><th></th><th>$$<<=$Total4.toFixed(0)>></th><th></th><th>$$<<=$Total5.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 5">><<set $Day to 5>><<goto "Share5">><</button>></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 5 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div> <table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News5">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
$Bank <<=$Bank.toFixed(0)>> <<if $Bank < $Bank.toFixed(0)>><<set $Bank=$Bank+0.5>><</if>> $Bank <<=$Bank.toFixed(0)>> <<set $Test to 8.40000>> <<=$Test.toFixed(0)>>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div> Bad luck you have lost all your wealth. <table><tr><th><<button "Play Again">><<goto "Splash">><</button>></th><th></th><th><<button "Finish">><<goto "Acknowledgements">><</button>></th></tr></table>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "New Anti-viral">><<replace "#Main">>Researchers say they are close to releasing a new universal anti-viral drug. <<linkreplace "Close">><<goto "News5">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Transport Workers Strike">><<replace "#Main">>Transport workers are striking after latest wage talks broke down. <<linkreplace "Close">><<goto "News5">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Green Energy">><<replace "#Main">>Public lobby groups are demanding that the government invest in more sustainable energy sources and to reduce reliance on oil and gas. <<linkreplace "Close">><<goto "News5">><</linkreplace>><</replace>><</linkreplace>></div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<<set $Event1=[-2,-3,-4]>><<set $Findex =$Event1.random()>><<set $Event2=[-3,-4,-5]>><<set $Mindex =$Event2.random()>><<set $Event3=[2,3,4]>><<set $Hindex =$Event3.random()>><<set $ITindex=0>><<set $Finindex=0>><<set $Event4=[1,2]>><<set $Eindex =$Event4.random()>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend5">><</button>></th><th></th></tr></table></div>
<<if $TW lte 0>><<goto "End">><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 5</div><<set $Total6 to $TW>><<set $dif to ($Total6-$Total5)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $Total6 gt $Total5>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total6 lt $Total5>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total6==$Total5>> You have the same Total Wealth as when you started Day 5. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th>Start</th><th></th><th>End</th></tr><tr><th>1</th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr><tr><th>3</th><th></th><th>$$<<=$Total3.toFixed(0)>></th><th></th><th>$$<<=$Total4.toFixed(0)>></th></tr><tr><th>4</th><th></th><th>$$<<=$Total4.toFixed(0)>></th><th></th><th>$$<<=$Total5.toFixed(0)>></th></tr><tr><th>5</th><th></th><th>$$<<=$Total5.toFixed(0)>></th><th></th><th>$$<<=$Total6.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 6">><<set $Day to 6>><<goto "Share6">><</button>></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 6 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News6">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "It's War">><<replace "#Main">>Civil War has been declared between North and South Gastopia. <<linkreplace "Close">><<goto "News6">><</linkreplace>><</replace>><</linkreplace>> </div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<<set $Event1=[-4,-5]>><<set $Mindex =$Event1.random()>><<set $Finindex =$Event1.random()>><<set $ITindex =$Event1.random()>><<set $Hindex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $Findex =$Event1.random()>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend6">><</button>></th><th></th></tr></table></div>
<<if $TW lte 0>><<goto "End">><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 6</div><<set $Total7 to $TW>><<set $dif to ($Total7-$Total6)>><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $Total7 gt $Total6>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total7 lt $Total6>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total7==$Total6>> You have the same Total Wealth as when you started Day 6. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th>Start</th><th></th><th>End</th></tr><tr><th>1</th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr><tr><th>3</th><th></th><th>$$<<=$Total3.toFixed(0)>></th><th></th><th>$$<<=$Total4.toFixed(0)>></th></tr><tr><th>4</th><th></th><th>$$<<=$Total4.toFixed(0)>></th><th></th><th>$$<<=$Total5.toFixed(0)>></th></tr><tr><th>5</th><th></th><th>$$<<=$Total5.toFixed(0)>></th><th></th><th>$$<<=$Total6.toFixed(0)>></th></tr><tr><th>6</th><th></th><th>$$<<=$Total6.toFixed(0)>></th><th></th><th>$$<<=$Total7.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Save">><<script>>UI.saves()<</script>><</button>></th><th><<button "Day 7">><<set $Day to 7>><<goto "Share7">><</button>></th></tr></table></div>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><span id="Main"> Welcome to Day 7 <<button "Opening Prices">><<timed 0.1s>><<replace "#Main">><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Opening Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "News">><<goto "News7">><</button>></th><th></th><th><<button "Trade">><<goto "Trade">><</button>></th></tr></table></div><</replace>><</timed>><</button>></span>
<<set $Day =1>><<set $Sector="Farming">><<set $ShareBnumber=1>><<set $Worth=10>> <<set $Transaction = [$Day, $Sector, $ShareBnumber, $Worth]>> <<set $Record to []>><<run $Record.push($Transaction)>> [[Test]]
<<set $Day =1>><<set $Sector="Mining">><<set $ShareBnumber=1>><<set $Worth=10>> <<set $Transaction to ["Day $Day", " Sector: $Sector"," Shares Bought: $ShareBnumber"," Value: $Worth"]>> <<set $Record to []>> <<run $Record.push($Transaction)>> <<= $Record.join(' <br> ')>> <<= $Record.join(' <<th>><</th>> ')>> <<set $Transaction to [$Day, $Sector, $ShareBnumber, $$$Worth]>> <<run $Record.push($Transaction)>> <<= $Record.join(' <br> ')>> <<if $Record.includes('Mining')>>\ <<= $Record.join(' <br> ')>> <<else>>\ No transactions Day 1 <</if>> <<set $Record1 to []>><<run $Record1.push ('Mining')>><<run $Record1.push ('Day 1')>> <<if $Record1.includes('Mining')>>\ <<= $Record1.join(' <br> ')>> <<else>>\ No transactions Day 1 <</if>> <<if $Transaction.includes('Mining')>>\ <<= $Record1.join(' <br> ')>> <<else>>\ No transactions Day 1 <</if>> <<run $Transaction.push($Sector)>><<run $Transaction.push($Sharenumber)>><<run $Transaction.push($Worth)>> <<=$Transaction.join (' <br> ')>> <<run $Record.push($Transaction)>> <<set $Day =1>><<set $Sector="Mining">><<set $Sharenumber=1>><<set $Worth = 20>><<set $Transaction=[$Day,$Sector,$Sharenumber,$Worth]>> <<run $Record.push($Transaction.join)>> You are currently carrying: /% if the inventory contains nothing, show "nothing" %/\ <<if $Record.length is 0>>\ nothing. <<else>>\ /% the Array#join() method combines all array elements into a single string, with each element separated by the argument given %/\ <<= $Record.join(' <br> ')>> <</if>>
<<set $Day =2>><<set $Sector="Mining">><<set $ShareBnumber=4>><<set $Worth=20>> <<set $Transaction =[$Day,$Sector,$ShareBnumber,$Worth]>> <<run $Record.push($Transaction)>> <<run $Record.join(' ')>> $Record [[Test2]]
<table><tr><td><b>Day</b></td><td><b>Sector</b></td><td><b>Number</b></td><td><b>Value</b></td></tr> <<for _i to 0;_i<$Record.length;_i++>><tr><<for _ii to 0;_ii<$Transaction.length;_ii++>><td><<if _ii<$Transaction.length-1>>$Record[_i][_ii]<<else>><<print "$"+$Record[_i][_ii]>><</if>></td><</for>></tr><</for>></table> <table><tr><th><b>Day</b></th><th><b>Sector</b></th><th><b>Shares</b></th><th><b>Value</b></th></tr> <<for _i to 0;_i<$Record.length;_i++>><tr><<for _ii to 0;_ii<$Transaction.length;_ii++>><th><<if _ii<$Transaction.length-1>>$Record[_i][_ii]<<else>><<print "$"+$Record[_i][_ii]>><</if>></th><</for>></tr><</for>></table>
<<set $Day =1>><<set $Sector="Farming">><<set $ShareBnumber=1>><<set $Worth=10>> <<set $Transaction = [$Day, $Sector, $ShareBnumber, $Worth]>> <<set $Record to []>><<run $Record.push($Transaction)>> <<set $Day =2>><<set $Sector="Mining">><<set $ShareBnumber=4>><<set $Worth=20>> <<set $Transaction =[$Day,$Sector,$ShareBnumber,$Worth]>> <<run $Record.push($Transaction)>> <<= $Record.join(' <br> ')>>
<div class="plus">This is the plus green against a blue background. </div> <div class="minus">This is the minus red against a blue background. </div> <table><div class="tablesection"><tr><th><div class="plus">This is the green plus in a table </div></th></tr><tr><th><div class="minus">This is the red minus in a table</div> </th></tr></div></table> <div class="plus1"> This is the plus1 green against a blue background. </div> <div class="minus1">This is the minus1 red against a blue background. </div> <table><div class="tablesection"><tr><th><div class="plus1">This is the green plus1 in a table</div> </th></tr><tr><th><div class="minus1">This is the red minus1 in a table </div></th></tr></div></table> <div class="tablesection"> <span style="color:#008000">This is the green for the bank</span> <span style="color:#008000">This is the green for the Total Wealth</span> <span style="color:#e60000">This is the red for Total Wealth</span> <span style="color:#e60000"> This is the red for Bank</span></div> <span style="color:#e60000">This is the bank and wealth red on a blue background.</span> <span style="color:#008000">This is the bank and wealth green on a blue background.</span>
<div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="right"><<button "Close" `previous()`>><</button>></div><div class="left"><div class="header">Transaction Record</div><<if $Record.length is 0>> You have not conducted any transactions yet.<<else>><div class="tablesection1"><table><tr><th>Day</th><th>Sector</th><th>Buy/Sell</th><th>Shares</th><th>Value</th></tr> <<for _i to 0;_i<$Record.length;_i++>><tr><<for _ii to 0;_ii<$Transaction.length;_ii++>><th><<if _ii<$Transaction.length-1>>$Record[_i][_ii]<<else>><<print "$"+$Record[_i][_ii]>><</if>></th><</for>></tr><</for>></table></div><</if>></div></div>
<div class="col-8"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Finance News</div> <span id="Main"><span style="color:#fe8702"><div class="large"><<linkreplace "Hostilities Continue">><<replace "#Main">>Continuing hostilities are causing disruptions to the supply of oil and gas. <<linkreplace "Close">><<goto "News7">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Transport Workers Strike Over">><<replace "#Main">>Agreement has been reached over pay and conditions in the transport industry. <<linkreplace "Close">><<goto "News7">><</linkreplace>><</replace>><</linkreplace>> <<linkreplace "Economic Activity Down">><<replace "#Main">>As a result of war in Gastopia, demand for some goods and services is down and the market is unpredictable. <<linkreplace "Close">><<goto "News7">><</linkreplace>><</replace>><</linkreplace>> </div></span> <img src="newsS.jpg" width= 100%></span></div></div> <div class="left"><<button "Trade">><<goto "Trade">><</button>></div>
<<set $Event1=[2,3]>><<set $Findex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $Event2=[-2,-3]>><<set $Mindex =$Event2.random()>><<set $Event3=[-2,3,-1,2,3,1]>><<set $Hindex =$Event3.random()>><<set $ITindex =$Event3.random()>><<set $Finindex =$Event3.random()>><<set $MBtemp=$Mbuy>><<set $MStemp=$Msell>><<set $MVtemp=$Mvalue>><<set $FBtemp=$Fbuy>><<set $FStemp=$Fsell>><<set $FVtemp=$Fvalue>><<set $FinBtemp=$Finbuy>><<set $FinStemp=$Finsell>><<set $FinVtemp=$Finvalue>><<set $EBtemp=$Ebuy>><<set $EStemp=$Esell>><<set $EVtemp=$Evalue>><<set $ITBtemp=$ITbuy>><<set $ITStemp=$ITsell>><<set $ITVtemp=$ITvalue>><<set $HBtemp=$Hbuy>><<set $HStemp=$Hsell>><<set $HVtemp=$Hvalue>><<set $TotVtemp to $Totalvalue>><<set $Temp to $TW>><<set $Mbuy to $Mbuy+$Mindex>><<if $Mbuy < 1>><<set $Mbuy=1>><</if>><<set $Msell = $Mbuy-1>><<if $Msell < 0>><<set $Msell=0>><</if>><<set $Mvalue=$Msell*$Mnumshare>><<if $MVtemp gt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="minus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $MVtemp lt $Mvalue>><<timed 0.2s>><<replace "#MVal">><div class="plus">$$<<=$Mvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Fbuy to $Fbuy+$Findex>><<if $Fbuy < 1>><<set $Fbuy=1>><</if>><<set $Fsell = $Fbuy-1>><<if $Fsell < 0>><<set $Fsell=0>><</if>><<set $Fvalue=$Fsell*$Fnumshare>><<if $FVtemp gt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="minus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FVtemp lt $Fvalue>><<timed 0.2s>><<replace "#FVal">><div class="plus">$$<<=$Fvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Finbuy to $Finbuy+$Finindex>><<if $Finbuy < 1>><<set $Finbuy=1>><</if>><<set $Finsell = $Finbuy-1>><<if $Finsell < 0>><<set $Finsell=0>><</if>><<set $Finvalue=$Finsell*$Finnumshare>><<if $FinVtemp gt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="minus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $FinVtemp lt $Finvalue>><<timed 0.2s>><<replace "#FinVal">><div class="plus">$$<<=$Finvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Ebuy to $Ebuy+$Eindex>><<if $Ebuy < 1>><<set $Ebuy=1>><</if>><<set $Esell = $Ebuy-1>><<if $Esell < 0>><<set $Esell=0>><</if>><<set $Evalue=$Esell*$Enumshare>><<if $EVtemp gt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="minus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $EVtemp lt $Evalue>><<timed 0.2s>><<replace "#EVal">><div class="plus">$$<<=$Evalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Hbuy to $Hbuy+$Hindex>><<if $Hbuy < 1>><<set $Hbuy=1>><</if>><<set $Hsell = $Hbuy-1>><<if $Hsell < 0>><<set $Hsell=0>><</if>><<set $Hvalue=$Hsell*$Hnumshare>><<if $HVtemp gt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="minus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $HVtemp lt $Hvalue>><<timed 0.2s>><<replace "#HVal">><div class="plus">$$<<=$Hvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $ITbuy to $ITbuy+$ITindex>><<if $ITbuy < 1>><<set $ITbuy=1>><</if>><<set $ITsell = $ITbuy-1>><<if $ITsell < 0>><<set $ITsell=0>><</if>><<set $ITvalue=$ITsell*$ITnumshare>><<if $ITVtemp gt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="minus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<if $ITVtemp lt $ITvalue>><<timed 0.2s>><<replace "#ITVal">><div class="plus">$$<<=$ITvalue.toFixed(0)>></div><</replace>><</timed>><</if>><<set $Totalvalue to $Mvalue+$Fvalue+$Finvalue+$ITvalue+$Evalue+$Hvalue>><<timed 0.2s>><<if $TotVtemp gt $Totalvalue>><<replace "#TotVal">><span style="color:#e60000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><<if $TotVtemp lt $$Totalvalue>><<replace "#TotVal">><span style="color:#008000">$$<<=$Totalvalue.toFixed(0)>></span><</replace>><</if>><</timed>><<set $TW = $Bank + $Totalvalue>><<timed 0.2s>><<replace "#TW">><<if $Temp gt $TW>><span style="color:#e60000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp lt $TW>><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</if>><<if $Temp == $TW>>$$<<=$TW.toFixed(0)>><</if>><</replace>><</timed>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW"> $$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header"><span id ="header">Share Market - Closing Prices</span></div><table><tr><th></th><th>Sector</th><th>Buy</th><th>Sell</th><th>Trend</th><th></th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th><<if $Mbuy lt $MBtemp>><div class="minus1">$$<<=$Mbuy.toFixed(0)>></div><</if>><<if $Mbuy == $MBtemp>>$$<<=$Mbuy.toFixed(0)>><</if>><<if $Mbuy gt $MBtemp>><div class="plus1">$$<<=$Mbuy.toFixed(0)>></div><</if>></th><th><<if $Msell lt $MStemp>><div class="minus1">$$<<=$Msell.toFixed(0)>></div><</if>><<if $Msell == $MStemp>>$$<<=$Msell.toFixed(0)>><</if>><<if $Msell gt $MStemp>><div class="plus1">$$<<=$Msell.toFixed(0)>></div><</if>></th><th><<if $Mindex lt 0>><img src="Down.png" width=30%><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Mindex lt 0>><div class="minus1">$$$Mindex</div><</if>><<if $Mindex == 0>>-<</if>><<if $Mindex gt 0>><div class="plus1">$$$Mindex</div><</if>></th></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th><<if $Fbuy lt $FBtemp>><div class="minus1">$$<<=$Fbuy.toFixed(0)>></div><</if>><<if $Fbuy == $FBtemp>>$$<<=$Fbuy.toFixed(0)>><</if>><<if $Fbuy gt $FBtemp>><div class="plus1">$$<<=$Fbuy.toFixed(0)>></div><</if>></th><th><<if $Fsell lt $FStemp>><div class="minus1">$$<<=$Fsell.toFixed(0)>></div><</if>><<if $Fsell == $FStemp>>$$<<=$Fsell.toFixed(0)>><</if>><<if $Fsell gt $FStemp>><div class="plus1">$$<<=$Fsell.toFixed(0)>></div><</if>></th><th><<if $Findex lt 0>><img src="Down.png" width=30%><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Findex lt 0>><div class="minus1">$$$Findex</div><</if>><<if $Findex == 0>>-<</if>><<if $Findex gt 0>><div class="plus1">$$$Findex</div><</if>></th></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th><<if $Ebuy lt $EBtemp>><div class="minus1">$$<<=$Ebuy.toFixed(0)>></div><</if>><<if $Ebuy == $EBtemp>>$$<<=$Ebuy.toFixed(0)>><</if>><<if $Ebuy gt $EBtemp>><div class="plus1">$$<<=$Ebuy.toFixed(0)>></div><</if>></th><th><<if $Esell lt $EStemp>><div class="minus1">$$<<=$Esell.toFixed(0)>></div><</if>><<if $Esell == $EStemp>>$$<<=$Esell.toFixed(0)>><</if>><<if $Esell gt $EStemp>><div class="plus1">$$<<=$Esell.toFixed(0)>></div><</if>></th><th><<if $Eindex lt 0>><img src="Down.png" width=30%><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Eindex lt 0>><div class="minus1">$$$Eindex</div><</if>><<if $Eindex == 0>>-<</if>><<if $Eindex gt 0>><div class="plus1">$$$Eindex</div><</if>></th></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th><<if $Finbuy lt $FinBtemp>><div class="minus1">$$<<=$Finbuy.toFixed(0)>></div><</if>><<if $Finbuy == $FinBtemp>>$$<<=$Finbuy.toFixed(0)>><</if>><<if $Finbuy gt $FinBtemp>><div class="plus1">$$<<=$Finbuy.toFixed(0)>></div><</if>></th><th><<if $Finsell lt $FinStemp>><div class="minus1">$$<<=$Finsell.toFixed(0)>></div><</if>><<if $Finsell == $FinStemp>>$$<<=$Finsell.toFixed(0)>><</if>><<if $Finsell gt $FinStemp>><div class="plus1">$$<<=$Finsell.toFixed(0)>></div><</if>></th><th><<if $Finindex lt 0>><img src="Down.png" width=30%><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Finindex lt 0>><div class="minus1">$$$Finindex</div><</if>><<if $Finindex == 0>>-<</if>><<if $Finindex gt 0>><div class="plus1">$$$Finindex</div><</if>></th></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th><<if $Hbuy lt $HBtemp>><div class="minus1">$$<<=$Hbuy.toFixed(0)>></div><</if>><<if $Hbuy == $HBtemp>>$$<<=$Hbuy.toFixed(0)>><</if>><<if $Hbuy gt $HBtemp>><div class="plus1">$$<<=$Hbuy.toFixed(0)>></div><</if>></th><th><<if $Hsell lt $HStemp>><div class="minus1">$$<<=$Hsell.toFixed(0)>></div><</if>><<if $Hsell == $HStemp>>$$<<=$Hsell.toFixed(0)>><</if>><<if $Hsell gt $HStemp>><div class="plus1">$$<<=$Hsell.toFixed(0)>></div><</if>></th><th><<if $Hindex lt 0>><img src="Down.png" width=30%><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $Hindex lt 0>><div class="minus1">$$$Hindex</div><</if>><<if $Hindex == 0>>-<</if>><<if $Hindex gt 0>><div class="plus1">$$$Hindex</div><</if>></th></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th><<if $ITbuy lt $ITBtemp>><div class="minus1">$$<<=$ITbuy.toFixed(0)>></div><</if>><<if $ITbuy == $ITBtemp>>$$<<=$ITbuy.toFixed(0)>><</if>><<if $ITbuy gt $ITBtemp>><div class="plus1">$$<<=$ITbuy.toFixed(0)>></div><</if>></th><th><<if $ITsell lt $ITStemp>><div class="minus1">$$<<=$ITsell.toFixed(0)>></div><</if>><<if $ITsell == $ITStemp>>$$<<=$ITsell.toFixed(0)>><</if>><<if $ITsell gt $ITStemp>><div class="plus1">$$<<=$ITsell.toFixed(0)>></div><</if>></th><th><<if $ITindex lt 0>><img src="Down.png" width=30%><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><img src="Up.png" width=30%><</if>></th><th><<if $ITindex lt 0>><div class="minus1">$$$ITindex</div><</if>><<if $ITindex == 0>>-<</if>><<if $ITindex gt 0>><div class="plus1">$$$ITindex</div><</if>></th></tr></table></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><table><tr><th><<button "Dividends">><<goto "Dividend7">><</button>></th><th></th></tr></table></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<set $Total8 to $TW>><<set $dif to ($Total8-$Total7)>><<goto "Summary7">><</button>></div>
<<if $TW lte 0>><<goto "End">><</if>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-6"><div class="left"><div class="header">Summary Day 7</div><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>><<if $Total8 gt $Total7>><div class="plus1">Fantastic. You have increased your Total Wealth by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total8 lt $Total7>><<set $dif to ($dif-$dif-$dif)>> <div class="minus1">Bad luck your Total Wealth has gone down by $$<<=$dif.toFixed(0)>>.</div><</if>><<if $Total8==$Total7>> You have the same Total Wealth as when you started Day 7. At least you didn't lose any money.<</if>><div class="left"><div class="tablesection1"><table><tr><th>Day</th><th></th><th>Start</th><th></th><th>End</th></tr><tr><th>1</th><th></th><th>$$<<=$Total1.toFixed(0)>></th><th></th><th>$$<<=$Total2.toFixed(0)>></th></tr><tr><th>2</th><th></th><th>$$<<=$Total2.toFixed(0)>></th><th></th><th>$$<<=$Total3.toFixed(0)>></th></tr><tr><th>3</th><th></th><th>$$<<=$Total3.toFixed(0)>></th><th></th><th>$$<<=$Total4.toFixed(0)>></th></tr><tr><th>4</th><th></th><th>$$<<=$Total4.toFixed(0)>></th><th></th><th>$$<<=$Total5.toFixed(0)>></th></tr><tr><th>5</th><th></th><th>$$<<=$Total5.toFixed(0)>></th><th></th><th>$$<<=$Total6.toFixed(0)>></th></tr><tr><th>6</th><th></th><th>$$<<=$Total6.toFixed(0)>></th><th></th><th>$$<<=$Total7.toFixed(0)>></th></tr><tr><th>7</th><th></th><th>$$<<=$Total7.toFixed(0)>></th><th></th><th>$$<<=$Total8.toFixed(0)>></th></tr></table></div> <<button "Transaction Record">><<goto "Record">><</button>></div></div></div><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"><span style="color:#4d4dff"> $$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div><<button "Profit Report">><<goto "Rank">><</button>></div>
<<set $dif = $Total8-$Total1>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><div class="col-12"><div class="left"><div class="header">Profit Report</div><<if $dif < $dif.toFixed(0)>><<set $dif=$dif+0.5>><</if>> <<if $dif gte 0>>As a Day Trader You have increased your Total Wealth by $$<<=$dif.toFixed(0)>> in 7 days. <<if $dif.toFixed(0) gt 250>>That is Excellent.<</if>><<if $dif.toFixed(0) gte 200 and $dif.toFixed(0) lte 249>>That is Very Good.<</if>><<if $dif.toFixed(0) gte 150 and $dif.toFixed(0) lte 199>>That is Good.<</if>><<if $dif.toFixed(0) gte 100 and $dif.toFixed(0) lte 149>>That is Fair.<</if>><<if $dif.toFixed(0) gte 50 and $dif.toFixed(0) lte 99>>That is Encouraging.<</if>><<if $dif.toFixed(0) gte 0 and $dif.toFixed(0) lte 49>>That is pretty Poor.<</if>><</if>><<if $dif lt 0>>Bad luck you did not make any profit. You might like to consider a different career.<</if>></div></div><div class="left"><img src="Rank.png" width=40%> <<button "Finish">><<goto "Acknowledgements">><</button>></div>
Day 1 Economic Activity Down - Sharetopia's Economic activity data is out and shows an overall drop of 30%. Breakthrough AI Technology-Scientists have announced the development of a revolutionary new surgical technique which utilises artificial intelligence to more accurately perform difficult surgical procedures. <<set $Event1=[-1,-2,-3]>><<set $Mindex=$Event1.random()>><<set $Finindex=$Event1.random()>><<set $Eindex=$Event1.random()>><<set $Event2=[1, 2]>><<set $ITindex=$Event2.random()>><<set $Hindex= $Event2.random()>><<set $Event3=[-1, -2]>><<set $Findex=$Event3.random()>> Day 2 Ten Year Dry Spell-The drought in Western Sharetopia continues. Locals say that conditions are the worst they've seen in 10 years. IT Boom - Hundreds of new Tech start-ups have registered to commence trading in Sharetopia looking to make the most of increased demand. Interest Rate Rise-Banks have lifted the cash rate 20 basis points. <<set $Event1=[-2,-3]>><<set $Findex=$Event1.random()>><<set $Event2=[1,2]>><<set $Eindex=$Event2.random()>><<set $ITindex=$Event2.random()>><<set $Finindex=$Event2.random()>><<set $Event3=[2,3]>><<set $Mindex=$Event3.random()>><<set $Hindex=0>> Day 3 Here Comes the Rain-Widespread rainfall in drought effected regions bring relief to farmers and crops. Explosions and Gunfire Heard-Many reports of explosions and gunfire in Gastopia were received overnight. Analysts fear an escalation in tensions between the north and south of the country will disrupt global oil and gas supplies. Review of Health Rebates-The government completed its review of the Healthcare System and has announced plans to cut healthcare rebates by 10%. <<set $Event1=[1,2]>><<set $Findex=$Event1.random()>><<set $Mindex=0>> <<set $Finindex =0>><<set $Event2=[2,3]>><<set $Eindex=$Event2.random()>><<set $Event3=[-2,-3]>><<set $ITindex=$Event3.random()>><<set $Event4=[-3,-4]>><<set $Hindex=$Event4.random()>> Day 4 IT Start-ups go to the Wall-With share prices falling and trust at an all time low many tech companies have today declared bankruptcy. Slowing Economic Growth-The high price of fuel at the moment is impacting economic activity. Ceasefire Announced-A temporary ceasefire has been announced in Gastopia but civilians report continued hostilities along the border in some regions. <<set $Event1=[1,2]>><<set $Finindex =$Event1.random()>><<set $Mindex=$Event1.random()>><<set $Findex=0>><<set $Hindex=0>><<set $Event2=[-1,-2]>><<set $ITindex=$Event2.random()>><<set $Eindex=0>> Day 5 New Anti-viral-Researchers say they are close to releasing a new universal anti-viral drug. Transport Workers Strike-Transport workers are striking after latest wage talks broke down. Green Energy-Public lobby groups are demanding that the government invest in more sustainable energy sources and to reduce reliance on oil and gas. <<set $Event1=[-2,-3,-4]>><<set $Findex =$Event1.random()>><<set $Event2=[-3,-4,-5]>><<set $Mindex =$Event2.random()>><<set $Event3=[2,3,4]>><<set $Hindex =$Event3.random()>><<set $ITindex=0>><<set $Finindex=0>><<set $Event4=[1,2]>><<set $Eindex =$Event4.random()>> Day 6 It's War-Civil War has been declared between North and South Gastopia. <<set $Event1=[-4,-5,-6,-7]>><<set $Mindex =$Event1.random()>><<set $Finindex =$Event1.random()>><<set $ITindex =$Event1.random()>><<set $Hindex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $Findex =$Event1.random()>> Day 7 Hostilities Continue-Continuing hostilities are causing disruptions to the supply of oil and gas. Transport Workers Strike Over-Agreement has been reached over pay and conditions in the transport industry. Economic Activity Down-As a result of war in Gastopia, demand for some goods and services is down and the market is unpredictable. <<set $Event1=[2,3]>><<set $Findex =$Event1.random()>><<set $Eindex =$Event1.random()>><<set $Event2=[-2,-3]>><<set $Mindex =$Event2.random()>><<set $Event3=[-2,3,-1,2,3,1]>><<set $Hindex =$Event3.random()>><<set $ITindex =$Event3.random()>><<set $Finindex =$Event3.random()>>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary1">><</button>></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary2">><</button>></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary3">><</button>></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary4">><</button>></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary5">><</button>></div>
<<set $MDividend=($Mnumshare*$Msell)*0.3>><<set $FDividend=($Fnumshare*$Fsell)*0.3>><<set $FinDividend=($Finnumshare*$Finsell)*0.3>><<set $ITDividend=($ITnumshare*$ITsell)*0.3>><<set $EDividend=($Enumshare*$Esell)*0.3>><<set $HDividend=($Hnumshare*$Hsell)*0.3>><div class="col-6"><div class="headsection"><div class="left"><i>Day Trader</i></div><div class="middle">Day $Day</div><div class="right">Total Wealth: <span id="TW">$$<<=$TW.toFixed(0)>></span></div></div></div><span id="main"><div class="col-6"><div class="left"><div class="header"><span id ="header">Dividends</span></div><table><tr><th></th><th>Sector</th><th></th><th>Shares</th><th></th><th>Dividend</th><th></th><th>Collect</th></tr><tr><th><img src="miningsm.jpg" width=60%></th><th>Mining</th><th></th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MDiv"><<if $MDividend <=0>>0<<else>>$$<<=$MDividend.toFixed(0)>><</if>></span></th><th></th><<if $MDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$MDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#MDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="farmingsm.jpg" width=60%></th><th>Farming</th><th></th><th><span id ="FNum">$Fnumshare</span></th><th></th><th><span id="FDiv"><<if $FDividend <=0>>0<<else>>$$<<=$FDividend.toFixed(0)>><</if>></span></th><th></th><<if $FDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="energysm.jpg" width=60%></th><th>Energy</th><th></th><th><span id ="ENum">$Enumshare</span></th><th></th><th><span id="EDiv"><<if $EDividend <=0>>0<<else>>$$<<=$EDividend.toFixed(0)>><</if>></span></th><th></th><<if $EDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$EDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#EDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="financesm.jpg" width=60%></th><th>Finance</th><th></th><th><span id ="FinNum">$Finnumshare</span></th><th></th><th><span id="FinDiv"><<if $FinDividend <=0>>0<<else>>$$<<=$FinDividend.toFixed(0)>><</if>></span></th><th></th><<if $FinDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$FinDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#FinDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="healthsm.jpg" width=60%></th><th>Health</th><th></th><th><span id="HNum">$Hnumshare</span></th><th></th><th><span id="HDiv"><<if $HDividend <=0>>0<<else>>$$<<=$HDividend.toFixed(0)>><</if>></span></th><th></th><<if $HDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$HDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#HDiv">><</replace>><</linkreplace>></th><</if>></tr><tr><th><img src="ITsm.jpg" width=60%></th><th>Info Tech</th><th></th><th><span id ="ITNum">$ITnumshare</span></th><th></th><th><span id="ITDiv"><<if $ITDividend <=0>>0<<else>>$$<<=$ITDividend.toFixed(0)>><</if>></span></th><th></th><<if $ITDividend <= 0>><th></th><<else>><th><<linkreplace "Collect">><<set $Bank to $Bank+$ITDividend>><<replace "#Bank">><span style="color:#008000"> $$<<=$Bank.toFixed(0)>></span><</replace>><<set $TW to $Bank+$Totalvalue>><<replace "#TW">><span style="color:#008000">$$<<=$TW.toFixed(0)>></span><</replace>><<replace "#ITDiv">><</replace>><</linkreplace>></th><</if>></tr></table></div></div></span><div class="left"><div class="tablesection"><table><tr></tr><tr><th>Sector</th><th>Shares</th><th> </th><th>Value</th></tr><tr><th>[[Mining]]</th><th><span id="MNum">$Mnumshare</span></th><th> </th><th><span id="MVal">$$<<=$Mvalue.toFixed(0)>></span></th></tr><tr><th>[[Farming]]</th><th><span id ="FNum">$Fnumshare</span></th><th> </th><th><span id="FVal">$$<<=$Fvalue.toFixed(0)>></span></th></tr><tr><th>[[Energy]]</th><th><span id ="ENum">$Enumshare</span></th><th> </th><th><span id="EVal">$$<<=$Evalue.toFixed(0)>></span></th></tr><tr><th>[[Finance]]</th><th><span id ="FinNum">$Finnumshare</span></th><th> </th><th><span id="FinVal">$$<<=$Finvalue.toFixed(0)>></span></th></tr><tr><th>[[Health]]</th><th><span id ="HNum">$Hnumshare</span></th><th> </th><th><span id="HVal">$$<<=$Hvalue.toFixed(0)>></span></th></tr><tr><th>[[Info Tech]]</th><th><span id ="ITNum">$ITnumshare</span></th><th> </th><th><span id="ITVal">$$<<=$ITvalue.toFixed(0)>></span></th></tr><tr><th>Total</th><th><span id ="TotNum"><<=$Totalnumshare.toFixed(0)>></span></th><th> </th><th><span id="TotVal">$$<<=$Totalvalue.toFixed(0)>></span></th></tr><tr><th><span style="color:#4d4dff">Bank</span></th><th></th><th></th><th><span id="Bank"> <span style="color:#4d4dff">$$<<=$Bank.toFixed(0)>></span></span></th></tr></table></div> <<button "Summary">><<goto "Summary6">><</button>></div>
.redback {background-color: red; } .yellowback {background-color:yellow;} .orangeback {background-color:orange;} <tr> <td id="apple"><<link "Apple">><<addclass "#apple" "redback">><</link>></td> <td id="banana"><<link "Banana">><<addclass "#banana" "yellowback">><</link>></td> <td id="orange"><<link "Orange">><<addclass "#orange" "orangeback">><</link>></td> </tr> The <<addclass>> macro uses the selector you pass to it to search the whole HTML structure of the current page to find HTML elements that match that selector. In your case you are asking it to find all td elements contained within the current page which is why you are receiving the result you did. You need someway to uniquely identify the particular td element you want to effect, and one technique you can use is to assign each of the td element a unique ID then change the <<addclass>> macros to use those IDs as their selectors.
<<if $Msell==0>><<set $Mnumshare to 0>><<timed 0.2s>><<replace "#MNum">><div class="minus">$Mnumshare</div><</replace>><</timed>><</if>>