RSIOMA_v4 Arrows

Download script
Author: Kalenzo
RSIOMA_v4 Arrows

This technical indicator is designed to provide traders with visual signals by analyzing market momentum and trend direction across multiple timeframes simultaneously. It acts as a sophisticated filtering system that identifies specific "entry points" based on pre-defined mathematical thresholds.

Core Functionality

The script operates by pulling data from an underlying analytical engine (RSIOMA). Instead of just looking at the current price movement, it evaluates several key factors:

  • Momentum Thresholds: It monitors specific price action levels to identify when a trend is becoming overextended or reaching a significant turning point.
  • Trend Identification: The logic differentiates between "Major Trends" and "Main Trends." This allows the indicator to distinguish between a temporary price fluctuation and a sustained move in a specific direction.
  • Multi-Timeframe Context: A key feature of this script is its ability to reference multiple periods (ranging from 1-minute charts up to monthly views). This ensures that a signal on your current screen aligns with the broader market context.

How Signals are Generated

The indicator translates complex mathematical calculations into two clear visual markers on your trading chart:

  • Buy Signals (Upward Arrows): When the underlying logic detects that price momentum is moving into a favorable zone—specifically meeting conditions related to "Buy Triggers" and confirmed trend alignment—it places an upward arrow below the candle.
  • Sell Signals (Downward Arrows): Conversely, when the data suggests the market is entering a bearish phase or hitting a "Sell Trigger" threshold, it places a downward arrow above the candle.

Summary for the User

Think of this script as a sophisticated "filter." It takes a large amount of data regarding price history and various timeframes, processes it through a series of momentum rules, and summarizes that information into simple visual cues. Instead of forcing you to manually monitor multiple charts and levels, the script alerts you by placing arrows on your current chart when its internal criteria for a potential trade are met.

Miscellaneous
Implements a curve of type %1
8 Views
0 Downloads
0 Favorites
RSIOMA_v4 Arrows
//+------------------------------------------------------------------+
//|                                                 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);
  }
//+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comments