Error message when starting systems on PRT (IBKR)

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #259279 quote
    jebus89
    Participant
    Master
    // 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"
    
    #259295 quote
    GraHal
    Participant
    Master


    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.

    obtSRaH3aO.png obtSRaH3aO.png
    #259297 quote
    GraHal
    Participant
    Master


    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!? 🙂

    eLaFsfXJVj.png eLaFsfXJVj.png
Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.

Error message when starting systems on PRT (IBKR)


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
jebus89 @jebus89 Participant
Summary

This topic contains 17 replies,
has 5 voices, and was last updated by GraHal
2 weeks, 1 day ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 03/20/2026
Status: Active
Attachments: 3 files
Logo Logo
Loading...