#property copyright "Copyright © 2006, Hendrick." #define MAGICMA 20050610 extern double Lots = 0.1; extern double MaximumRisk = 0.01; extern double DecreaseFactor = 3; extern bool PrefSettings = true; extern bool MM = true; extern bool AccountIsMicro = false; extern int TakeProfit = 20; extern int StopLoss = 50; extern int TrailingStop = 0; extern bool UseSignal1 = true; extern bool UseSignal2 = true; extern bool UseSignal3 = true; extern bool UseSignal4 = true; extern bool UseSignal5 = true; extern int SMAPeriod = 2; extern int SMA2Bars = 18; extern double Percent = 0.0032; extern int EnvelopePeriod = 2; extern int OSMAFast = 0; extern int OSMASlow = 0; extern double OSMASignal = 0; extern int TradeFrom1 = 0; extern int TradeUntil1 = 0; extern int TradeFrom2 = 0; extern int TradeUntil2 = 0; extern int TradeFrom3 = 0; extern int TradeUntil3 = 0; extern int TradeFrom4 = 0; extern int TradeUntil4 = 0; extern int Fast_Period = 0; extern int Fast_Price = PRICE_OPEN; extern int Slow_Period = 15; extern int Slow_Price = PRICE_OPEN; extern double DVBuySell = 0; extern double DVStayOut = 0; //==============PREFERRED SETTINGS============================ if(PrefSettings == true) { if((Symbol() == "USDJPY") || (Symbol() == "USDJPYm")) { SMAPeriod = 2; SMA2Bars = 18; Percent = 0.0032; TakeProfit = 20; //42 StopLoss = 50; //84 TrailingStop = 0; OSMAFast = 5; OSMASlow = 22; OSMASignal = 2; EnvelopePeriod = 2; Fast_Period = 25; Slow_Period = 15; DVBuySell = 0.0029; DVStayOut = 0.024; } if((Symbol() == "EURJPY") || (Symbol() == "EURJPYm")) { SMAPeriod = 18; SMA2Bars = 10; Percent = 0.018; TakeProfit = 50; StopLoss = 25; TrailingStop = 0; OSMAFast = 5; OSMASlow = 30; OSMASignal = 5; EnvelopePeriod = 6; Fast_Period = 30; Slow_Period = 16; DVBuySell = 0.0052; DVStayOut = 0.027; } if((Symbol() == "GBPJPY") || (Symbol() == "GBPJPYm")) { SMAPeriod = 8; SMA2Bars = 12; Percent = 0.0072; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 5; OSMASlow = 36; OSMASignal = 10; EnvelopePeriod = 2; Fast_Period = 17; Slow_Period = 28; DVBuySell = 0.0034; DVStayOut = 0.063; } if((Symbol() == "CHFJPY") || (Symbol() == "CHFJPYm")) { SMAPeriod = 30; SMA2Bars = 4; Percent = 0.012; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 7; OSMASlow = 45; OSMASignal = 8; EnvelopePeriod = 20; Fast_Period = 52; Slow_Period = 29; DVBuySell = 0.0016; DVStayOut = 0.034; } if((Symbol() == "EURUSD") || (Symbol() == "EURUSDm")) { SMAPeriod = 11; SMA2Bars = 50; Percent = 0.001; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 8; OSMASlow = 40; OSMASignal = 10; EnvelopePeriod = 20; Fast_Period = 4; Slow_Period = 15; DVBuySell = 0.0003; DVStayOut = 0.006; } if((Symbol() == "GBPUSD") || (Symbol() == "GBPUSDm")) { SMAPeriod = 3; SMA2Bars = 14; Percent = 0.0023; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 23; OSMASlow = 17; OSMASignal = 15; EnvelopePeriod = 6; Fast_Period = 25; Slow_Period = 37; DVBuySell = 0.00042; DVStayOut = 0.05; } if((Symbol() == "USDCHF") || (Symbol() == "USDCHFm")) { SMAPeriod = 5; SMA2Bars = 9; Percent = 0.0056; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 5; OSMASlow = 12; OSMASignal = 11; EnvelopePeriod = 10; Fast_Period = 5; Slow_Period = 20; DVBuySell = 0.00022; DVStayOut = 0.0015; } if((Symbol() == "GBPCHF") || (Symbol() == "GBPCHFm")) { SMAPeriod = 10; SMA2Bars = 20; Percent = 0.034; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 9; OSMASlow = 30; OSMASignal = 4; EnvelopePeriod = 7; Fast_Period = 25; Slow_Period = 50; DVBuySell = 0.001; DVStayOut = 0.03; } if((Symbol() == "AUDUSD") || (Symbol() == "AUDUSDm")) { SMAPeriod = 12; SMA2Bars = 2; Percent = 0.008; TakeProfit = 24; StopLoss = 46; TrailingStop = 0; OSMAFast = 10; OSMASlow = 40; OSMASignal = 2; EnvelopePeriod = 4; Fast_Period = 30; Slow_Period = 5; DVBuySell = 0.0004; DVStayOut = 0.0005; } if((Symbol() == "EURCHF") || (Symbol() == "EURCHFm")) { SMAPeriod = 19; SMA2Bars = 3; Percent = 0.008; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 3; OSMASlow = 30; OSMASignal = 3; EnvelopePeriod = 4; Fast_Period = 35; Slow_Period = 80; DVBuySell = 0.0004; DVStayOut = 0.0005; } if((Symbol() == "EURAUD") || (Symbol() == "EURAUDm")) { SMAPeriod = 2; SMA2Bars = 6; Percent = 0.004; TakeProfit = 42; StopLoss = 84; TrailingStop = 0; OSMAFast = 4; OSMASlow = 45; OSMASignal = 10; EnvelopePeriod = 4; Fast_Period = 20; Slow_Period = 36; DVBuySell = 0.0005; DVStayOut = 0.0009; } if((Symbol() == "USDCAD") || (Symbol() == "USDCADm")) { SMAPeriod = 2; SMA2Bars = 2; Percent = 0.0036; TakeProfit = 60; StopLoss = 65; TrailingStop = 0; OSMAFast = 3; OSMASlow = 10; OSMASignal = 3; EnvelopePeriod = 4; Fast_Period = 5; Slow_Period = 10; DVBuySell = 0.0005; DVStayOut = 0.001; } } //============== END PREFERRED SETTINGS============================