Skip to content

Instantly share code, notes, and snippets.

View tomas-rampas's full-sized avatar
🔎
Learning

Tomas Rampas tomas-rampas

🔎
Learning
  • Prague, Czech Republic
  • 02:17 (UTC +01:00)
View GitHub Profile

Magic/Hyperlambda: A Critical Technical Assessment for Enterprise Adoption

Magic/Hyperlambda is a technically innovative but commercially marginal .NET-based low-code platform that presents unacceptable enterprise risk. While it offers genuine technical novelty through its homoiconic DSL and rapid CRUD generation, the platform suffers from severe vendor lock-in, a non-existent talent market (zero job postings globally), single-maintainer dependency, unverified performance claims, and no enterprise compliance certifications. The "200-400x faster" marketing claim compares against deprecated Microsoft Workflow Foundation technology—the platform's own creator admits Hyperlambda is "arguably the slowest programming language in the world." With only 674 GitHub stars versus 28,000+ for mature alternatives like Hasura, no analyst coverage, and the creator stating "I am the only software developer actively using it on Earth," Magic represents a high-risk technical bet suitable only for prototypes or internal to

High-Probability Intraday R² Strategies: Trading Correlations in Real-Time

The hidden mathematical relationships that professional day traders exploit

If you've been day trading forex or CFDs for any length of time, you know the frustration: you analyze a setup, enter with confidence, and then the market does something completely random that stops you out.

The problem isn't your technical analysis. It's that you're trading in isolation.

While you're staring at a single EUR/USD chart, institutional traders are watching relationships. They're not asking "will EUR/USD go up?" They're asking "EUR/USD just rallied 30 pips, but the Dollar Index barely moved—what's wrong with this picture?"

The 7 Most Reliable Correlation Trades in Forex and Futures Markets

Finding predictable relationships in an unpredictable world

If you've spent any time trading forex or futures, you've probably heard about correlation strategies. EUR/USD and the S&P 500 move together, right? Gold and stocks are inversely correlated, aren't they?

Well... sometimes.

The uncomfortable truth is that most correlation trades that retail traders attempt are built on shifting sand. Correlations that work beautifully for six months suddenly break down overnight when central bank policies diverge or geopolitical events shake markets.

//+------------------------------------------------------------------+
//| ATR_Position_Sizing.mq5 |
//| Equal Risk Allocation Based on ATR |
//+------------------------------------------------------------------+
#property copyright "2025"
#property version "1.02"
#property indicator_chart_window
#property indicator_plots 0
// Input parameters

Claude Code Sub-Agent Delegation Setup

1. Create the Plan Agent (Opus)

Create file: ~/.claude/agents/plan-agent.md

---
name: plan-agent
description: Use proactively for high-level planning, architecture decisions, project strategy, and complex problem decomposition. Specialist for strategic thinking and system design using advanced reasoning capabilities.
@tomas-rampas
tomas-rampas / coverage.json
Last active May 5, 2025 18:46
Rust Code Coverage
{"label":"Coverage","message":"57%","schemaVersion":1,"color":"f44336","namedLogo":"rust"}
<#
.SYNOPSIS
Transfers data from small tables (5MB or less) between databases using dbatools.
.DESCRIPTION
This script uses dbatools to copy data from small tables (defined as 5MB or less)
from a source database to a destination database. It identifies small tables based
on their size, handles dependencies, and provides detailed logging.
.PARAMETER SourceServer
# ..\Export-CompleteDatabase-Async.ps1 -ServerInstance "YourServer" -DatabaseNames "DB1","DB2","DB3" -OutputPath "C:\DatabaseScripts" -MaxConcurrentJobs 3
# The script handles system objects by default (with the -IncludeSystemObjects switch to include them if needed)
# and provides comprehensive coverage of all SQL Server database objects.
# Parameters for the SQL Server connection and output location
param (
[string]$ServerInstance = "YourServerName",
[string[]]$DatabaseNames = @("DB1", "DB2"), # Provide database names to script
[string]$OutputPath = "C:\DatabaseScripts", # Where to save the scripts
@tomas-rampas
tomas-rampas / Get-CompassListOfSessions.ps1
Last active October 26, 2024 14:41
Gets List of CompassFx classes per month and year all all for given year
# Define the user agent string
$UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
# Define the list of all months
$allMonths = @("january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december")
function Get-CompassWebPage {
param (
[Parameter(Mandatory = $true)]
[string]$Uri,
@tomas-rampas
tomas-rampas / iqfeed_hist.py
Last active September 16, 2023 14:32
IQFeed Historical data downloader
import socket
# https://ws1.dtn.com/IQ/Guide/
def read_historical_data_socket(sock, recv_buffer=4096):
"""
Read the information from the socket, in a buffered
fashion, receiving only 4096 bytes at a time.