Chaos Explorer (my indicator for patterns) - page 5

AleksandrNevskiy
151
AleksandrNevskiy  

this is the exact code of indicator

//+------------------------------------------------------------------+

//| XAOS PATTERNS EXPLORER |

//| bY Edward Samokhvalov |

//| (c) 9.4.2007 |

//+------------------------------------------------------------------+

#property copyright "Edward Samokhvalov"

#property indicator_separate_window

#property indicator_buffers 6

#property indicator_color1 Gray

#property indicator_color2 Yellow

#property indicator_color3 Silver

#property indicator_color4 Gold

#property indicator_color5 Tomato

#property indicator_color6 LimeGreen

#property indicator_level1 1.0010 // I believe playing around with these constants

#property indicator_level2 0.999 // can make patterns appear more vivid as well as unvivid.

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

extern int Separation=1;

extern int AlarmOn = false;

extern int SHOW_SIGNALS = true;

double buff2[];

double buff3[];

double buff4[];

double buff1[];

double buy[];

double sell[];

int init()

{

//---- indicators

//----

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,buff1);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,buff2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,buff3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,buff4);

SetIndexStyle(4,DRAW_ARROW,0,4);

SetIndexBuffer(4,buy);

SetIndexArrow(4,119);

SetIndexStyle(5,DRAW_ARROW,0,4);

SetIndexBuffer(5,sell);

SetIndexArrow(5,119);

IndicatorShortName(" "+Separation+" ");

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int counted_bars=IndicatorCounted();

if(Bars<=Separation) return(0);

int pos = 0;

int barsToCount = Bars - counted_bars;

//---- initial zero

if(counted_bars<1)

for(int i=1;i<=Separation;i++)

{

buff1=0.0;

buff2=0.0;

buff3=0.0;

buff4=0.0;

buy=0.0;

sell=0.0;

}

//----

pos=Bars-Separation-1;

if(counted_bars>=Separation) pos=Bars-counted_bars-1;

while(pos>=0)

{

buff1[pos]=Close[pos+Separation]/Close[pos];

buff2[pos]=Open[pos+Separation]/Open[pos];

buff3[pos]=High[pos+Separation]/High[pos];

buff4[pos]=Low[pos+Separation]/Low[pos];

if (SHOW_SIGNALS==true)

{

// SELL SIGNAL

if (buff1[pos] > indicator_level1 )

{

buy[pos]=buff1[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": BUY!)",pos);

}

else if (buff2[pos] > indicator_level1)

{

buy[pos]=buff2[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": BUY!)",pos);

}

else if ( buff3[pos] > indicator_level1 )

{

buy[pos]= buff3[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": BUY!)",pos);

}

else if (buff4[pos] > indicator_level1)

{

buy[pos]=buff4[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": BUY!)",pos);

}

// BUY SIGNAL

else if (buff1[pos] < indicator_level2 )

{

sell[pos]=buff1[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": SELL!)",pos);

}

else if (buff2[pos] < indicator_level2)

{

sell[pos]=buff2[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": SELL!)",pos);

}

else if ( buff3[pos] < indicator_level2 )

{

sell[pos]= buff3[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": SELL!)",pos);

}

else if (buff4[pos] < indicator_level2)

{

sell[pos]=buff4[pos];

sig("["+TimeToStr(CurTime())+"] " + Symbol() + ": SELL!)",pos);

}

}

pos--;

}

return(0);

}

void sig(string msg, int p)

{

if (AlarmOn==true && TimeToStr(Time[p])==TimeToStr(CurTime()) ) Alert(msg);

}

//+------------------------------------------------------------------+

just paste it inside. good luck!

jatki24300
148
jatki24300  

Thanks.

Now it works. Good work. Let get this system moving. Thanks. Jatki24300

jatki24300
148
jatki24300  

Try this.

So far the indicator has been working.

Files:
Akira
23
Akira  
jatki24300:
So far the indicator has been working.

Thanks Aleksandr and jatki

[Deleted]  

my dear...........

thank you very very much for this great indicator..........

but.........

i want to know how to use it ???!!!!

when i go(buy)or(sell)

i wish you a nice trading.......

amgd

khari123
48
khari123  

Sweet Indicator

The 15 minute chart gets choppy at times.

jatki24300
148
jatki24300  

Alert

Can any one please help me. I need to modify the alert on this indicator.

The indicator gives a alert every time a new dot is given. I would like it to only give a alert when a change in direction has accrued. So when it changes for red to green. Or green to red. Only give a alert once on change of direction. Not on every dot that is painted. Thanks to the forum for the help. Jatki24300

Files:
jatki24300
148
jatki24300  

jatki24300

Jatki24300

Files:
Perky
973
Perky  

hmmmmm lets yu play with the levels

jatki24300
148
jatki24300  

Fun

Gust playing with mt4. Dont think it can help but it looks nice. Does any one use the xaos in there trading system?

Jatki24300