Author: Samurai
AC_Chaos_2
Indicators Used
Bill Williams Accelerator/Decelerator oscillator
0 Views
0 Downloads
0 Favorites
AC_Chaos_2
//+------------------------------------------------------------------+
//|                                                      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

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---