//+------------------------------------------------------------------+ //| R2_RSI_AnyTimeFrame_Optimzable.mq4 | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| | //| RSI-R2.mq4 - Ver 1.0 @ 03/22/2007 by Bluto | //| | //+------------------------------------------------------------------+ #property copyright "Bluto" #property link "None" // this version is fully Optimizable and will run on any time frame extern double LotSize=0.10; extern int Slippage=3; extern double StopLoss=0; extern double TakeProfit=70; extern double RiskPercent=2.0; extern bool UseMoneyMgmt=false; extern int MaTrend_Period = 200; extern int RSI_Period = 2; extern int BuyWhenRsiBelow = 65; extern int SellWhenRsiAbove = 35; extern double RSI_Overbought_Value = 75.0; extern double RSI_Oversold_Value = 25.0; extern double SarStep = 0.02; extern double SarMax = 0.20; int MagicNumber=49; int ticket; int OpenBuyOrders=0; int OpenSellOrders=0; int BuyCount=0,SellCount=0; int i; bool Buy_Mode=false, Sell_Mode=false; double RSI_Day_1=0, RSI_Day_2=0, RSI_Day_3=0, SMA_Day3=0; double MM_MinLotSize=0; double MM_MaxLotSize=0; double MM_LotStep=0; double MM_Decimals=0; double MM_OrderLotSize=0; int MM_AcctLeverage=0; int MM_CurrencyLotSize=0;