//+------------------------------------------------------------------+ //| RSIOMA_pt_v1.mq4 | //| Kalenzo | //| http://www.fxservice.eu | //+------------------------------------------------------------------+ #property copyright "Kalenzo" #property link "http://www.fxservice.eu" #property indicator_buffers 2 #property indicator_color1 Aqua #property indicator_color2 DeepPink #property indicator_width1 2 #property indicator_width2 2 extern string Timeframe ="0"; //Current TF = 0 extern string TimeFrames_Periods = "M1;M5;M15;M30;H1;H4;D1;W1;MN"; extern int RSIOMA = 8;//14 extern int RSIOMA_MODE = MODE_EMA; extern int RSIOMA_PRICE = PRICE_CLOSE; extern int Ma_RSIOMA = 34;//21 extern int Ma_RSIOMA_MODE = MODE_EMA; extern double BuyTrigger = 20.00; extern double SellTrigger = 80.00; color BuyTriggerColor = Magenta; color SellTriggerColor = DodgerBlue; extern double MainTrendLong = 70.00; extern double MainTrendShort = 30.00; color MainTrendLongColor = LimeGreen;//Green color MainTrendShortColor = Red; extern double MajorTrend = 50; color marsiomaXupSigColor = Aqua; //DeepSkyBlue color marsiomaXdnSigColor = DeepPink; //Crimson extern int BarsToCount = 500; extern string note_Choose_TimeFrames = "TF as in MT4 Periodicity bar:"; extern string as_Periods = "(M1;M5;M15;M30;H1;H4;D1;W1;MN; or:)"; extern string or_Minutes = "(1,5,15,30,60,240,1440,10080,43200)"; extern string CurrentTF_0 = "Current TF = 0 (Zero)"; double su[],sd[]; #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexBuffer(0,su); SetIndexBuffer(1,sd); SetIndexStyle(0,DRAW_ARROW); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(0,SYMBOL_ARROWUP); SetIndexArrow(1,SYMBOL_ARROWDOWN); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- for(int i=0; i<BarsToCount; i++) { double au = iCustom(Symbol(),0,"RSIOMA_v4-Lines",Timeframe,TimeFrames_Periods,RSIOMA,RSIOMA_MODE,RSIOMA_PRICE,Ma_RSIOMA,Ma_RSIOMA_MODE,BuyTrigger,SellTrigger,BuyTriggerColor, SellTriggerColor,MainTrendLong,MainTrendShort,MainTrendLongColor,MainTrendShortColor,MajorTrend,marsiomaXupSigColor,marsiomaXdnSigColor,BarsToCount,6,i); double ad = iCustom(Symbol(),0,"RSIOMA_v4-Lines",Timeframe,TimeFrames_Periods,RSIOMA,RSIOMA_MODE,RSIOMA_PRICE,Ma_RSIOMA,Ma_RSIOMA_MODE,BuyTrigger,SellTrigger,BuyTriggerColor, SellTriggerColor,MainTrendLong,MainTrendShort,MainTrendLongColor,MainTrendShortColor,MajorTrend,marsiomaXupSigColor,marsiomaXdnSigColor,BarsToCount,7,i); if(au==110) su[i] = Low[i]-10*Point; else su[i] = 0; if(ad==110) sd[i] = High[i]+10*Point; else sd[i] = 0; } //---- return(0); } //+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Series array that contains the lowest prices of each bar
Series array that contains the highest prices of each bar
Indicator Curves created:
Implements a curve of type DRAW_ARROW
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
Other Features: