MJ Indicators Help Info

ALFRACKind3MAOrder_0.00.mq4 File Reference


Detailed Description

Author:
Copyright (c) 2011, MJ
Version:
0.00

$$$ NOTE $$$: If you post the indicator somewhere or mail it to a friend: please include also the info file so that they may benefit from it too. THANKS


ALFRACKind3MAOrder_main.gif


SHORT DESCRIPTION: ALopBarTouchMaZone (ALERT Chart Bar touches the MA Zone (Zone between (incl MA themself) two MA's)

Is a CHART ALERT indicator to search fro Fractals kind pattern and is based on the idea of Bill Williams: FRACTALS filtered by MA Order - with some deviations.

FILTER:

ALERT OPTION: When a Fractal is valid.



COMPARE TO OTHER INDICATORS: To simulate a normal FRACTAL but with ignoring the restriction 1: use _iBarsBeforeMid = 2, _bBarsBeforeOrder = false and _iBarsAfterMid= 2, _bBarsAfterOrder = false


Description: Bill Williams: Book:"Trading Chaos" (Page 135, 136)

 The Initiating Fractal Pattern: A fractal pattern on a bar chart(of any time span) consists of a minimum of five consecutive bars. Our working definition of this initiating fractals is that
 the middle bar must have a higher high (or lower low) than the two preceding bars and the two following bars. ....

 It is important to note the following restrictions:
  - 1. If a bar's high is parallel to the middle or high(low) bar, it does not count as one of the five bars in the fractal because it does not have a lower high ( higher low) than the middle bar.
  - 2. Two adjacent fractals may share bars.

 In an up fractal, we are interested only in the bar's high. In a down fractal, we are interested only in the bar's low.

This particular FRACKind is a small deviation from the above standard definition:



OTHER INPUT VARIABLES

Other Input Parameters which are specific to this Indicators etc....



_____________1_____________ = "<<< FRACKind SETTINGS >>>"



IMPORTANT: We use for parameters to control the FRACKind (Kind of FRACTALS) pattern search:

*iBarsBeforeMid: Number of Bars Before the _FracMidBarSHIFT to be considered: Standard Fractals use: 2.

*bBarsBeforeOrder: If TRUE: the Bars before the _FracMidBarSHIFT must be in order:

*iBarsAfterMid: Number of Bars After the _FracMidBarSHIFT to be considered: Standard Fractals use: 2.

*bBarsAfterOrder: If TRUE: the Bars after the _FracMidBarSHIFT must be in order:



_____________2_____________ = "<<< MA SETTINGS >>>"



*bPlotMALines: If TRUE: we also plot the Ma Filter Lines.

"== MA1 DEFINITION =="

*iMA1Method: MA1: Method: 0=SMA, 1=EMA.

*iMA1Period: MA1: Averaging period for calculation.

*iMA1LineStyle: MA1: Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

*iMA1LineWidth: MA1: Line width. Valid values are: 1,2,3,4,5. BUT it seems it accepts also individual higher numbers which is quite useful.

*cMALine: MA1: Line color. Can not be None Color


"== MA2 DEFINITION =="

*iMA2Method: MA2: Method: 0=SMA, 1=EMA.

*iMA2Period: MA2: Averaging period for calculation.

*iMA2LineStyle: MA2: Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

*iMA2LineWidth: MA2: Line width. Valid values are: 1,2,3,4,5. BUT it seems it accepts also individual higher numbers which is quite useful.

*cMALine: MA2: Line color. Can not be None Color


"== MA3 DEFINITION =="

*iMA3Method: MA3: Method: 0=SMA, 1=EMA.

*iMA3Period: MA3: Averaging period for calculation.

*iMA3LineStyle: MA3: Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

*iMA3LineWidth: MA3: Line width. Valid values are: 1,2,3,4,5. BUT it seems it accepts also individual higher numbers which is quite useful.

*cMALine: MA3: Line color. Can not be None Color



_____________3______________ = "<<< PLOT FRACKind SETTINGS >>>"



*bPlotFRACArrows: If TRUE: we also plot the FRACArrows.

"== FRAC UP Arrow =="

*dFracUPOffsetPoint: Offset to move the FRAC UP Arrow above the Bar High

*iArrowUPWingdingsNum: FRAC UP Arrow Wingdings Font Symbols Numbers.

*iArrowUPSize: FRAC UP Arrow Size.

*cArrowUP: FRAC UP Arrow Color.


"== FRAC DOWN Arrow =="

*dFracDNOffsetPoint: Offset to move the FRAC DOWN Arrow below the Bar Low

*iArrowDNWingdingsNum: FRAC DOWN Arrow Wingdings Font Symbols Numbers.

*iArrowDNSize: FRAC DOWN Arrow Size.

*cArrowDN: FRAC DOWN Arrow Color.



_____________4_____________ = "<<< ALERT SETTINGS >>>"

*bPastAlertsOn: * Main On/Off alert option for Past data Alerts. If it is false: there is no alert for Past Data no matter what the other Alert settings are.

*bLiveAlertsOn: Main On/Off alert option for Live Alerts. If it is false: there is no alert no matter what the other Alert settings are.

*iAlertOptionWhen: Alert Option When to Alert:

*bPopUpAlert: If there is an valid Alert: send a PopUp Alert.

*bSoundAlert: If there is an valid Alert: play a Sound Alert.

*sAlertSoundFileName: Name of the Soundfile used for bSoundAlert.

*bEmailAlert: If there is an valid Alert: send an Email Alert (must be correctly configured in MT4 Client).

*bWriteFileAlert: If there is an valid Alert: write it to a AlertFile. (Might fill up your harddisk if not watched) Files are created in MT4:" experts/files: (Notes: Files can only be opened in the terminal_directory\experts\files folder (terminal_directory\tester\files if for expert testing) or in its subfolders)."

*bVLineAlert: If there is an valid Alert: create a VLine on the Chart Bar (Note in case more than one Alert happens we only update the VLine: this means in case an indicator uses different colors fo up and Down Signals only te last one will be recognizable with VLines.

*iAlertVLineStyle: VLine Alerts Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

*iAlertVLineWidth: VLine Alerts width. Valid values are: 1,2,3,4,5. BUT it seems it accepts also individual higher numbers which is quite useful.

*cAlertVLineColorUP: VLine Alerts UP Color value to set/get object color.

*cAlertVLineColorDN: VLine Alerts DOWN Color value to set/get object color.

*bAlertVLineBack: If TRUE: VLine Alerts are Drawn in Background. Boolean value to set/get background drawing flag for object.

*iAlertVLineSubWindowNum: Index of the window where the object will be added. Window index must exceed or equal to 0 and be less than WindowsTotal(). 0 is main chart window.

===== END OF ===== OTHER INPUT VARIABLES =====