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
| double trendStrength( int b = 52, int per = 0, string sym = "" ) { | |
| if ( sym == "" ) { sym = Symbol(); } | |
| if ( b * 2 < iBars( sym, per ) ) { b = MathFloor( iBars( sym, per ) * 0.5 ); } | |
| double maDiff = iMA( sym, per, b, 0, MODE_SMA, PRICE_CLOSE, 0 ) - iMA( sym, per, b, 0, MODE_SMA, PRICE_CLOSE, b ); | |
| double strVal = maDiff / iATR( sym, per, b, 0 ); | |
| double result = strVal * MarketInfo( sym, MODE_TICKVALUE ); | |
| return ( result ); | |
| } |
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
| string VERSION = "TL BO 1.0"; | |
| extern int EXT_ATR = 300; // ATR(x) | |
| extern double EXT_ATR_INI_STOP = 0.1; // additional buffer to add beyond the initial stop | |
| extern int EXT_LOOKBACK = 3; // number of bars to find highest high/lowest low | |
| extern double EXT_RISK_MINAMT = 50; // dollar value of the minimum amount to risk per trade | |
| extern double EXT_RISK_DIVISOR = 10; // AccountBalance/X = risk per trade | |
| extern int EXT_MAX_SLIP = 10; // maximum points of slippage allowed for order 10 = 1 pip | |
| extern double EXT_ATR_TRAILSTOP = 2; // multiple for trailing the market ATR(EXT_ATR) * X |
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
| //+------------------------------------------------------------------+ | |
| //| CS Trend Line Breakout.mq4 | | |
| //| Ryan Sheehy | | |
| //| http://www.currencysecrets.com | | |
| //| Version: 3.0 | | |
| //| Released: 7 Jan 13 | | |
| //+------------------------------------------------------------------+ | |
| #property copyright "Ryan Sheehy" | |
| #property link "http://www.currencysecrets.com" |
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
| //+------------------------------------------------------------------+ | |
| //| Automated Trend Lines.mq4 | | |
| //| Ryan Sheehy, CurrencySecrets.com | | |
| //| http://www.currencysecrets.com | | |
| //+------------------------------------------------------------------+ | |
| #property copyright "Ryan Sheehy, CurrencySecrets.com" | |
| #property link "http://www.currencysecrets.com" | |
| /* | |
| * This script automates the generation and plotting of sloping trend |
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
| //+------------------------------------------------------------------+ | |
| //| My Money Management.mq4 | | |
| //| Ryan Sheehy, CurrencySecrets.com | | |
| //| http://www.currencysecrets.com | | |
| //+------------------------------------------------------------------+ | |
| #property copyright "Ryan Sheehy, CurrencySecrets.com" | |
| #property link "http://www.currencysecrets.com" | |
| //--- input parameters | |
| extern double xRiskPerTrade=1; // $ amount of risked per trade |
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
| //+------------------------------------------------------------------+ | |
| //| Simple Channel Breakout System.mq4 | |
| //| Copyright 2013, Ryan Sheehy | |
| //| http://www.currencysecrets.com | |
| //| v1.1 - errors fixed (getLots & multipleOrders) | |
| //+------------------------------------------------------------------+ | |
| #property copyright "Copyright 2013, Ryan Sheehy" | |
| #property link "http://www.currencysecrets.com" | |
| //--- input parameters |