AC_Chaos_21
Download scriptThis tool is designed as a visual market navigator for the MetaTrader platform, providing clear, real-time signals by identifying specific patterns in price momentum. Instead of cluttering your screen with complex lines or moving averages, it focuses on highlighting key turning points where the market's "flow" shifts direction.
How the Logic Works
The script analyzes a specialized momentum value (the AC indicator) to determine how the market is currently moving relative to its recent history. It looks for specific structural pivots:
- Buy Signals (Green Arrows): The tool identifies a situation where the current momentum value has dipped below its previous value but then begins to recover, creating a "V" shape or a local bottom. When this shift occurs, the script places a green arrow above the price candle to signal a potential upward trend or recovery phase.
- Sell Signals (Red Arrows): Conversely, the tool monitors for a momentum peak where the value rises and then begins to drop. When it detects this "mountain" shape in the momentum data, it places a red arrow below the price candle to highlight a potential downward move or price cooling.
Key Features for the User
- Visual Clarity: The script automatically manages its own icons. It is designed to show only the most relevant signal at any given time; for instance, if a new sell signal appears, it removes the previous buy signal to keep your chart clean and easy to read.
- Precision Placement: The arrows are automatically offset slightly above or below the price candles. This ensures they are clearly visible without overlapping with the actual price bars, allowing you to see the signals instantly during active trading.
- Simplified Decision Making: By filtering out the "noise" of constant price fluctuations and focusing only on these specific momentum pivots, the tool helps traders quickly identify where a trend might be 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("up1");
ObjectDelete("down1");
//----
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("up1", OBJ_ARROW,0,Time[1],High[1] + 0.0002);
ObjectSet("up1",OBJPROP_COLOR,Green);
ObjectSet("up1",OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE);
ObjectDelete("down1");
}
if (iAC(0,0,0)<iAC(0,0,1) && iAC(0,0,2) < iAC(0,0,1))
{
ObjectCreate("down1", OBJ_ARROW,0,Time[1],Low[1] - 0.0002);
ObjectSet("down1",OBJPROP_ARROWCODE,SYMBOL_LEFTPRICE);
ObjectSet("down1",OBJPROP_COLOR,Red);
ObjectDelete("up1");
}
//----
return(0);
}
//+------------------------------------------------------------------+
Comments