// User input
fundingPerContract = 4 // adjust based on broker
// Detect overnight holding (position carried across midnight)
overnight = ONMARKET AND Date <> Date[1]
// Funding cost calculation
fundingCost = 0
IF overnight THEN
fundingCost = fundingPerContract * ABS(CountOfPosition)
ENDIF
// Optional: accumulate total funding
ONCE totalFunding = 0
IF overnight THEN
totalFunding = totalFunding + fundingCost
ENDIF
// === PLOTS ===
// Scale factor for visualization
scaleFactor = 50
GRAPH -(fundingCost * scaleFactor) COLOURED(255,0,0) AS "Funding Cost (scaled)"
GRAPH -totalFunding COLOURED(255,165,0) AS "Total Funding"
jebus89 wrote: btw… holding Long positions that are deep red over the weekend feels like the dumbest thing you can do.. paying money to loose money really does feel like throwing money out of the window
A judgement can be made as to probability of the market rising or falling over the weekend (but Friday’s probability could decrease (or even increase) by events over weekend).
It looks like it might work for me this weekend … got up this morning and ‘Weekend Wall Street’ has been bobbing between + 150 and +200 points .. see attached.
For info: 27 points are needed to clear 3 days overnight fees per DFB Long Contract.
GraHal wrote: probability of the market rising or falling over the weekend
Probability based around what the market was doing in the last couple of hours before close on Friday … see attached (on 5 min TF).
I might ‘crash and burn’ and DJI might open at -200 on Sunday night, let’s see!? 🙂