Skip to content

Instantly share code, notes, and snippets.

View danielnegri's full-sized avatar
Coffee first.

Daniel Negri danielnegri

Coffee first.
View GitHub Profile
@danielnegri
danielnegri / .bash_prompt
Created February 2, 2026 23:03
Bash Prompt
#!/bin/bash
# Shell prompt based on the Solarized Dark theme.
# Screenshot: http://i.imgur.com/EkEtphC.png
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.
# vim: set filetype=sh :
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
@danielnegri
danielnegri / PowerCandle.psf
Created September 9, 2024 15:09
PowerCandle - Indicador (Profit)
var
hasVolume : Boolean;
hasBody : Boolean;
isUpBar : Boolean;
ExtRSI : float;
ExtRSIOverbought, ExtRSIOverbought, ExtRSIOversold : boolean;
ExtStochastic, ExtStochasticSMA : float;
ExtStochasticOverbought, ExtStochasticOversold : boolean;
ExtStochasticCrossedAbove, ExtStochasticCrossedBelow : boolean;
begin
@danielnegri
danielnegri / PowerVWAP.cs
Created August 27, 2024 18:34
NinjaTrader 8 - Power VWAP Indicator
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
@danielnegri
danielnegri / PowerCandle.cs
Last active November 20, 2024 21:19
NinjaTrader 8 - Power Candle Indicator
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
@danielnegri
danielnegri / PowerVolume.cs
Created August 24, 2024 04:12
NinjaTrader 8 - Power Volume Indicator
//
// Copyright (C) 2023, NinjaTrader LLC <www.ninjatrader.com>.
// NinjaTrader reserves the right to modify or overwrite this NinjaScript component with each release.
//
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@danielnegri
danielnegri / PowerStochastics.cs
Last active August 26, 2024 17:23
NinjaTrader 8 - Power Stochastics Indicator
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
@danielnegri
danielnegri / WINFUTStoch.mq5
Created June 17, 2024 00:10
Hanging Man Hammer Stochastic Expert
//+------------------------------------------------------------------+
//| WINFUTStoch.mq5 |
//| Copyright 2024, Daniel Negri. |
//| https://www.danielnegri.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2024, Daniel Negri."
#property link "https://www.danielnegri.com"
#property version "1.00"
#include <Trade\Trade.mqh>
@danielnegri
danielnegri / CandleForca.src
Last active March 25, 2024 22:08
Candle Forca (Nelogica Profit)
var
reference : float;
touchedMME9 : Boolean;
touchedMMA20 : Boolean;
hasVolume : Boolean;
hasBody : Boolean;
isUpBar : Boolean;
mustPlotRange : Boolean;
begin
reference := MediaExp(20,TrueRange);
@danielnegri
danielnegri / swing.tpl
Created October 13, 2023 20:22
MetaTrader5 - Swing Blue - Chart Template
<chart>
id=128968168864101562
symbol=PETR4
description=PETROBRAS PN N2
period_type=1
period_size=1
digits=5
tick_size=0.000000
position_time=1612936800
scale_fix=0
@danielnegri
danielnegri / makefile-autocomplete.bash
Created October 2, 2023 18:37
Makefile Autocomplete
# Makefile Auto-complete
function _makefile_targets {
local curr_arg;
local targets;
# Find makefile targets available in the current directory
targets=''
if [[ -e "$(pwd)/Makefile" ]]; then
targets=$( \
grep -oE '^[a-zA-Z0-9_-]+:' Makefile \