#property copyright "Copyright © 2008, bluto" #property link "http://fxaw.activeboard.com/" #property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 MediumSpringGreen #property indicator_color2 Red #property indicator_color3 MediumSpringGreen #property indicator_color4 Red #property indicator_color5 MediumSpringGreen #property indicator_color6 Red extern string str_Marauder_Mode = "* Marauder Mode: 1=Std.; 2=Fast; 3=Turbo *"; extern int Marauder_Mode = 3; extern int MaxBars = 2000; extern bool Use_1_Extra_Dots_To_Confirm = FALSE; extern bool Use_2_Extra_Dots_To_Confirm = FALSE; extern int Override_Low_Timeframe = 0; extern int Override_Mid_Timeframe = 0; extern int Override_High_Timeframe = 0; extern int Override_Max_Timeframe = 0; extern bool Show_4_Dot_Method_Signals = FALSE; extern bool Show_3_Dot_Method_Signals = FALSE; extern bool Show_2_Dot_Method_Signals = FALSE; extern bool Show_1_Dot_Method_Signals = FALSE; extern bool Enable_Signal_Alerts = TRUE; extern bool Enable_Email_Alerts = FALSE; bool gi_unused_140 = FALSE; bool gi_144 = FALSE; bool gi_148 = TRUE; string gs_unused_152 = "MA_Types: 0=SMA; 1=EMA; 2=SMMA; 3=LWMA"; int gi_160 = 3; int gi_164 = 3; int gi_168 = 0; int g_color_172 = MediumSpringGreen; int g_color_176 = Red; double g_ibuf_180[]; double g_ibuf_184[]; double g_ibuf_188[]; double g_ibuf_192[]; double g_ibuf_196[]; double g_ibuf_200[]; double g_icustom_204 = 0.0; double g_icustom_212 = 0.0; double g_icustom_220 = 0.0; double g_icustom_228 = 0.0; double g_icustom_236 = 0.0; double g_icustom_244 = 0.0; double g_icustom_252 = 0.0; double g_icustom_260 = 0.0; double g_icustom_268 = 0.0; double g_icustom_276 = 0.0; double g_icustom_284 = 0.0; double g_icustom_292 = 0.0; double g_icustom_300 = 0.0; double g_icustom_308 = 0.0; double g_icustom_316 = 0.0; double g_icustom_324 = 0.0; bool gi_332 = FALSE; bool gi_336 = FALSE; bool gi_unused_340 = FALSE; bool gi_unused_344 = FALSE; bool gi_348 = FALSE; bool gi_352 = FALSE; bool gi_356 = FALSE; bool gi_360 = FALSE; int gi_364 = 0; int g_index_368 = 0; int gi_372 = 0; int gi_376 = 0; double gd_380 = 0.0; int g_datetime_388 = 0; int gi_392; int gi_396; int gi_400; int gi_404; int g_timeframe_408; string gs_412; int g_count_420 = 0; int g_count_424 = 0; int g_count_428 = 0; int g_count_432; int gi_436 = 0; int gi_440 = 0; int gi_444 = 0; int gi_448 = 0; double g_iopen_452 = 0.0; double g_iopen_460 = 0.0; double g_iopen_468 = 0.0; double g_iopen_476 = 0.0; double g_iopen_484 = 0.0; double g_iopen_492 = 0.0; double gda_500[20]; string gs_504; int g_count_512 = 0; int g_count_516 = 0; bool gi_unused_520 = TRUE; bool gi_unused_524 = FALSE; int gi_unused_528 = 0; int g_timeframe_532 = 0; int gi_unused_536 = 0; int init() { SetIndexBuffer(0, g_ibuf_180); SetIndexBuffer(1, g_ibuf_184); SetIndexBuffer(2, g_ibuf_188); SetIndexBuffer(3, g_ibuf_192); SetIndexBuffer(4, g_ibuf_196); SetIndexBuffer(5, g_ibuf_200); SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, 2, g_color_172); SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, 2, g_color_176); SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, 2, g_color_172); SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, 2, g_color_176); SetIndexStyle(4, DRAW_ARROW, STYLE_SOLID, 1, Gold); SetIndexStyle(5, DRAW_ARROW, STYLE_SOLID, 1, Gold); SetIndexArrow(0, 233); SetIndexArrow(1, 234); SetIndexArrow(2, 253); SetIndexArrow(3, 253); SetIndexArrow(4, 233); SetIndexArrow(5, 234); SetIndexEmptyValue(0, EMPTY_VALUE); SetIndexEmptyValue(1, EMPTY_VALUE); SetIndexEmptyValue(2, EMPTY_VALUE); SetIndexEmptyValue(3, EMPTY_VALUE); SetIndexEmptyValue(4, EMPTY_VALUE); SetIndexEmptyValue(5, EMPTY_VALUE); SetIndexDrawBegin(0, 0); SetIndexDrawBegin(1, 0); SetIndexDrawBegin(2, 0); SetIndexDrawBegin(3, 0); SetIndexDrawBegin(4, 0); SetIndexDrawBegin(5, 0); gd_380 = Point; if (MarketInfo(Symbol(), MODE_DIGITS) == 3.0 || MarketInfo(Symbol(), MODE_DIGITS) == 5.0) gd_380 = 10.0 * gd_380; gi_376 = MarketInfo(Symbol(), MODE_SPREAD); if (MarketInfo(Symbol(), MODE_DIGITS) == 3.0 || MarketInfo(Symbol(), MODE_DIGITS) == 5.0) gi_376 = gi_376 / 10.0; for (gi_364 = 0; gi_364 < 20; gi_364++) gda_500[gi_364] = 0; gs_412 = StringSubstr(Symbol(), 0, 6); g_timeframe_408 = Period(); g_timeframe_532 = Period(); bool li_0 = TRUE; if (Override_Low_Timeframe > 0 && Override_Mid_Timeframe > 0 && Override_High_Timeframe > 0 && Override_Max_Timeframe > 0) { if (Override_Mid_Timeframe > Override_Low_Timeframe && Override_High_Timeframe > Override_Mid_Timeframe && Override_Max_Timeframe > Override_High_Timeframe) { gi_392 = Override_Low_Timeframe; gi_396 = Override_Mid_Timeframe; gi_400 = Override_High_Timeframe; gi_404 = Override_Max_Timeframe; li_0 = FALSE; g_timeframe_408 = gi_392; } } else if (Override_Low_Timeframe > 0 && Override_Mid_Timeframe == 0 && Override_High_Timeframe == 0 && Override_Max_Timeframe == 0) g_timeframe_408 = Override_Low_Timeframe; if (li_0 == TRUE) { switch (g_timeframe_408) { case 1: gi_392 = 1; gi_396 = 5; gi_400 = 15; gi_404 = 30; break; case 5: gi_392 = 5; gi_396 = 15; gi_400 = 30; gi_404 = 60; break; case 15: gi_392 = 15; gi_396 = 30; gi_400 = 60; gi_404 = 240; break; case 30: gi_392 = 30; gi_396 = 60; gi_400 = 240; gi_404 = 1440; break; case 60: gi_392 = 60; gi_396 = 240; gi_400 = 1440; gi_404 = 10080; break; case 240: gi_392 = 240; gi_396 = 1440; gi_400 = 10080; gi_404 = 43200; break; case 1440: gi_392 = 1440; gi_396 = 10080; gi_400 = 43200; gi_404 = 43200; break; case 10080: gi_392 = 10080; gi_396 = 43200; gi_400 = 43200; gi_404 = 43200; break; case 43200: gi_392 = 43200; gi_396 = 43200; gi_400 = 43200; gi_404 = 43200; } } switch (g_timeframe_408) { case 1: gi_372 = 10; break; case 5: gi_372 = 10; break; case 15: gi_372 = 15; break; case 30: gi_372 = 20; break; case 60: gi_372 = 25; break; case 240: gi_372 = 30; break; case 1440: gi_372 = 50; break; case 10080: gi_372 = 100; break; case 43200: gi_372 = 200; } for (gi_364 = 0; gi_364 < MaxBars; gi_364++) { g_ibuf_180[gi_364] = 0; g_ibuf_184[gi_364] = 0; g_ibuf_188[gi_364] = 0; g_ibuf_192[gi_364] = 0; g_ibuf_196[gi_364] = 0; g_ibuf_200[gi_364] = 0; } return (0); } int start() { if (TimeCurrent() > D'15.02.2010 18:02') return (0); if (iTime(Symbol(), Period(), 1) != g_datetime_388) { g_datetime_388 = iTime(Symbol(), Period(), 1); g_count_516 = 0; g_count_512 = 0; for (gi_364 = 0; gi_364 < 20; gi_364++) gda_500[gi_364] = 0; g_count_420 = 0; g_count_424 = 0; g_count_428 = 0; g_count_432 = 0; gi_436 = 0; gi_440 = 0; gi_444 = 0; gi_448 = 0; g_iopen_452 = 0; g_iopen_460 = 0; g_iopen_468 = 0; g_iopen_476 = 0; g_iopen_484 = 0; g_iopen_492 = 0; if (gi_148 == TRUE) gi_168 = MaxBars; else gi_168 = TRUE; for (gi_364 = gi_168; gi_364 > 0; gi_364--) { if (gi_148 == TRUE) { g_icustom_204 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 3, gi_364); g_icustom_212 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 2, gi_364); g_icustom_220 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 1, gi_364); g_icustom_228 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 0, gi_364); g_icustom_236 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 3, gi_364 + 1); g_icustom_244 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 2, gi_364 + 1); g_icustom_252 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 1, gi_364 + 1); g_icustom_260 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 0, gi_364 + 1); g_icustom_268 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 3, gi_364 + 2); g_icustom_276 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 2, gi_364 + 2); g_icustom_284 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 1, gi_364 + 2); g_icustom_292 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 0, gi_364 + 2); g_icustom_300 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 3, gi_364 + 3); g_icustom_308 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 2, gi_364 + 3); g_icustom_316 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 1, gi_364 + 3); g_icustom_324 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 0, gi_364 + 3); } else { g_icustom_300 = g_icustom_268; g_icustom_308 = g_icustom_276; g_icustom_316 = g_icustom_284; g_icustom_324 = g_icustom_292; g_icustom_268 = g_icustom_236; g_icustom_276 = g_icustom_244; g_icustom_284 = g_icustom_252; g_icustom_292 = g_icustom_260; g_icustom_236 = g_icustom_204; g_icustom_244 = g_icustom_212; g_icustom_252 = g_icustom_220; g_icustom_260 = g_icustom_228; g_icustom_204 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 3, gi_364); g_icustom_212 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 2, gi_364); g_icustom_220 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 1, gi_364); g_icustom_228 = iCustom(Symbol(), g_timeframe_408, "Volvox_MTF_Ver_7.0", " ", Marauder_Mode, MaxBars, gi_160, gi_164, gi_392, gi_396, gi_400, gi_404, 0, gi_364); } if (Show_4_Dot_Method_Signals == TRUE) { gs_504 = "4-Dot"; gi_unused_340 = FALSE; gi_unused_344 = FALSE; gi_348 = FALSE; gi_352 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0 && g_icustom_228 > 0.0) gi_348 = TRUE; if (g_icustom_236 < 0.0 || g_icustom_244 < 0.0 || g_icustom_252 < 0.0 || g_icustom_260 < 0.0) gi_352 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0 && g_icustom_228 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0 && g_icustom_252 > 0.0 && g_icustom_260 > 0.0) gi_348 = TRUE; if (g_icustom_268 < 0.0 || g_icustom_276 < 0.0 || g_icustom_284 < 0.0 || g_icustom_292 < 0.0) gi_352 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0 && g_icustom_228 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0 && g_icustom_252 > 0.0 && g_icustom_260 > 0.0 && g_icustom_268 > 0.0 && g_icustom_276 > 0.0 && g_icustom_284 > 0.0 && g_icustom_292 > 0.0) gi_348 = TRUE; if (g_icustom_300 < 0.0 || g_icustom_308 < 0.0 || g_icustom_316 < 0.0 || g_icustom_324 < 0.0) gi_352 = TRUE; } } } if (gi_348 == TRUE && gi_352 == TRUE) { if (gi_332 == FALSE) { g_ibuf_180[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_332 = TRUE; gi_336 = FALSE; gi_unused_340 = TRUE; g_iopen_452 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_420++; if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits)); } else { g_ibuf_196[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; g_iopen_484 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_428++; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] == 0.0) gda_500[g_index_368] = g_iopen_484; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Long Scale-In Signal @ " + DoubleToStr(g_iopen_484, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Long Scale-In Signal @ " + DoubleToStr(g_iopen_484, Digits)); } } } gi_356 = FALSE; gi_360 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0 && g_icustom_228 < 0.0) gi_356 = TRUE; if (g_icustom_236 > 0.0 || g_icustom_244 > 0.0 || g_icustom_252 > 0.0 || g_icustom_260 > 0.0) gi_360 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0 && g_icustom_228 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0 && g_icustom_252 < 0.0 && g_icustom_260 < 0.0) gi_356 = TRUE; if (g_icustom_268 > 0.0 || g_icustom_276 > 0.0 || g_icustom_284 > 0.0 || g_icustom_292 > 0.0) gi_360 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0 && g_icustom_228 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0 && g_icustom_252 < 0.0 && g_icustom_260 < 0.0 && g_icustom_268 < 0.0 && g_icustom_276 < 0.0 && g_icustom_284 < 0.0 && g_icustom_292 < 0.0) gi_356 = TRUE; if (g_icustom_300 > 0.0 || g_icustom_308 > 0.0 || g_icustom_316 > 0.0 || g_icustom_324 > 0.0) gi_360 = TRUE; } } } if (gi_356 == TRUE && gi_360 == TRUE) { if (gi_336 == FALSE) { g_ibuf_184[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_336 = TRUE; gi_332 = FALSE; gi_unused_344 = TRUE; g_iopen_460 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_424++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits)); } } else { g_ibuf_200[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; g_iopen_492 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_432++; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] == 0.0) gda_500[g_index_368] = g_iopen_492; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Short Scale-In Signal @ " + DoubleToStr(g_iopen_492, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Short Scale-In Signal @ " + DoubleToStr(g_iopen_492, Digits)); } } } if (gi_332 == TRUE && g_icustom_212 < 0.0 || g_icustom_220 < 0.0 || g_icustom_228 < 0.0) { g_ibuf_188[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_332 = FALSE; g_iopen_468 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits)); } if (g_iopen_452 > 0.0) { gi_436 = gi_436 + (g_iopen_468 - g_iopen_452) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_444 = gi_444 + (g_iopen_468 - gda_500[g_index_368]) / gd_380; } g_iopen_452 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } if (gi_336 == TRUE && g_icustom_212 > 0.0 || g_icustom_220 > 0.0 || g_icustom_228 > 0.0) { g_ibuf_192[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_336 = FALSE; g_iopen_476 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "4-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits)); } if (g_iopen_460 > 0.0) { gi_440 = gi_440 + (g_iopen_460 - g_iopen_476) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_448 = gi_448 + (gda_500[g_index_368] - g_iopen_476) / gd_380; } g_iopen_460 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } } else { if (Show_3_Dot_Method_Signals == TRUE) { gs_504 = "3-Dot"; gi_unused_340 = FALSE; gi_unused_344 = FALSE; gi_348 = FALSE; gi_352 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0) gi_348 = TRUE; if (g_icustom_236 < 0.0 || g_icustom_244 < 0.0 || g_icustom_252 < 0.0) gi_352 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0 && g_icustom_252 > 0.0) gi_348 = TRUE; if (g_icustom_268 < 0.0 || g_icustom_276 < 0.0 || g_icustom_284 < 0.0) gi_352 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_220 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0 && g_icustom_252 > 0.0 && g_icustom_268 > 0.0 && g_icustom_276 > 0.0 && g_icustom_284 > 0.0) gi_348 = TRUE; if (g_icustom_300 < 0.0 || g_icustom_308 < 0.0 || g_icustom_316 < 0.0) gi_352 = TRUE; } } } if (gi_348 == TRUE && gi_352 == TRUE) { if (gi_332 == FALSE) { g_ibuf_180[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_332 = TRUE; gi_336 = FALSE; gi_unused_340 = TRUE; g_iopen_452 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_420++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits)); } } else { g_ibuf_196[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; g_iopen_484 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_428++; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] == 0.0) gda_500[g_index_368] = g_iopen_484; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Long Scale-In Signal @ " + DoubleToStr(g_iopen_484, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Long Scale-In Signal @ " + DoubleToStr(g_iopen_484, Digits)); } } } gi_356 = FALSE; gi_360 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0) gi_356 = TRUE; if (g_icustom_236 > 0.0 || g_icustom_244 > 0.0 || g_icustom_252 > 0.0) gi_360 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0 && g_icustom_252 < 0.0) gi_356 = TRUE; if (g_icustom_268 > 0.0 || g_icustom_276 > 0.0 || g_icustom_284 > 0.0) gi_360 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_220 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0 && g_icustom_252 < 0.0 && g_icustom_268 < 0.0 && g_icustom_276 < 0.0 && g_icustom_284 < 0.0) gi_356 = TRUE; if (g_icustom_300 > 0.0 || g_icustom_308 > 0.0 || g_icustom_316 > 0.0) gi_360 = TRUE; } } } if (gi_356 == TRUE && gi_360 == TRUE) { if (gi_336 == FALSE) { g_ibuf_184[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_336 = TRUE; gi_332 = FALSE; gi_unused_344 = TRUE; g_iopen_460 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_424++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits)); } } else { g_ibuf_200[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; g_iopen_492 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_432++; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] == 0.0) gda_500[g_index_368] = g_iopen_492; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Short Scale-In Signal @ " + DoubleToStr(g_iopen_492, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Short Scale-In Signal @ " + DoubleToStr(g_iopen_492, Digits)); } } } if (gi_332 == TRUE && g_icustom_212 < 0.0 || g_icustom_220 < 0.0) { g_ibuf_188[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_332 = FALSE; g_iopen_468 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits)); } if (g_iopen_452 > 0.0) { gi_436 = gi_436 + (g_iopen_468 - g_iopen_452) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_444 = gi_444 + (g_iopen_468 - gda_500[g_index_368]) / gd_380; } g_iopen_452 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } if (gi_336 == TRUE && g_icustom_212 > 0.0 || g_icustom_220 > 0.0) { g_ibuf_192[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_336 = FALSE; g_iopen_476 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "3-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits)); } if (g_iopen_460 > 0.0) { gi_440 = gi_440 + (g_iopen_460 - g_iopen_476) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_448 = gi_448 + (gda_500[g_index_368] - g_iopen_476) / gd_380; } g_iopen_460 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } } else { if (Show_2_Dot_Method_Signals == TRUE) { gs_504 = "2-Dot"; gi_unused_340 = FALSE; gi_unused_344 = FALSE; gi_348 = FALSE; gi_352 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0) gi_348 = TRUE; if (g_icustom_236 < 0.0 || g_icustom_244 < 0.0) gi_352 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0) gi_348 = TRUE; if (g_icustom_268 < 0.0 || g_icustom_276 < 0.0) gi_352 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_212 > 0.0 && g_icustom_236 > 0.0 && g_icustom_244 > 0.0 && g_icustom_268 > 0.0 && g_icustom_276 > 0.0) gi_348 = TRUE; if (g_icustom_300 < 0.0 || g_icustom_308 < 0.0) gi_352 = TRUE; } } } if (gi_348 == TRUE && gi_352 == TRUE) { if (gi_332 == FALSE) { g_ibuf_180[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_332 = TRUE; gi_336 = FALSE; gi_unused_340 = TRUE; g_iopen_452 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_420++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits)); } } } gi_356 = FALSE; gi_360 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0) gi_356 = TRUE; if (g_icustom_236 > 0.0 || g_icustom_244 > 0.0) gi_360 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0) gi_356 = TRUE; if (g_icustom_268 > 0.0 || g_icustom_276 > 0.0) gi_360 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_212 < 0.0 && g_icustom_236 < 0.0 && g_icustom_244 < 0.0 && g_icustom_268 < 0.0 && g_icustom_276 < 0.0) gi_356 = TRUE; if (g_icustom_300 > 0.0 || g_icustom_308 > 0.0) gi_360 = TRUE; } } } if (gi_356 == TRUE && gi_360 == TRUE) { if (gi_336 == FALSE) { g_ibuf_184[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_336 = TRUE; gi_332 = FALSE; gi_unused_344 = TRUE; g_iopen_460 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_424++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits)); } } } if (gi_332 == TRUE && g_icustom_212 < 0.0 || g_icustom_204 < 0.0) { g_ibuf_188[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_332 = FALSE; g_iopen_468 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Long Exit Signal @ " + DoubleToStr(g_iopen_468, Digits)); } if (g_iopen_452 > 0.0) { gi_436 = gi_436 + (g_iopen_468 - g_iopen_452) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_444 = gi_444 + (g_iopen_468 - gda_500[g_index_368]) / gd_380; } g_iopen_452 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } if (gi_336 == TRUE && g_icustom_212 > 0.0 || g_icustom_204 > 0.0) { g_ibuf_192[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_336 = FALSE; g_iopen_476 = iOpen(Symbol(), Period(), gi_364 - 1); if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "2-Dot Primary Short Exit Signal @ " + DoubleToStr(g_iopen_476, Digits)); } if (g_iopen_460 > 0.0) { gi_440 = gi_440 + (g_iopen_460 - g_iopen_476) / gd_380; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) if (gda_500[g_index_368] > 0.0) gi_448 = gi_448 + (gda_500[g_index_368] - g_iopen_476) / gd_380; } g_iopen_460 = 0; for (g_index_368 = 0; g_index_368 < 20; g_index_368++) gda_500[g_index_368] = 0; } } else { if (Show_1_Dot_Method_Signals == TRUE) { gs_504 = "1-Dot"; gi_unused_340 = FALSE; gi_unused_344 = FALSE; gi_348 = FALSE; gi_352 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 > 0.0) gi_348 = TRUE; if (g_icustom_236 < 0.0) gi_352 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_236 > 0.0) gi_348 = TRUE; if (g_icustom_268 < 0.0) gi_352 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 > 0.0 && g_icustom_236 > 0.0 && g_icustom_268 > 0.0) gi_348 = TRUE; if (g_icustom_300 < 0.0) gi_352 = TRUE; } } } if (gi_348 == TRUE && gi_352 == TRUE) { if (gi_332 == FALSE) { g_ibuf_180[gi_364 - 1] = iLow(Symbol(), Period(), gi_364) - gi_372 * gd_380; gi_332 = TRUE; gi_336 = FALSE; gi_unused_340 = TRUE; g_iopen_452 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_420++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "1-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "1-Dot Primary Long Entry Signal @ " + DoubleToStr(g_iopen_452, Digits)); } } } gi_356 = FALSE; gi_360 = FALSE; if (Use_1_Extra_Dots_To_Confirm == FALSE && Use_2_Extra_Dots_To_Confirm == FALSE) { if (g_icustom_204 < 0.0) gi_356 = TRUE; if (g_icustom_236 > 0.0) gi_360 = TRUE; } else { if (Use_1_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_236 < 0.0) gi_356 = TRUE; if (g_icustom_268 > 0.0) gi_360 = TRUE; } else { if (Use_2_Extra_Dots_To_Confirm == TRUE) { if (g_icustom_204 < 0.0 && g_icustom_236 < 0.0 && g_icustom_268 < 0.0) gi_356 = TRUE; if (g_icustom_300 > 0.0) gi_360 = TRUE; } } } if (gi_356 == TRUE && gi_360 == TRUE) { if (gi_336 == FALSE) { g_ibuf_184[gi_364 - 1] = iHigh(Symbol(), Period(), gi_364) + gi_372 * gd_380; gi_336 = TRUE; gi_332 = FALSE; gi_unused_344 = TRUE; g_iopen_460 = iOpen(Symbol(), Period(), gi_364 - 1); g_count_424++; if (g_count_512 == 0) { if (Enable_Signal_Alerts == TRUE && gi_364 <= 1) Signal_Alert(gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "1-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits), 2); if (Enable_Email_Alerts == TRUE && gi_364 <= 1) Send_Mail("Marauder Signals", gs_412 + " " + tf2txt(g_timeframe_408) + " : " + "1-Dot Primary Short Entry Signal @ " + DoubleToStr(g_iopen_460, Digits)); } } } } } } } } if (gi_144 == TRUE) { Comment("Marauder Signals Ver. 2.1 @ 11/12/2008 © by Bluto", "\nForex Autotraders World http//fxaw/activeboard.com", "\n", "\nPRO-FORMA TRADE RESULTS", "\nTrade Method : ", gs_504, "\n", "\nIs Long?...............: ", gi_332, "\nIs Short?..............: ", gi_336, "\nLong Primary Trades....: ", g_count_420, "\nLong Scale-In Trades...: ", g_count_428, "\nLong Primary Pips......: ", gi_436, "\nLong Scale-In Pips.....: ", gi_444, "\nTotal Long Pips........: ", gi_436 + gi_444, "\n", "\nShort Primary Trades...: ", g_count_424, "\nShort Scale-In Trades..: ", g_count_432, "\nShort Primary Pips.....: ", gi_440, "\nShort Scale-In Pips....: ", gi_448, "\nTotal Short Pips.......: ", gi_440 + gi_448, "\n", "\nGrand Total Gross Pips.: ", gi_436 + gi_444 + gi_440 + gi_448, "\nLess Total Spread Pips.: ", (g_count_420 + g_count_428 + g_count_424 + g_count_432) * gi_376, "\nNet Grand Total Pips...: ", gi_436 + gi_444 + gi_440 + gi_448 - (g_count_420 + g_count_428 + g_count_424 + g_count_432) * gi_376); } gi_148 = FALSE; } return (0); } void Signal_Alert(string as_0 = "", int ai_8 = 0) { if (g_count_512 <= 0) { Alert(Symbol() + " - " + as_0); if (ai_8 == 0 || ai_8 == 1) PlaySound("alert.wav"); if (ai_8 == 2) PlaySound("alert2.wav"); if (ai_8 == 3) PlaySound("tick.wav"); if (ai_8 == 4) PlaySound("ok.wav"); g_count_512++; } } void Send_Mail(string as_0 = "", string as_8 = "") { if (g_count_516 <= 0) { SendMail(as_0, as_8); g_count_516++; } } string tf2txt(int ai_0) { if (ai_0 == 1) return ("M1"); if (ai_0 == 5) return ("M5"); if (ai_0 == 15) return ("M15"); if (ai_0 == 30) return ("M30"); if (ai_0 == 60) return ("H1"); if (ai_0 == 240) return ("H4"); if (ai_0 == 1440) return ("D1"); if (ai_0 == 10080) return ("W1"); if (ai_0 == 43200) return ("MN1"); return ("??"); }