AC_Chaos_2
Download scriptThe Chaos 2 tool is a visual market analysis indicator designed to simplify the identification of potential trend reversals by tracking specific shifts in price momentum. Instead of cluttering your screen with complex lines or overlapping data, this script focuses on identifying "turning points" and marking them directly on your chart for easier interpretation.
How the Logic Works
The core functionality of this tool relies on comparing the current state of market momentum against its immediate past. It looks for specific patterns where the momentum begins to deviate from its previous direction, signaling a potential shift in the price flow.
1. Identifying Upward Momentum (Buy Signals) The script monitors the movement of the market to detect a "V-shaped" recovery or an upward pivot. Specifically, it looks for instances where the momentum value is higher than it was one step ago, but lower than it was two steps ago. When this specific sequence occurs, the tool interprets this as a sign of upward pressure and places a green arrow above the recent price candle.
2. Identifying Downward Momentum (Sell Signals) Conversely, the script monitors for downward pivots. It looks for moments where the momentum value is lower than it was one step ago, but higher than it was two steps ago. This suggests that the price is beginning to lose its upward strength and may be heading lower. When this pattern is detected, the tool places a red arrow below the recent price candle.
Visual Experience
- Real-time Feedback: As new candles form, the script continuously evaluates the momentum data.
- Clear Visual Cues: Rather than requiring you to interpret raw numbers, the script converts these calculations into clear visual markers (Arrows).
- Automatic Cleanup: The tool is designed to manage its own workspace, ensuring that the visual markers are handled correctly as the chart updates.
Summary for Traders
Essentially, this tool acts as a "momentum scout." It filters out the noise of standard price movement to highlight specific points where the market's direction seems to be pivoting. By using these arrows, traders can more easily identify potential entry zones or areas where the current trend might be exhausting itself and reversing.
//+------------------------------------------------------------------+
//| chaos 2.mq4 |
//| Samurai |
//| |
//+------------------------------------------------------------------+
#property copyright "Samurai"
#property link ""
#property indicator_chart_window
#property indicator_buffers 2
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectDelete("up");
ObjectDelete("down");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
if (iAC(0,0,0)>iAC(0,0,1) && iAC(0,0,2) > iAC(0,0,1))
{
ObjectCreate("up", OBJ_ARROW,0,Time[1],High[1] + 0.0002);
ObjectSet("up",OBJPROP_COLOR,Green);
ObjectSet("up",OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE);
}
if (iAC(0,0,0)<iAC(0,0,1) && iAC(0,0,2) < iAC(0,0,1))
{
ObjectCreate("down", OBJ_ARROW,0,Time[1],Low[1] - 0.0002);
ObjectSet("down",OBJPROP_ARROWCODE,SYMBOL_LEFTPRICE);
ObjectSet("down",OBJPROP_COLOR,Red);
}
//----
return(0);
}
//+------------------------------------------------------------------+
Comments