pinkkrebs
51
pinkkrebs  

ichi - channel alert combined

Hello

would someone be so kind to help me with an alert for this indi? The idea for a combination of ichi breakouts and a Fibo-Channel is from me but the original code parts are not from me (one part from ichi360, the other from a coder named Kay)...i've just combined them.

I'm already getting an arrow but i would need a popup and email alert.

Thank you

#property indicator_chart_window

#property indicator_buffers 8

#property indicator_color1 Red

#property indicator_color2 Aqua

#property indicator_color3 GreenYellow

#property indicator_color4 GreenYellow

#property indicator_color5 Red

#property indicator_color6 Aqua

#property indicator_color7 Red

#property indicator_color8 Red

extern int TenkanSen = 9;

extern int KijunSen = 26;

extern int SenkoSpan = 52;

extern color BullishTextColor = RoyalBlue;

extern color BearishTextColor = Tomato;

extern bool KumoBreakoutSignal = TRUE;

extern bool KijunSenBreakoutSignal = FALSE;

extern bool TSKSCrossoverSignal = FALSE;

extern int SignalSize = 1;

extern int ArrowDistanceInPips = 10;

extern string PERIOD = "Enter Period for the Envelops";

extern int period = 55;

extern string DisplayLocation = "X and Y coord of Display";

extern int xEnvelops = 5;

extern int yEnvelops = 20;

bool gi_unused_116 = FALSE;

bool gi_unused_120 = FALSE;

double g_ibuf_76[];

double g_ibuf_80[];

double g_ibuf_84[];

double g_ibuf_88[];

double g_ibuf_92[];

double g_ibuf_96[];

double g_ibuf_100[];

double g_ibuf_104[];

int gi_348 = 0;

double filtersignal;

double filtersignal1;

int alertsignal;

int init() {

SetIndexStyle(0, DRAW_NONE);

SetIndexBuffer(0, g_ibuf_76);

SetIndexStyle(1, DRAW_NONE);

SetIndexBuffer(1, g_ibuf_80);

SetIndexStyle(2, DRAW_LINE);

SetIndexBuffer(2, g_ibuf_84);

SetIndexStyle(3, DRAW_LINE);

SetIndexBuffer(3, g_ibuf_88);

SetIndexStyle(4, DRAW_NONE);

SetIndexBuffer(4, g_ibuf_92);

SetIndexStyle(5, DRAW_NONE);

SetIndexBuffer(5, g_ibuf_96);

SetIndexStyle(6, DRAW_LINE);

SetIndexBuffer(6, g_ibuf_100);

SetIndexStyle(7, DRAW_LINE);

SetIndexBuffer(7, g_ibuf_104);

SetIndexLabel(6, "Top 138.2");

SetIndexLabel(2, "Top 61.8");

SetIndexLabel(3, "Bottom 61.8");

SetIndexLabel(7, "Bottom 138.2");

return (0);

}

int deinit() {

ObjectsDeleteAll();

return (0);

}

int start() {

double l_ichimoku_0;

double l_ichimoku_8;

double l_ichimoku_16;

double l_ichimoku_24;

double l_ichimoku_32;

double l_ichimoku_40;

double l_ichimoku_48;

double l_ichimoku_56;

double l_ichimoku_64;

double l_ichimoku_72;

double l_ichimoku_80;

double l_ichimoku_88;

ObjectsDeleteAll(0, OBJ_ARROW);

double ld_112 = ArrowDistanceInPips / 10000;

int li_unused_120 = 1;

bool UptrendAlert3,DntrendAlert3;

int li_0 = IndicatorCounted();

if (li_0 > 0) li_0--;

int li_4 = Bars - li_0;

for (int li_8 = li_4; li_8 >= 0; li_8--) {

g_ibuf_76[li_8] = Close[li_8] + MathSin(1.94052 * (High[li_8] - Low[li_8]));

g_ibuf_80[li_8] = Close[li_8] - MathSin(1.94052 * (High[li_8] - Low[li_8]));

g_ibuf_92[li_8] = Close[li_8] + MathSin(4.33948 * (High[li_8] - Low[li_8]));

g_ibuf_96[li_8] = Close[li_8] - MathSin(4.33948 * (High[li_8] - Low[li_8]));

}

for (li_8 = li_4; li_8 >= 0; li_8--) {

g_ibuf_84[li_8] = iMAOnArray(g_ibuf_76, 0, period, 0, MODE_LWMA, li_8);

g_ibuf_88[li_8] = iMAOnArray(g_ibuf_80, 0, period, 0, MODE_LWMA, li_8);

g_ibuf_100[li_8] = iMAOnArray(g_ibuf_92, 0, period, 0, MODE_LWMA, li_8);

g_ibuf_104[li_8] = iMAOnArray(g_ibuf_96, 0, period, 0, MODE_LWMA, li_8);

}

for (int li_124 = 1; li_124 <= Bars; li_124++) {

l_ichimoku_0 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_TENKANSEN, li_124);

l_ichimoku_8 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_TENKANSEN, li_124 + 1);

l_ichimoku_16 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_TENKANSEN, li_124 + 2);

l_ichimoku_24 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_KIJUNSEN, li_124);

l_ichimoku_32 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_KIJUNSEN, li_124 + 1);

l_ichimoku_40 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_KIJUNSEN, li_124 + 2);

l_ichimoku_48 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANA, li_124);

l_ichimoku_56 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANB, li_124);

l_ichimoku_64 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANA, li_124 + 1);

l_ichimoku_72 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANB, li_124 + 1);

l_ichimoku_80 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANA, li_124 + 2);

l_ichimoku_88 = iIchimoku(NULL, 0, TenkanSen, KijunSen, SenkoSpan, MODE_SENKOUSPANB, li_124 + 2);

string Msg,Subj;

if (KumoBreakoutSignal == TRUE) {

if (iClose(NULL, 0, li_124 + 2) < l_ichimoku_80 || iClose(NULL, 0, li_124 + 2) < l_ichimoku_88) {

if (iClose(NULL, 0, li_124 + 1) < l_ichimoku_64 || iClose(NULL, 0, li_124 + 1) < l_ichimoku_72) {

if (iClose(NULL, 0, li_124) > l_ichimoku_48 && iClose(NULL, 0, li_124) > l_ichimoku_56) {

filtersignal = iClose(NULL, 0, li_124) + 0.00170;

g_ibuf_84[li_124] = iMAOnArray(g_ibuf_76, 0, period, 0, MODE_LWMA, li_124);

if (g_ibuf_84[li_124] > filtersignal) {

ObjectCreate("KumoBreakoutBullish" + li_124, OBJ_ARROW, 0, Time[li_124], Low[li_124] - ld_112);

ObjectSet("KumoBreakoutBullish" + li_124, OBJPROP_ARROWCODE, 233);

ObjectSet("KumoBreakoutBullish" + li_124, OBJPROP_WIDTH, SignalSize);

ObjectSet("KumoBreakoutBullish" + li_124, OBJPROP_COLOR, BullishTextColor);

}

}

}

}

if (iClose(NULL, 0, li_124 + 2) > l_ichimoku_80 || iClose(NULL, 0, li_124 + 2) > l_ichimoku_88) {

if (iClose(NULL, 0, li_124 + 1) > l_ichimoku_64 || iClose(NULL, 0, li_124 + 1) > l_ichimoku_72) {

if (iClose(NULL, 0, li_124) < l_ichimoku_48 && iClose(NULL, 0, li_124) < l_ichimoku_56) {

filtersignal1 = iClose(NULL, 0, li_124) - 0.00170;

g_ibuf_88[li_124] = iMAOnArray(g_ibuf_80, 0, period, 0, MODE_LWMA, li_124);

if (g_ibuf_88[li_124] < filtersignal1) {

ObjectCreate("KumoBreakoutBearish" + li_124, OBJ_ARROW, 0, Time[li_124], High[li_124] + ld_112);

ObjectSet("KumoBreakoutBearish" + li_124, OBJPROP_ARROWCODE, 234);

ObjectSet("KumoBreakoutBearish" + li_124, OBJPROP_WIDTH, SignalSize);

ObjectSet("KumoBreakoutBearish" + li_124, OBJPROP_COLOR, BearishTextColor);

}

}

}

}

}

}

return (0);

}
Mladen Rakic
207003
Mladen Rakic  

Colored moving average with alerts ...

This is a non-repainting colored multi time frame moving average indicator with alerts added. In the alerts parameters you can choose if you want the alerts issued on current (still opened) bar or previous bar, do you want a message, sound and / or email. It will alert when the slope changes to up, down or (but it will happen very, very rarely) it goes flat

PS: time frames can be entered as text, no need to remember numbers. It uses the text from the periodicity bar. So weekly is W1 (you can enter 10080, but why remembering all those numbers )

ZANKY
49
ZANKY  

Is there anyone who can modify this indicator so the lines are shorter

not all away across the chart?

thanks in advance.

something like this would be great.

Mladen Rakic
207003
Mladen Rakic  

...

Try this one out

It is limited at exactly the periods it is using for finding highest high and lowest low in calculation

ZANKY:
Is there anyone who can modify this indicator so the lines are shorter

not all away across the chart?

thanks in advance.

something like this would be great.

Files:
Mladen Rakic
207003
Mladen Rakic  

Double ZigZag with no repaint alerts

This is a DoubleZigZag indicator with alerts added when bot ZigZags are aligned (orange dot on the chart). Since it is a ZigZag, it alerts the time when the zig zags were aligned and waits for another alignment. FractalZigZag indicator is needed by the double zig zag in order to work

secretcode
898
secretcode  
mladen:
This is a DoubleZigZag indicator with alerts added when bot ZigZags are aligned (orange dot on the chart). Since it is a ZigZag, it alerts the time when the zig zags were aligned and waits for another alignment. FractalZigZag indicator is needed by the double zig zag in order to work

Strange ?!!

The indicators working nice with GCI demo but not working with Broco demo and both are the same build 419

okoli
108
okoli  

Double ZigZag with no repaint alerts

Please, I downloaded the indicators but they could not appear on my chart after relaunching MT4.

I use FxPro Platform. Could some one help me if I am getting something

Mladen Rakic
207003
Mladen Rakic  

...

Double zig zag need FractalZigZagNoRepaint (it must be that exact name, if it is changed double zig zag will not work) Check if for some reason the name of the fractal zig zag is maybe changed. Also, is you do not have the default metatrader ZigZag, copy this one (the attached) into indicators folder since the fractal zig zag is calling this one

okoli:
Please, I downloaded the indicators but they could not appear on my chart after relaunching MT4. I use FxPro Platform. Could some one help me if I am getting something
Files:
zigzag.mq4 7 kb
pavaka
4411
pavaka  

...

???Can those 2 indicators be color coded???...One color - up, another color - down...couldn't find it anywhere...or they already exist like that?...

Files:
Mladen Rakic
207003
Mladen Rakic  

...

Did you see this rsx : https://www.forex-tsd.com/forum/debates-discussions/116-something-interesting-please-post-here/page161#comment_579009 . Just use Close for price in order to get same values (that version is shifted by 50 in order to make it possible to have histo)

As of SSA normalized : since it recalculates I don't think that color change would be of use (people tend to react on color changes as signals, and in case of normalized SSA it would be dangerous)

Pava:
???Can those 2 indicators be color coded???...One color - up, another color - down...couldn't find it anywhere...or they already exist like that?...