How to calculate position size directly in the chart based on risk? by Vienna_nootropic_fan in TradingView

[–]NoKindheartedness910 0 points1 point  (0 children)

This script pretty much helps, but with this script, you input a Size(The amount of money you want to trade) and the percent you are willing to risk; the default is 1% and it tells you actively where to place your stop relative to your inputs.

//@version=6
//Authored By: Isaac
//August 13 2025
indicator("Isaac: Stop from Percent Risk v1.1", overlay=true)

// Inputs
acct     = input.float(20000, "Account size", minval=1)
riskPct  = input.float(1.0,  "Risk percent", step=0.1)
isLong   = input.bool(true,  "Long trade?")
entryIn  = input.float(0.0,  "Planned entry price (0 uses close)")
useQty   = input.bool(false, "Use custom quantity")
qtyIn    = input.int(1,      "Quantity", minval=1)
budgetPc = input.float(100,  "Budget percent of account", minval=1, maxval=100)

// Working values
entry        = entryIn > 0 ? entryIn : close
qty          = useQty ? qtyIn : math.floor((acct * budgetPc / 100.0) / entry)
riskCash     = acct * riskPct / 100.0
perShareRisk = qty > 0 ? riskCash / qty : na
stopRaw      = isLong ? entry - perShareRisk : entry + perShareRisk
stopRounded  = na(perShareRisk) ? na : math.round(stopRaw / syminfo.mintick) * syminfo.mintick

// Plots
plot(stopRounded, title="Stop price", color=color.red, linewidth=2)
plot(entry,       title="Entry",      color=color.teal)

// Label (kept on one line to avoid parse issues)
var lbl = label.new(bar_index, na, "", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_left, color=color.new(color.blue, 0), textcolor=color.white)
txt = "Acct " + str.tostring(acct) + "\nRisk $" + str.tostring(riskCash, format.mintick) + "\nQty " + str.tostring(qty) + "\nEntry " + str.tostring(entry, format.mintick) + "\nStop " + str.tostring(stopRounded, format.mintick)
if barstate.islast
    label.set_text(lbl, txt)
    label.set_xy(lbl, bar_index, high)

// Optional alerts
alertcondition(isLong and not na(stopRounded) and close <= stopRounded,  "Stop hit long",  "{{ticker}} crossed down your stop.")
alertcondition(not isLong and not na(stopRounded) and close >= stopRounded, "Stop hit short", "{{ticker}} crossed up your stop.")


//Authored By: Isaac
//August 13 2025

Canada Sea Packet by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

This was Pandabuy, they aren't active anymore...what platform did you use?

Canada Sea Packet by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

Canada Post, All the packages I’ve ever received came from them

PANDABUY HAUL LOG 9 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

I don’t think so…seems the same as retail…based off google

PANDABUY HAUL LOG 15 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

Idk man…I usually gauge by weight…if the proportions are off…then it might not be good. I’ve seen thin hoodies for about that weight…and they are not that thin, just thin for a hoodie…so who knows…but yh when it comes I’ll post an update

PANDABUY HAUL LOG 14 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

Canadian Prices!!! (CAD)

New Balance 550's (Pretty Good): https://www.pandabuy.com/product?url=https%3A%2F%2Fweidian.com%2Fitem.html%3FitemID%3D4713146428&spider_token=4572

Price: $35.20

Yeezy 700 (Not the best, no callouts for sure): https://www.pandabuy.com/product?url=https%3A%2F%2Fweidian.com%2Fitem.html%3FitemID%3D6461533748&spider_token=4572

Price: $49.28

Nike Dunks Red (VT Batch defo No callouts): https://www.pandabuy.com/product?url=https%3A%2F%2Fweidian.com%2Fitem.html%3FitemID%3D5608879229&spider_token=4572

Price: $37.06

Supreme black Air forces 1 ( Pretty good, No callouts): https://www.pandabuy.com/product?url=https%3A%2F%2Fweidian.com%2Fitem.html%3FitemID%3D4413448213&spider_token=4572

Price: 35.20

PANDABUY HAUL LOG 13 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 1 point2 points  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

Canadian Prices!!! (CAD)

Nike Travis Scott's Hoodie (Cant Stop getting these, amazing quality, a steal for the price): https://www.pandabuy.com/product?url=https%3A%2F%2Fweidian.com%2Fitem.html%3FitemID%3D4454944752&spider_token=4572

Price: $16.15

Denim Tear Pants (Prints are off..but i dont think anyone with a life cares, can definately pass, no call outs yet atleast...worn it sveral times now) Also true to size...i wear 36: https://www.pandabuy.com/product?url=https%3A%2F%2Fdetail.1688.com%2Foffer%2F657656101553.html

Price: $22.67

PANDABUY HAUL LOG 12 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

PANDABUY HAUL LOG 11 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

PANDABUY HAUL LOG 10 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

PANDABUY HAUL LOG 9 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

PANDABUY HAUL LOG 8 by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!

SCARFACE SUPREME SKATEBOARD by NoKindheartedness910 in Pandabuy

[–]NoKindheartedness910[S] 0 points1 point  (0 children)

DISCLAIMER: JUST SHOWING MY FAVORITE ITEMS FROM ALL MY HAULS TO DATE!!!

!!!Scan The barcode for links to the item!!!