MJ Indicators Help Info

MasterALERT_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


SHORT DESCRIPTION: MasterALERT - (Multi Purpose, Multi Time Frame, Combined ALERT)

NOTE: This is an 'Only' Alerter indicator: no MA, Stochastic etc.. etc.. Lines, no Histogram or Fractals etc... will be plotted, neither will it create any SubWindow.

GENERAL INFO:

Each SubSection is further divided in parts.



SIMPLE EXAMPLE: (might still change over time so this info might not always apply exactly...just an general idea)

Trader want to be get an ALERT when: 3 MA (EMA10, EMA21, SMA50) 5Min Intraday System http://www.forexfactory.com/showthread.php?t=11854 are orderly stack - and also the chart Bar touches the MAZone between the First EMA10 and Second EMA21.

============================== FIRST: in SubALERTS:

============================== SECOND: in ResourceCalculation:


ALL ALERT SETTINGS:

_____________1_____________ = "<<< ALL 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 data Alerts. If it is false: there is no alert for Live Data no matter what the other Alert settings are. IMPORTANT: bPastAlertsOn setting is in effect for the MasterALERT (Combined ALERT) as well as any enabled SubALERTS

*iAllSubALERTVLineStyle: For All SubALERT: VLine Alerts Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

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

*bAllSubALERTVLineBack: For All SubALERT: If TRUE: VLine Alerts are Drawn in Background.


MasterALERT (Combined ALERT SECTION):

_____________2_____________ = "<<< MasterALERT SETTINGS >>>"

The MasterALERT final Alert is by combining a number of SubALERT conditions: if ALL of such SubALERT condition are in Agreement - than a Final MasterALERT is produced.

*sMasterMainAlertText: MasterALERT (Combined ALERT): this allows to set a good name to define what the Alert is (or which system, variation of a system etc..

*iMasterAlertOptionWhen: MasterALERT (Combined ALERT): Option When to Alert:

*bMasterPopUpAlert: MasterALERT (Combined ALERT): If there is an valid Alert: send a PopUp Alert.

*bMasterSoundAlert: MasterALERT (Combined ALERT): If there is an valid Alert: play a Sound Alert.

*sMasterAlertSoundFileName: MasterALERT (Combined ALERT): Name of the Soundfile used for bSoundAlert.

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

*bMasterWriteFileAlert: MasterALERT (Combined ALERT): If there is an valid Alert: write it to a AlertFile. (Might fill up your hard disk if not watched) Files are created in MT4:" experts/files."

*bMasterVLineAlert: MasterALERT (Combined ALERT): 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 the last one will be recognizable with VLines.

*iMasterAlertVLineStyle: MasterALERT (Combined ALERT): VLine Alerts Line Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot.

*iMasterAlertVLineWidth: MasterALERT (Combined ALERT): VLine Alerts width. Valid values are: 1,2,3,4,5. BUT it seems it accepts also individual higher numbers which is quite useful.

*cMasterAlertVLineColorUP: MasterALERT (Combined ALERT): VLine Alerts UP Color.

*cMasterAlertVLineColorDN: MasterALERT (Combined ALERT): VLine Alerts DOWN Color.

*cMasterAlertVLineColorSingle: MasterALERT (Combined ALERT): VLine Alerts Color for Alters which produce neither UP nor DOWN direction or in a case where UP and DN is true at the same time.(maybe also for other purpose)

*bMasterAlertVLineBack: MasterALERT (Combined ALERT): If TRUE: VLine Alerts are Drawn in Background.

*iMasterAlertVLineSubWindow: MasterALERT (Combined ALERT): 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.


MA SECTION:

_____________3_____________ = "<<< MA SECTION >>>"

All this MA are based on OPEN BAR VALUES calculation: (similar to Apply to: Open): I also use a shift into the future. If you want how this looks like it is best you use my other indicators so you can plat such MA's.

*bActivateMASection: If false the Ma Section will be as a total disregarded. Mainly a fast way to activate, de-activate a whole SubSection without the need to change every single parameter.



__MASubALERTS__ = "*** MA SubALERTS ***"

"== MA ORDER =="

MA ORDER SubALERT when: ALL included MA stack in order:

*bActivate_MaOrder: MaOrder: If false the MaOrder SubALERT will be as a total disregarded.

*bMaOrder_MasterALERT: if True the defined MAOrder SubALERT will be also part of the combined Master ALERT consideration.

*bMaOrder_VAlert: if True the MAOrder SubAlerts will also produce own VAlerts (this can be used also if the bMaOrder_MasterALERT is set to false)

*cMaOrderVLineColorUP: MaOrder (see bMaOrder_VAlert): VLine Alerts UP Color.

*cMaOrderVLineColorDN: MaOrder (see bMaOrder_VAlert): VLine Alerts DOWN Color.

*iMaOrderVLineSubWindow: MaOrder (see bMaOrder_VAlert): 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.

__MaOrderIncludeMAs__ = ".. MA ORDER INCLUDE .."

*bMaOrder_InclMA1: if True MA1 (must be active for calculation) will be part of the MA order definition

*bMaOrder_InclMA2: if True MA2 (must be active for calculation) will be part of the MA order definition

*bMaOrder_InclMA3: if True MA3 (must be active for calculation) will be part of the MA order definition

*bMaOrder_InclMA4: if True MA4 (must be active for calculation) will be part of the MA order definition

*bMaOrder_InclMA5: if True MA5 (must be active for calculation) will be part of the MA order definition

*bMaOrder_InclMA6: if True MA6 (must be active for calculation) will be part of the MA order definition


"== BarInMaZone =="

Chart BarInMaZone SubALERT when: the Chart bar - touches the Zone between (inclusive the MA themself in case the perfectly overlay and there is no ZONE) the 2 included Ma's

IMPORTANT NOTE: BarInMaZone is a bit of a special situation: Because of my usual SHIFT of the open value based MA calculation it works a bit different: Best is you apply some of my other Ma indicator and watch live bars how this works.

*bActivate_BarInMaZone: BarInMaZone: If false the BarInMaZone SubALERT will be as a total disregarded.

*bBarInMaZone_MasterALERT: if True the defined BarInMaZone SubALERT will be also part of the combined Master ALERT consideration.

*bBarInMaZone_VAlert: if True the BarInMaZone SubAlerts will also produce own VAlerts (this can be used also if the bBarInMaZone_MasterALERT is set to false)

*bBarInMaZone_VLineMovePlot: BarInMaZone (see bBarInMaZone_VAlert): if TRUE: it will the SubALERTs VLine Alerts one Bar earlier: (the bar where on the chart it touches the MAZone).

*cBarInMaZoneVLineColorSingle: BarInMaZone (see bBarInMaZone_VAlert): VLine Alerts BarInMaZone uses only one Color.

*iBarInMaZoneVLineSubWindow: BarInMaZone (see bBarInMaZone_VAlert): 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.

".. BarInMaZone INCLUDE..."

NOTE: MAZone is defined by 2 MA's don't include less or more.

*bBarInMaZone_InclMA1: if True MA1 (must be active for calculation) will be part of the MA Zone definition

*bBarInMaZone_InclMA2: if True MA2 (must be active for calculation) will be part of the MA Zone definition

*bBarInMaZone_InclMA3: if True MA3 (must be active for calculation) will be part of the MA Zone definition

*bBarInMaZone_InclMA4: if True MA4 (must be active for calculation) will be part of the MA Zone definition

*bBarInMaZone_InclMA5: if True MA5 (must be active for calculation) will be part of the MA Zone definition

*bBarInMaZone_InclMA6: if True MA6 (must be active for calculation) will be part of the MA Zone definition



__MACalculation__ = "*** MA Calculation ***"

"== MA1 DEFINITION =="

*bCalulateMA1: MA1: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

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

*iMA1Period: MA1: Averaging period for calculation.


"== MA2 DEFINITION =="

*bCalulateMA2: MA2: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

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

*iMA2Period: MA2: Averaging period for calculation.


"== MA3 DEFINITION =="

*bCalulateMA3: MA3: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

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

*iMA3Period: MA3: Averaging period for calculation.


"== MA4 DEFINITION =="

*bCalulateMA4: MA4: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

*iMA4Method: MA4: Method: 0=SMA, 1=EMA.

*iMA4Period: MA4: Averaging period for calculation.


"== MA5 DEFINITION =="

*bCalulateMA5: MA5: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

*iMA5Method: MA5: Method: 0=SMA, 1=EMA.

*iMA5Period: MA5: Averaging period for calculation.


"== MA6 DEFINITION =="

*bCalulateMA6: MA6: If true it will be calculated with your settings. Only than can it be included in any SubALERT condition

*iMA6Method: MA6: Method: 0=SMA, 1=EMA.

*iMA6Period: MA6: Averaging period for calculation.

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