This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var | |
| hasVolume : Boolean; | |
| hasBody : Boolean; | |
| isUpBar : Boolean; | |
| ExtRSI : float; | |
| ExtRSIOverbought, ExtRSIOverbought, ExtRSIOversold : boolean; | |
| ExtStochastic, ExtStochasticSMA : float; | |
| ExtStochasticOverbought, ExtStochasticOversold : boolean; | |
| ExtStochasticCrossedAbove, ExtStochasticCrossedBelow : boolean; | |
| begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //+------------------------------------------------------------------+ | |
| //| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var | |
| reference : float; | |
| touchedMME9 : Boolean; | |
| touchedMMA20 : Boolean; | |
| hasVolume : Boolean; | |
| hasBody : Boolean; | |
| isUpBar : Boolean; | |
| mustPlotRange : Boolean; | |
| begin | |
| reference := MediaExp(20,TrueRange); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 \ |
NewerOlder