From 6ab66bdd7b7f92ca848febaa35266ee371f26a81 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 30 Aug 2021 09:16:11 -0400 Subject: trad: moved options to top of list view --- app/trading/templates/trading/list.html | 132 +++++++++++++++++--------------- 1 file changed, 69 insertions(+), 63 deletions(-) (limited to 'app/trading/templates') diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index f8957bd..d5dd07d 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -1,39 +1,55 @@ {% extends 'trading/base.html' %} {% block content %} -

Stock Trades

+ +

Options Trades

+ + - + - - - + + + + + - {% for object in open_trades %} - + {% for object in options_trades %} + + - + - - - + + + + + + {%if object.status == 2%}{% endif %} {% endfor %} - {% for object in watch_trades %} - +
Symbol Open DateDetailsDelta Entry Price Stop TargetSharesContract $ Total Invested$ at Risk$ Goal% GoalRisk per$ Trade Risk% Trade Risk% Portfolio RiskProfit Goal Risk/Reward Price Calc Notes
{{object.symbol}} {{object.date|date:"m-d-Y"}} +
+ {{object.number_contracts}} + {{object.expiration_date|date:"M j"}} + {{object.days_until_expiration}} + {{object.get_call_put_display|first}} + ${{object.strike_price}} +
+
{{object.delta}} ${{object.entry_price}} ${{object.stop_price}} ${{object.target_price}}{{object.shares}}${{object.contract_price}} ${{object.amount_invested}}${{object.risk_dollars}}${{object.goal_dollars}}{{object.goal_percent}}${{object.risk_per_contract}}${{object.risk_total}}{{object.trade_risk_percent}}%{{object.portfolio_risk_percent}}%${{object.profit_goal}} {{object.risk_reward}} - + {% if object.notes %} @@ -42,10 +58,39 @@ {% endif %} + +
+ + + + + + +

Stock Trades

+ + + + + + + + + + + + + + + + + + + {% for object in open_trades %} + @@ -67,61 +112,23 @@ {% endif %} - {% endfor %} -
SymbolOpen DateEntry PriceStopTargetSharesTotal Invested$ at Risk$ Goal% GoalRisk/RewardPrice CalcNotes
{{object.symbol}} {{object.date|date:"m-d-Y"}} ${{object.entry_price}} - -
-

Options Trades

- - - - - - - - - - - - - - - - - - - - - - - {% for object in options_trades %} - + {% for object in watch_trades %} + - - + - - - - - + + + - {%if object.status == 2%}{% endif %} + {% endfor %}
SymbolOpen DateDetailsDeltaEntry PriceStopTargetContract $Total InvestedRisk per$ Trade Risk% Trade Risk% Portfolio RiskProfit GoalRisk/RewardPrice CalcNotes
{{object.symbol}} {{object.date|date:"m-d-Y"}} -
- {{object.number_contracts}} - {{object.expiration_date|date:"M j"}} - {{object.days_until_expiration}} - {{object.get_call_put_display|first}} - ${{object.strike_price}} -
-
{{object.delta}} ${{object.entry_price}} ${{object.stop_price}} ${{object.target_price}}${{object.contract_price}}{{object.shares}} ${{object.amount_invested}}${{object.risk_per_contract}}${{object.risk_total}}{{object.trade_risk_percent}}%{{object.portfolio_risk_percent}}%${{object.profit_goal}}${{object.risk_dollars}}${{object.goal_dollars}}{{object.goal_percent}} {{object.risk_reward}} - + {% if object.notes %} @@ -130,16 +137,15 @@ {% endif %} - - + +
-

Trade History

-- cgit v1.2.3-70-g09d2