diff --git a/Prop Account Tracker.xlsx b/Prop Account Tracker.xlsx index ccf6ac7..c3754dc 100644 Binary files a/Prop Account Tracker.xlsx and b/Prop Account Tracker.xlsx differ diff --git a/pine/bracket_morning_panel.pine b/pine/bracket_morning_panel.pine index e5a8c7f..8bf723a 100644 --- a/pine/bracket_morning_panel.pine +++ b/pine/bracket_morning_panel.pine @@ -407,95 +407,106 @@ acctEnd = input.bool(false, "Evaluations: 1:1 stop when still needed <= endgame a1Name = input.string("", "Name", group = "Account 1", inline = "1a", display = display.none) a1Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 1", inline = "1a", display = display.none) a1Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 1", inline = "1a", display = display.none) +a1Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 1", inline = "1b", display = display.none) a1Bal = input.float(0, "Balance", step = 1, group = "Account 1", inline = "1b", display = display.none) a1Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 1", inline = "1b", display = display.none) -a1Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 1", inline = "1b", display = display.none) -a1C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 1", inline = "1c", display = display.none) +a1Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 1", inline = "1b", display = display.none) +a1C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 1", inline = "1c", display = display.none) a1Best = input.float(0, "Best day this cycle", step = 1, group = "Account 1", inline = "1c", display = display.none) a1Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 1", inline = "1c", display = display.none) a2Name = input.string("", "Name", group = "Account 2", inline = "2a", display = display.none) a2Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 2", inline = "2a", display = display.none) a2Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 2", inline = "2a", display = display.none) +a2Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 2", inline = "2b", display = display.none) a2Bal = input.float(0, "Balance", step = 1, group = "Account 2", inline = "2b", display = display.none) a2Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 2", inline = "2b", display = display.none) -a2Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 2", inline = "2b", display = display.none) -a2C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 2", inline = "2c", display = display.none) +a2Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 2", inline = "2b", display = display.none) +a2C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 2", inline = "2c", display = display.none) a2Best = input.float(0, "Best day this cycle", step = 1, group = "Account 2", inline = "2c", display = display.none) a2Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 2", inline = "2c", display = display.none) a3Name = input.string("", "Name", group = "Account 3", inline = "3a", display = display.none) a3Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 3", inline = "3a", display = display.none) a3Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 3", inline = "3a", display = display.none) +a3Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 3", inline = "3b", display = display.none) a3Bal = input.float(0, "Balance", step = 1, group = "Account 3", inline = "3b", display = display.none) a3Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 3", inline = "3b", display = display.none) -a3Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 3", inline = "3b", display = display.none) -a3C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 3", inline = "3c", display = display.none) +a3Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 3", inline = "3b", display = display.none) +a3C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 3", inline = "3c", display = display.none) a3Best = input.float(0, "Best day this cycle", step = 1, group = "Account 3", inline = "3c", display = display.none) a3Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 3", inline = "3c", display = display.none) a4Name = input.string("", "Name", group = "Account 4", inline = "4a", display = display.none) a4Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 4", inline = "4a", display = display.none) a4Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 4", inline = "4a", display = display.none) +a4Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 4", inline = "4b", display = display.none) a4Bal = input.float(0, "Balance", step = 1, group = "Account 4", inline = "4b", display = display.none) a4Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 4", inline = "4b", display = display.none) -a4Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 4", inline = "4b", display = display.none) -a4C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 4", inline = "4c", display = display.none) +a4Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 4", inline = "4b", display = display.none) +a4C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 4", inline = "4c", display = display.none) a4Best = input.float(0, "Best day this cycle", step = 1, group = "Account 4", inline = "4c", display = display.none) a4Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 4", inline = "4c", display = display.none) a5Name = input.string("", "Name", group = "Account 5", inline = "5a", display = display.none) a5Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 5", inline = "5a", display = display.none) a5Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 5", inline = "5a", display = display.none) +a5Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 5", inline = "5b", display = display.none) a5Bal = input.float(0, "Balance", step = 1, group = "Account 5", inline = "5b", display = display.none) a5Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 5", inline = "5b", display = display.none) -a5Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 5", inline = "5b", display = display.none) -a5C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 5", inline = "5c", display = display.none) +a5Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 5", inline = "5b", display = display.none) +a5C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 5", inline = "5c", display = display.none) a5Best = input.float(0, "Best day this cycle", step = 1, group = "Account 5", inline = "5c", display = display.none) a5Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 5", inline = "5c", display = display.none) a6Name = input.string("", "Name", group = "Account 6", inline = "6a", display = display.none) a6Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 6", inline = "6a", display = display.none) a6Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 6", inline = "6a", display = display.none) +a6Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 6", inline = "6b", display = display.none) a6Bal = input.float(0, "Balance", step = 1, group = "Account 6", inline = "6b", display = display.none) a6Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 6", inline = "6b", display = display.none) -a6Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 6", inline = "6b", display = display.none) -a6C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 6", inline = "6c", display = display.none) +a6Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 6", inline = "6b", display = display.none) +a6C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 6", inline = "6c", display = display.none) a6Best = input.float(0, "Best day this cycle", step = 1, group = "Account 6", inline = "6c", display = display.none) a6Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 6", inline = "6c", display = display.none) a7Name = input.string("", "Name", group = "Account 7", inline = "7a", display = display.none) a7Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 7", inline = "7a", display = display.none) a7Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 7", inline = "7a", display = display.none) +a7Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 7", inline = "7b", display = display.none) a7Bal = input.float(0, "Balance", step = 1, group = "Account 7", inline = "7b", display = display.none) a7Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 7", inline = "7b", display = display.none) -a7Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 7", inline = "7b", display = display.none) -a7C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 7", inline = "7c", display = display.none) +a7Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 7", inline = "7b", display = display.none) +a7C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 7", inline = "7c", display = display.none) a7Best = input.float(0, "Best day this cycle", step = 1, group = "Account 7", inline = "7c", display = display.none) a7Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 7", inline = "7c", display = display.none) a8Name = input.string("", "Name", group = "Account 8", inline = "8a", display = display.none) a8Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 8", inline = "8a", display = display.none) a8Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 8", inline = "8a", display = display.none) +a8Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 8", inline = "8b", display = display.none) a8Bal = input.float(0, "Balance", step = 1, group = "Account 8", inline = "8b", display = display.none) a8Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 8", inline = "8b", display = display.none) -a8Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 8", inline = "8b", display = display.none) -a8C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 8", inline = "8c", display = display.none) +a8Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 8", inline = "8b", display = display.none) +a8C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 8", inline = "8c", display = display.none) a8Best = input.float(0, "Best day this cycle", step = 1, group = "Account 8", inline = "8c", display = display.none) a8Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 8", inline = "8c", display = display.none) a9Name = input.string("", "Name", group = "Account 9", inline = "9a", display = display.none) a9Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 9", inline = "9a", display = display.none) a9Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 9", inline = "9a", display = display.none) +a9Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 9", inline = "9b", display = display.none) a9Bal = input.float(0, "Balance", step = 1, group = "Account 9", inline = "9b", display = display.none) a9Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 9", inline = "9b", display = display.none) -a9Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 9", inline = "9b", display = display.none) -a9C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 9", inline = "9c", display = display.none) +a9Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 9", inline = "9b", display = display.none) +a9C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 9", inline = "9c", display = display.none) a9Best = input.float(0, "Best day this cycle", step = 1, group = "Account 9", inline = "9c", display = display.none) a9Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 9", inline = "9c", display = display.none) a10Name = input.string("", "Name", group = "Account 10", inline = "10a", display = display.none) a10Mkt = input.string("Off", "Market", options = ["Off", "Gold", "Crude", "NQ", "Nat gas"], group = "Account 10", inline = "10a", display = display.none) a10Stg = input.string("Eval", "Stage", options = ["Eval", "Funded"], group = "Account 10", inline = "10a", display = display.none) +a10Size = input.string("50K", "Size", options = ["50K", "25K"], group = "Account 10", inline = "10b", display = display.none) a10Bal = input.float(0, "Balance", step = 1, group = "Account 10", inline = "10b", display = display.none) a10Flr = input.float(0, "Drawdown limit", step = 1, group = "Account 10", inline = "10b", display = display.none) -a10Tgt = input.float(53000, "Target (eval)", step = 1, group = "Account 10", inline = "10b", display = display.none) -a10C0 = input.float(50000, "Funded: cycle start balance", step = 1, group = "Account 10", inline = "10c", display = display.none) +a10Tgt = input.float(0, "Target (eval, 0 = standard)", step = 1, group = "Account 10", inline = "10b", display = display.none) +a10C0 = input.float(0, "Funded: cycle start (0 = start balance)", step = 1, group = "Account 10", inline = "10c", display = display.none) a10Best = input.float(0, "Best day this cycle", step = 1, group = "Account 10", inline = "10c", display = display.none) a10Pay = input.int(1, "Next payout #", minval = 1, maxval = 5, group = "Account 10", inline = "10c", display = display.none) aName = array.from(a1Name, a2Name, a3Name, a4Name, a5Name, a6Name, a7Name, a8Name, a9Name, a10Name) aMkt = array.from(a1Mkt, a2Mkt, a3Mkt, a4Mkt, a5Mkt, a6Mkt, a7Mkt, a8Mkt, a9Mkt, a10Mkt) +aSize = array.from(a1Size, a2Size, a3Size, a4Size, a5Size, a6Size, a7Size, a8Size, a9Size, a10Size) aStg = array.from(a1Stg, a2Stg, a3Stg, a4Stg, a5Stg, a6Stg, a7Stg, a8Stg, a9Stg, a10Stg) aBal = array.from(a1Bal, a2Bal, a3Bal, a4Bal, a5Bal, a6Bal, a7Bal, a8Bal, a9Bal, a10Bal) aFlr = array.from(a1Flr, a2Flr, a3Flr, a4Flr, a5Flr, a6Flr, a7Flr, a8Flr, a9Flr, a10Flr) @@ -533,16 +544,19 @@ if barstate.islast and showAcct flr = aFlr.get(k) room = bal - flr isF = aStg.get(k) == "Funded" + is25 = aSize.get(k) == "25K" + S0 = is25 ? 25000.0 : 50000.0 + DDa = is25 ? 1000.0 : 2000.0 float tgtU = na bool eligible = false string note = "" if not isF - tgtU := aTgt.get(k) - bal + tgtU := (aTgt.get(k) > 0 ? aTgt.get(k) : S0 + (is25 ? 1250.0 : 3000.0)) - bal else - W = aPay.get(k) == 1 ? 2000.0 : 2500.0 - c0 = aC0.get(k) + W = aPay.get(k) == 1 ? (is25 ? 1000.0 : 2000.0) : (is25 ? 1500.0 : 2500.0) + c0 = aC0.get(k) > 0 ? aC0.get(k) : S0 bst = aBest.get(k) - thrB = 52100.0 + W + thrB = S0 + DDa + 100.0 + W needF = math.max(thrB - c0, 500.0, bst / 0.4) rem = c0 + needF - bal cyc = bal - c0 @@ -558,8 +572,8 @@ if barstate.islast and showAcct note := "enter balance and drawdown limit" else if room < 50 note := "no room left: account is done" - else if not isF and room > 2000.5 - note := "room over $2,000: check balance / limit" + else if not isF and room > DDa + 0.5 + note := "room over " + usd(DDa) + ": check balance / limit" else if not isF and tgtU <= 0 note := "target reached: passed" else if isF and eligible @@ -612,7 +626,7 @@ if barstate.islast and showAcct table.cell(t, 0, r, str.tostring(k + 1), text_color = color.white, text_size = size.small) table.cell(t, 1, r, aName.get(k), text_color = color.white, text_size = size.small) table.cell(t, 2, r, mk, text_color = color.white, text_size = size.small) - table.cell(t, 3, r, aStg.get(k), text_color = isF ? color.aqua : color.white, text_size = size.small) + table.cell(t, 3, r, aSize.get(k) + " " + aStg.get(k), text_color = isF ? color.aqua : color.white, text_size = size.small) table.cell(t, 4, r, bad ? "-" : sideText(side), text_color = bad ? color.gray : sideColor(side), text_size = size.small) table.cell(t, 5, r, bad ? "-" : ent, text_color = txt, text_size = size.small) table.cell(t, 6, r, bad ? "-" : usd(rU), text_color = bad ? color.gray : color.red, text_size = size.small)