$watchlist->set_variable('watchlist_id', $watchId);
    if ($watchlist->load()) {
        $low = floatval($_POST['low_' . $watchId]);
        $high = floatval($_POST['high_' . $watchId]);
        $oldLow = floatval($watchlist->get_variable('watchlist_low'));
        $oldHigh = floatval($watchlist->get_variable('watchlist_high'));
        if ($oldLow != $low || $oldHigh != $high) {
            $className = adminControlWatchlist::GetWatchClassName($tradeType);
            $updateWatch = new $className();
            $updateWatch->UpdateWatch($watchlist, $low, $high);
        }
    }
    $counter++;
}
$watchlists = array();
$watchlists = ticker_group_info::retrieveAdminWatchlistArray($tradeType);
?>


<!DOCTYPE html>
<html>
<head>
<title>BioBounce.com</title>

<meta name = "keywords" content = "biotech, stock, market, swing trading, stock trading" />
<meta name = "description" content = "" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1 user-scalable=no">

<link href="css/biobounce.css" rel="stylesheet" type="text/css">
<link href="css/biomembers.css" rel="stylesheet" type="text/css">
<link href="css/bioadmin.css" rel="stylesheet" type="text/css">
				<thead>
					<tr class="table_head">
						<th class="bottom lowpriority"> <span class="hastooltip" title="Zone Date">Orig Date</span><div class="none">The date that this stock fell into the zone.</div></th>
						<th class="bottom lowpriority">Abandon Date</th>
						<th class="bottom"> <span class="hastooltip" title="Ticker Symbol">Symbol </span><div class="none">The ticker symbol of this BioBounce holding.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Trade Type">Type</span><div class="none">The type of trade for this BioBounce holding.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Original Price">Orig Price</span><div class="none">The best possible price point that this stock was purchased.</div> </th>
						<th class="bottom"> <span class="hastooltip" title="Abandon Price">Sell Price</span><div class="none">The price that this stock was sold/covered.</div></th>
						<th class="bottom"> <span class="hastooltip" title="BioBounce Return">Return</span><div class="none">The current return percent of this stock based on the original price.</div> </th>
						<th class="bottom"> <span class="hastooltip" title="Valuation">Valuation</span><div class="none">The amount a $5000 investment returned.</div> </th>
					</tr>
				</thead>
				<tbody id="ChartTableBody"></tbody>
				
<?php 
$abandon = ticker_group_info::retrieveAllAbandonArray();
$tablestate = "row_odd";
$prevMonth = "";
$allMonths = array();
$sumMonths = array();
$tablesByMonth = array();
$first = true;
foreach ($abandon as $holding) {
    $hid = $holding['holdings_id'];
    $tradeType = $holding['holdings_tradetype'];
    $counter = 0;
    $sum = 0;
    if ($holding['holdings_t1_marked'] == 1) {
        $counter++;
        $sum += $holding['holdings_t1'];
    }
Exemple #3
0
			<table id="holdingsTable" class="holdingstable" cellspacing="0" cellpadding ="0" border="0">
				<thead>
					<tr class="table_head">
						<th class="bottom lowpriority"> <span class="hastooltip" title="Entry Date">Entry Date</span><div class="none">The date that this stock climbed above the entry price.</div></th>
						<th class="bottom lowpriority">Abandon Date</th>
						<th class="bottom"> <span class="hastooltip" title="Ticker Symbol">Symbol </span><div class="none">The ticker symbol of this BioBounce holding.</div></th>
						<th class="bottom"> <span class="hastooltip" title="First Target">Target 1 </span><div class="none">The First BioBounce Target. Buy to cover 33% of your holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Second Target">Target 2 </span><div class="none">The Second BioBounce Target. Buy to cover 33% of your original holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Third Target">Target 3 </span><div class="none">The Third BioBounce Target. Buy to cover the rest of your original holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Abandon Price">Abandon Price</span><div class="none">The end of day price limit. Buy to cover the next day if this stock CLOSES below this price.</div><div class="note">(cover short if closes above)</div></th>
						<th class="bottom"> <span class="hastooltip" title="Entry Price">Entry Price</span><div class="none">The price when this stock was shorted.</div> </th>
						<th class="bottom"> <span class="hastooltip" title="BioBounce Return">Return</span><div class="none">The current return percent of this stock based on the original price.</div> </th>
					</tr>
				</thead>
<?php 
$abandon = ticker_group_info::retrieveAbandonArray(SHORT_TRADE);
$tablestate = "row_odd";
$prevMonth = "";
$allMonths = array();
$first = true;
foreach ($abandon as $holding) {
    $hid = $holding['holdings_id'];
    $counter = 0;
    $sum = 0;
    if ($holding['holdings_t1_marked'] == 1) {
        $counter++;
        $sum += $holding['holdings_t1'];
    }
    if ($holding['holdings_t2_marked'] == 1) {
        $counter++;
        $sum += $holding['holdings_t2'];
<?php

require_once 'php/member.pagebase.php';
$watchlist = ticker_group_info::retrieveWatchlistArray($tradeTypes);
$holdings = ticker_group_info::retrieveHoldingsArray($tradeTypes);
$abandon = ticker_group_info::retrieveAbandonArray($tradeTypes);
?>


<div class = "newwrap small_bottom_margin">
	<div class="section n1 <?php 
echo $login->showClass;
?>
">
		<div id="maintitle">
			Watchlist
		</div >
		<div class="tablegroup">
			<table id="watchTable" class="watchtable" cellspacing="0" cellpadding ="0" border="0">
				<thead>
					<tr class="table_head">
						<td class="new"></td>
						<th class="bottom left"><span class="hastooltip" title="Ticker Symbol">Symbol</span><div class="none">The ticker symbol of a BioBounce stock to watch.</div></th>
						<th class="bottom"><span class="hastooltip" title="Last Price">Last</span><div class="none">The most recent sell price.</div></th>
						<th class="bottom"><span class="hastooltip" title="Percent Change">Today</span><div class="none">The percent change of this ticker today.</div></th>
						<th class="bottom"><span class="hastooltip" title="Entry Price">Entry Price</span><div class="none"><?php 
echo $typeStrings->entryWatchDesc;
?>
</div></th>
						<th class="bottom"><span class="hastooltip" title="Percent From Entry">% from Entry</span><div class="none">The percentage difference from the last sell price and the entry price.</div></th>
						<th class="bottom"><span class="hastooltip" title="First Target">Target</span><div class="none"><?php 
Exemple #5
0
			<table id="holdingsTable" class="holdingstable" cellspacing="0" cellpadding ="0" border="0">
				<thead>
					<tr class="table_head">
						<th class="bottom lowpriority"> <span class="hastooltip" title="Entry Date">Entry Date</span><div class="none">The date when this stock was purchased.</div></th>
						<th class="bottom lowpriority">Abandon Date</th>
						<th class="bottom"> <span class="hastooltip" title="Ticker Symbol">Symbol </span><div class="none">The ticker symbol of this BioBounce holding.</div></th>
						<th class="bottom"> <span class="hastooltip" title="First Target">Target 1 </span><div class="none">The First BioBounce Target. Sell 33% of your holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Second Target">Target 2 </span><div class="none">The Second BioBounce Target. Sell 33% of your original holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Third Target">Target 3 </span><div class="none">The Third BioBounce Target. Sell all of your original holdings at this price.</div></th>
						<th class="bottom"> <span class="hastooltip" title="Abandon Price">Abandon Price</span><div class="none">The  end of day price limit. Sell the next day if this stock CLOSES below this price.</div><div class="note">(sell if closes below)</div></th>
						<th class="bottom"> <span class="hastooltip" title="Entry Price">Entry Price</span><div class="none">The price when this stock was purchased.</div> </th>
						<th class="bottom"> <span class="hastooltip" title="BioBounce Return">Return</span><div class="none">The current return percent of this stock based on the original price.</div> </th>
					</tr>
				</thead>
<?php 
$abandon = ticker_group_info::retrieveAbandonArray(REVERSAL_TRADE);
$tablestate = "row_odd";
$prevMonth = "";
$allMonths = array();
$first = true;
foreach ($abandon as $holding) {
    $hid = $holding['holdings_id'];
    $counter = 0;
    $sum = 0;
    if ($holding['holdings_t1_marked'] == 1) {
        $counter++;
        $sum += $holding['holdings_t1'];
    }
    if ($holding['holdings_t2_marked'] == 1) {
        $counter++;
        $sum += $holding['holdings_t2'];
//Include the PS_Pagination class
require_once 'php/db_interface/autoload.php';
$login = new login(true);
/// REMOVE SOMETHING
if (isset($_GET['delete_hid'])) {
    $holdings = new holdings();
    $holdings->set_variable('holdings_id', $_GET['delete_hid']);
    if ($holdings->load()) {
        $holdings->delete();
    }
}
// Load the information from the database
$tradeTypesToUse = array(LONG_TRADE, PULLBACK_TRADE, SHORT_TRADE, BACKDRAFT_TRADE, BREAKOUT_TRADE, BREAKDOWN_TRADE);
$holdings = array();
foreach ($tradeTypesToUse as $tradeType) {
    $holdings[$tradeType] = ticker_group_info::retrieveHoldingsArray($tradeType);
}
?>


<!DOCTYPE html>
<html>
<head>
<title>BioBounce.com</title>

<meta name = "keywords" content = "biotech, stock, market, swing trading, stock trading" />
<meta name = "description" content = "" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1 user-scalable=no">

<link href="css/biobounce.css" rel="stylesheet" type="text/css">
<link href="css/biomembers.css" rel="stylesheet" type="text/css">
<?php

require_once 'php/member.pagebase.php';
$watchlist = ticker_group_info::retrieveWatchlistArray($tradeTypes);
$holdings = ticker_group_info::retrieveHoldingsArray($tradeTypes);
$abandons = ticker_group_info::retrieveAbandonArray($tradeTypes);
$hasHoldingFirstElement = true;
// in cases where there are multiple tradetypes, check to see if
// we are using the first trade type, which will be deprecated
// once all of the current holdings are the updated tradeType
if (is_array($tradeTypes)) {
    $hasHoldingFirstElement = ticker_group_info::HoldingThisTradeType($tradeTypes[0]);
}
?>


<div class = "newwrap small_bottom_margin">
	<div class="section n1 <?php 
echo $login->showClass;
?>
">
		<div id="maintitle">
			Watchlist
		</div >
		<div class="tablegroup">
			<table id="watchTable" class="watchtable" cellspacing="0" cellpadding ="0" border="0">
				<thead>
					<tr class="table_head">
						<td class="new"></td>
						<th class="bottom left"><span class="hastooltip" title="Ticker Symbol">Symbol</span><div class="none">The ticker symbol of a BioBounce stock to watch.</div></th>
						<th class="bottom"><span class="hastooltip" title="Last Price">Last</span><div class="none">The most recent sell price.</div></th>
Exemple #8
0
					<tr class="table_head1">
						<th colspan="6" class="center"> Currently Held Positions</th>
					</tr>
					<tr class="table_head2">
						<th class="left"> Symbol </th>
						<th class="center" > Type </th>
						<th class="center"> Last </th>
						<th class="center"> Orig Price </th>
						<th class="center"> Orig Date </th>
						<th class="center"> Return </th>
						<th></th>
					</tr>
				</thead>
				<tbody>
<?php 
$holdings = ticker_group_info::retrieveHoldingsArray(LONG_TRADE, true);
$tablestate = "row_odd";
$borderTop = "borderTop";
foreach ($holdings as $holding) {
    $tt = intval($holding['holdings_tradetype']);
    //if ($tt == BREAKDOWN_TRADE) continue;
    $last = $holding['last'];
    $ttStr = GetTradeTypeConstantNameSingular($tt);
    $tablerowtype = strtolower($ttStr);
    $start = $holding['holdings_orig_price'];
    $return_percent = holdings::GetReturnPercent($tt, $last, $start, 0, 0, 0, 0, 0, 0);
    echo '<tr class="table_row2 ' . $tablestate . ' ' . $tablerowtype . '">';
    echo '<td class="left borderLeft ' . $borderTop . '">' . strtoupper($holding['ticker_symbol']) . '</td>';
    echo '<td class="center ' . $borderTop . '">' . $ttStr . '</td>';
    echo '<td class="center ' . $borderTop . '">' . number_format($holding['last'], 2) . '</td>';
    echo '<td class="center ' . $borderTop . '">' . number_format($start, 2) . '</td>';
//Include the PS_Pagination class
require_once 'php/db_interface/autoload.php';
$login = new login(true);
/// REMOVE SOMETHING
if (isset($_GET['delete_hid'])) {
    $holdings = new holdings();
    $holdings->set_variable('holdings_id', $_GET['delete_hid']);
    if ($holdings->load()) {
        $holdings->delete();
    }
}
// Load the information from the database
$tradeTypesToUse = array(LONG_TRADE, PULLBACK_TRADE, SHORT_TRADE, BACKDRAFT_TRADE, BREAKOUT_TRADE, BREAKDOWN_TRADE);
$holdings = array();
foreach ($tradeTypesToUse as $tradeType) {
    $holdings[$tradeType] = ticker_group_info::retrieveAbandonArray($tradeType);
}
?>


<!DOCTYPE html>
<html>
<head>
<title>BioBounce.com</title>

<meta name = "keywords" content = "biotech, stock, market, swing trading, stock trading" />
<meta name = "description" content = "" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1 user-scalable=no">

<link href="css/biobounce.css" rel="stylesheet" type="text/css">
<link href="css/biomembers.css" rel="stylesheet" type="text/css">