Skip to content
All templates
Pipely icon

Pipely

Forex position sizing calculator with R:R, margin, pip value and a monthly P&L calendar

iOS AppsSwiftUI + SwiftDataforex calculatorposition size calculatortradingswiftui
$29

Pipely is a complete forex trading calculator source template for iOS 17+, built with SwiftUI and SwiftData. Set your account currency, balance, leverage, margin call and stop out levels, pick an instrument from 5 categories, enter a risk percentage and entry price - and one tap produces lot size, R:R ratio, SL/TP prices, margin required, potential loss/profit, pip value, pips to SL/TP, margin call level and stop out level. Trades save to a history tab, and a monthly P&L calendar colors each day green or red with totals and win/loss counts.

Highlights

  • Full position sizing math: lot size, R:R ratio, SL/TP prices, margin required, potential loss/profit
  • Pip value, pips to SL/TP, margin call level and stop out level in the same results card
  • Account currencies: USD, EUR, GBP, JPY, AED
  • 5 instrument categories with per-pair pip size and contract size
  • Leverage options from 1 up to 3000
  • Inline validation: Calculate enables only with valid balance, risk % and entry price
  • Save trades to SwiftData with a success haptic; history with swipe-to-delete, edit mode and empty state
  • Monthly P&L calendar: green/red day colors, monthly total, win/loss counts, month navigation
  • Day entry sheet with amount, optional % for the day, journal note and delete
  • Tap-anywhere keyboard dismissal and a polished dark aqua/pink theme

Technology

  • SwiftUI + SwiftData, iOS 17+
  • UINotificationFeedbackGenerator haptics
  • No third-party dependencies, no network calls - 100% offline and the app collects no data

Requirements

  • Mac with macOS 14.0+ and Xcode 15 or newer
  • iOS 17.0+ device or simulator
  • Apple Developer account only for device testing and App Store submission

What You Get

  • Complete Xcode project source: calculator, history, calendar, models and theme
  • One-file re-skin: AppTheme.swift holds every color, with a before/after example in the docs
  • Editable currencies, instruments and leverage - simple Swift enums, pickers update automatically
  • documentation.html: setup, bundle ID, renaming, icon, re-skin, customization and App Store submission checklist
  • README.md with a quick-start and project overview
  • 5 app screenshots
  • Full rights to rebrand, reskin, extend and publish on the App Store

Please note: this is a source code template, not a compiled app. A Mac with Xcode 15+ is required to build it. The app performs math only - no trading advice. If you have questions, use the contact form on the site, I usually reply within 24 hours.

Related templates