1MINSCALP_v1

Download script
1MINSCALP_v1

This tool is designed to assist traders by identifying specific trend reversal points on a price chart. It functions as a visual signaling system that monitors fluctuations in market momentum and price boundaries to highlight potential entry or exit opportunities.

How the Logic Works

The script operates by analyzing data from a secondary technical indicator known as "Trend Envelopes." Instead of looking at simple price movements, it observes how these envelopes behave over time. The logic follows these specific steps:

1. Trend Monitoring The tool constantly scans historical and current price bars to track two distinct upper and lower boundaries (the "Envelopes"). These boundaries represent the expected range of the market trend based on previous volatility.

2. Detecting Breakthroughs The core intelligence of the script lies in its ability to detect a "cross-over" event. It compares the current state of these boundaries against their previous positions:

  • Support Detection: It looks for moments when the lower boundary drops significantly below a specific numerical threshold that was previously held. When this downward break occurs, the script identifies it as a potential signal.
  • Resistance Detection: Similarly, it monitors the upper boundary. If the upper limit falls below the established threshold from its previous position, it flags a corresponding signal.

3. Visual Signaling When these specific conditions are met, the tool translates the data into clear visual cues directly on your trading chart:

  • Buy Signals: When the lower boundary break is detected, the script places a lime-colored arrow slightly below the lowest price of that candle.
  • Sell Signals: When the upper boundary break is detected, it places a red-colored arrow slightly above the highest price of that candle.

Summary for the User

Essentially, this script acts as an automated "scout." It watches the "Trend Envelopes" for you and alerts you whenever the market trend appears to be breaking through its established limits. By highlighting these points with colored arrows, it helps you quickly spot potential shifts in market direction without having to manually interpret complex moving averages or trend lines.

Miscellaneous
Implements a curve of type %1
9 Views
0 Downloads
0 Favorites
1MINSCALP_v1
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------------------------------------+
//| ADX Crossing.mq4 
//| Amir
//+------------------------------------------------------------------+
#property  copyright "Author - Amir"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 Red

//---- input parameters
extern int timeframe=15;
extern int CountBars=5000;



double TEStopUPb4, TEStopDNb4, TEStopUP, TEStopDN;

//---- buffers
double val1[];
double val2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   string short_name;
//---- indicator line
   IndicatorBuffers(2);
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,108);
   SetIndexStyle(1,DRAW_ARROW);
   SetIndexArrow(1,108);
   SetIndexBuffer(0,val1);
   SetIndexBuffer(1,val2);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| AltrTrend_Signal_v2_2                                            |
//+------------------------------------------------------------------+
int start()
  {   
   if (CountBars>=Bars) CountBars=Bars;
   SetIndexDrawBegin(0,Bars-CountBars);
   SetIndexDrawBegin(1,Bars-CountBars);
   int i,shift,counted_bars=IndicatorCounted();


   //---- check for possible errors
   if(counted_bars<0) return(-1);

   //---- initial zero
   if(counted_bars<1)
     {
      for(i=1;i<=CountBars;i++) val1[CountBars-i]=0.0;
      for(i=1;i<=CountBars;i++) val2[CountBars-i]=0.0;
     } 

for (shift = CountBars; shift>=0; shift--) 
{ 

 TEStopUPb4=iCustom(Symbol(),0,"#MTF_TrendEnvelopes",15,0,shift+2);
 TEStopDNb4=iCustom(Symbol(),0,"#MTF_TrendEnvelopes",15,1,shift+2);
 TEStopUP=  iCustom(Symbol(),0,"#MTF_TrendEnvelopes",15,0,shift+1);
 TEStopDN=  iCustom(Symbol(),0,"#MTF_TrendEnvelopes",15,1,shift+1);
Comment(TEStopUP,"   ", TEStopDN);

    if (TEStopUP < 20000  && TEStopUPb4 >20000) 
	 
{
	val1[shift]=Low[shift]-5*Point;
}
	  if (TEStopDN <20000 && TEStopDNb4 >20000) 
{
	val2[shift]=High[shift]+5*Point;
}


}
   return(0);
  }
//+------------------------------------------------------------------+

Comments