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 / 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 \
@danielnegri
danielnegri / qemu_ubuntu.md
Created November 8, 2022 01:48 — forked from Jatapiaro/qemu_ubuntu.md
How to install QEMU on OSX and install an Ubuntu VM

Install QEMU on OSX

QEMU requires brew in OSX, so we need to install brew first.

Installing Brew

To install brew we need to have the developer tools enabled in our system. In order to install those tools, we have two options.

  1. Download Xcode form the AppStore
  2. In your terminal run the following command: xcode-select --install