FIRST:
Pivot-Based Exponential Moving Average
File Name: iPivotEMA
#Indicator
#PARAM "Periods", 13
Dim fPivot As Single
Dim fPivotEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMA = EMA(fPivot,Periods)
PlotPrice("PivotEMA", fPivotEMA)
Return fPivotEMA
Summary:
Creates an exponential moving average based off the
central pivot point.
Parameters:
Periods – Number of periods used to calculate the moving
average.
-------------------------
SECOND:
PEMA 3 Indicator
File Name: iPEMA3
#Indicator
#PARAM "ShortEMA",13
#PARAM "MedEMA",34
#PARAM "LongEMA",55
Dim fPivot As Single
Dim fShortEMA As Single
Dim fMedEMA As Single
Dim fLongEMA As Single
fPivot = ((H + L + C)/3)
fShortEMA = EMA(fPivot,ShortEMA)
fMedEMA = EMA(fPivot,MedEMA)
fLongEMA = EMA(fPivot,LongEMA)
PlotPrice("ShortEMA", fShortEMA)
PlotPrice("MedEMA", fMedEMA)
PlotPrice("LongEMA", fLongEMA)
Return 0
Summary:
Creates one indicator with three exponential moving
averages based off the central pivot point.
Parameters:
ShortEMA – Number of periods used to calculate the short
term moving average.
MedEMA – Number of periods used to calculate the medium
term moving average.
LongEMA – Number of periods used to calculate the long
term moving average.
-------------------------
THIRD:
Trailing PEMA Stop
File Name: stoTrailingPEMA
#Stop
#PARAM "EMA_Periods", 34
If Signal = LongSignal _
AND C <= iPivotEMA(EMA_Periods) Then
Signal = ExitSignal
Else if Signal = ShortSignal _
AND C >= iPivotEMA(EMA_Periods) Then
Signal = ExitSignal
End if
PlotPrice("TrailingPEMA",iPivotEMA(EMA_Periods), red, 3)
Summary:
This trailing profit stop signals an exit when price
closes against your specified pivot-based exponential
moving average.
Parameters:
EMA_Periods – Number of periods used to calculate the
moving average stop.
---------------------------------------------
FOURTH:
PEMA Pull-Back System
File Name: sysPEMAPullBack
#System
#PARAM "PEMA_Bounce", 13, 1, 50
#PARAM "PEMA_Confirm", 55, 1, 50
Dim fPivot As Single
Dim fPEMABounce As Single
Dim fPEMAConfirm As Single
fPivot = ((H + L + C)/3)
fPEMABounce = EMA(fPivot,PEMA_Bounce)
fPEMAConfirm = EMA(fPivot,PEMA_Confirm)
If H[1] > fPEMABounce[1] AND _
L[1] < fPEMABounce[1] AND _
fPEMABounce[1] > fPEMABounce[4] AND _
fPEMABounce > fPEMAConfirm AND _
C > fPEMABounce AND _
C > O Then
Signal = LongSignal
ElseIf L[1] < fPEMABounce[1] AND _
H[1] > fPEMABounce[1] AND _
fPEMABounce[1] < fPEMABounce[4] AND _
fPEMABounce < fPEMAConfirm AND _
C < fPEMABounce AND _
C < O Then
Signal = ShortSignal
End If
PlotPrice("PEMABounce", fPEMABounce)
PlotPrice("PEMAConfirm", fPEMAConfirm)
Summary:
Fires signals for the PEMA Pull-Back setup.
Parameters:
PEMA_Bounce – Signals are fired based on this EMA.
PEMA_Confirm – Confirms the current trend.
---------------------------------------------
FIFTH:
PEMA Crossover System
File Name: sysPEMACross
#System
#PARAM "FastEMA", 13, 1, 50
#PARAM "SlowEMA", 55, 1, 150
Dim fPivot As Single
Dim fFastEMA As Single
Dim fSlowEMA As Single
fPivot = ((H + L + C)/3)
fFastEMA = EMA(fPivot,FastEMA)
fSlowEMA = EMA(fPivot,SlowEMA)
If iPivotEMA(FastEMA)[1] < iPivotEMA(SlowEMA)[1] AND _
iPivotEMA(FastEMA) > iPivotEMA(SlowEMA) Then
Signal = LongSignal
ElseIf iPivotEMA(FastEMA)[1] > iPivotEMA(SlowEMA)[1] AND
_
iPivotEMA(FastEMA) < iPivotEMA(SlowEMA) Then
Signal = ShortSignal
End If
PlotPrice("FastEMA", fFastEMA)
PlotPrice("SlowEMA", fSlowEMA)
Summary:
Fires signals for the PEMA Crossover setup.
Parameters:
FastEMA – Periods used for the fast moving average.
SlowEMA – Periods used for the slow moving average.
----------------------------------------------------
SIXTH:
Pivot-Based Double Exponential Moving Average
File Name: iPivotDEMA
#Indicator
#Param "Periods",13
Dim fPivot As Single
Dim fPivotEMA As Single
Dim fPivotEMA2 As Single
Dim fPivotDEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMA = EMA(fPivot,Periods)
fPivotEMA2 = EMA(fPivotEMA, Periods)
fPivotDEMA = (fPivotEMA * 2 - fPivotEMA2)
PlotPrice("PivotDEMA", fPivotDEMA)
Return fPivotDEMA
Summary:
Creates a double exponential moving average based on the
central pivot point.
Parameters:
Periods – Number of periods used to calculate the moving
average.
-----------------------------------------------------------
SEVENTH:
PDEMA Crossover System
File Name: sysPDEMACross
#System
#PARAM "FastMA", 13, 1, 50
#PARAM "SlowMA", 55, 1, 150
Dim fPivot As Single
Dim fPivotEMAF1 As Single
Dim fPivotEMAF2 As Single
Dim fPivotEMAS1 As Single
Dim fPivotEMAS2 As Single
Dim fFastDEMA As Single
Dim fSlowDEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMAF1 = EMA(fPivot,FastMA)
fPivotEMAF2 = EMA(fPivotEMAF1, FastMA)
fPivotEMAS1 = EMA(fPivot,SlowMA)
fPivotEMAS2 = EMA(fPivotEMAS1, SlowMA)
fFastDEMA = (fPivotEMAF1 * 2 - fPivotEMAF2)
fSlowDEMA = (fPivotEMAS1 * 2 - fPivotEMAS2)
If iPivotDEMA(FastMA)[1] < iPivotDEMA(SlowMA)[1] _
AND iPivotDEMA(FastMA) > iPivotDEMA(SlowMA) Then
Signal = LongSignal
ElseIf iPivotDEMA(FastMA)[1] > iPivotDEMA(SlowMA)[1] _
AND iPivotDEMA(FastMA) < iPivotDEMA(SlowMA) Then
Signal = ShortSignal
End If
PlotPrice("FastDEMA", fFastDEMA)
PlotPrice("SlowDEMA", fSlowDEMA)
Summary:
Fires signals for the PDEMA Crossover setup.
Parameters:
FastEMA – Periods used for the fast moving average.
SlowEMA – Periods used for the slow moving average.
-------------------------------------------------
EIGHTH:
Modified PEMA Crossover System
File Name: sysModPEMACross
#System
#PARAM "FastEMA", 1, 1, 50
#PARAM "SlowEMA", 3, 1, 150
#PARAM "TrendEMA", 21, 1, 150
Dim fPivot As Single
Dim fFastEMA As Single
Dim fSlowEMA As Single
Dim fTrendEMA As Single
fPivot = ((H + L + C)/3)
fFastEMA = EMA(fPivot,FastEMA)
fSlowEMA = EMA(fPivot,SlowEMA)
fTrendEMA = EMA(fPivot,TrendEMA)
If iPivotEMA(FastEMA)[1] < iPivotEMA(SlowEMA)[1] AND _
iPivotEMA(FastEMA) > iPivotEMA(SlowEMA) AND _
L > iPivotEMA(TrendEMA) Then
Signal = LongSignal
ElseIf iPivotEMA(FastEMA)[1] > iPivotEMA(SlowEMA)[1] _
AND iPivotEMA(FastEMA) < iPivotEMA(SlowEMA) AND _
H < iPivotEMA(TrendEMA) Then
Signal = ShortSignal
End If
PlotPrice("TrendEMA", fTrendEMA)
Summary:
Fires signals for the Modified PEMA Crossover setup.
Parameters:
FastEMA – The fast EMA used for crossover signals.
SlowEMA – The slow EMA used for crossover signals.
TrendEMA – The EMA used for trend confirmation.
please help me getting these indicators or EA for mt4.
thanks
Pivot-Based Exponential Moving Average
File Name: iPivotEMA
#Indicator
#PARAM "Periods", 13
Dim fPivot As Single
Dim fPivotEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMA = EMA(fPivot,Periods)
PlotPrice("PivotEMA", fPivotEMA)
Return fPivotEMA
Summary:
Creates an exponential moving average based off the
central pivot point.
Parameters:
Periods – Number of periods used to calculate the moving
average.
-------------------------
SECOND:
PEMA 3 Indicator
File Name: iPEMA3
#Indicator
#PARAM "ShortEMA",13
#PARAM "MedEMA",34
#PARAM "LongEMA",55
Dim fPivot As Single
Dim fShortEMA As Single
Dim fMedEMA As Single
Dim fLongEMA As Single
fPivot = ((H + L + C)/3)
fShortEMA = EMA(fPivot,ShortEMA)
fMedEMA = EMA(fPivot,MedEMA)
fLongEMA = EMA(fPivot,LongEMA)
PlotPrice("ShortEMA", fShortEMA)
PlotPrice("MedEMA", fMedEMA)
PlotPrice("LongEMA", fLongEMA)
Return 0
Summary:
Creates one indicator with three exponential moving
averages based off the central pivot point.
Parameters:
ShortEMA – Number of periods used to calculate the short
term moving average.
MedEMA – Number of periods used to calculate the medium
term moving average.
LongEMA – Number of periods used to calculate the long
term moving average.
-------------------------
THIRD:
Trailing PEMA Stop
File Name: stoTrailingPEMA
#Stop
#PARAM "EMA_Periods", 34
If Signal = LongSignal _
AND C <= iPivotEMA(EMA_Periods) Then
Signal = ExitSignal
Else if Signal = ShortSignal _
AND C >= iPivotEMA(EMA_Periods) Then
Signal = ExitSignal
End if
PlotPrice("TrailingPEMA",iPivotEMA(EMA_Periods), red, 3)
Summary:
This trailing profit stop signals an exit when price
closes against your specified pivot-based exponential
moving average.
Parameters:
EMA_Periods – Number of periods used to calculate the
moving average stop.
---------------------------------------------
FOURTH:
PEMA Pull-Back System
File Name: sysPEMAPullBack
#System
#PARAM "PEMA_Bounce", 13, 1, 50
#PARAM "PEMA_Confirm", 55, 1, 50
Dim fPivot As Single
Dim fPEMABounce As Single
Dim fPEMAConfirm As Single
fPivot = ((H + L + C)/3)
fPEMABounce = EMA(fPivot,PEMA_Bounce)
fPEMAConfirm = EMA(fPivot,PEMA_Confirm)
If H[1] > fPEMABounce[1] AND _
L[1] < fPEMABounce[1] AND _
fPEMABounce[1] > fPEMABounce[4] AND _
fPEMABounce > fPEMAConfirm AND _
C > fPEMABounce AND _
C > O Then
Signal = LongSignal
ElseIf L[1] < fPEMABounce[1] AND _
H[1] > fPEMABounce[1] AND _
fPEMABounce[1] < fPEMABounce[4] AND _
fPEMABounce < fPEMAConfirm AND _
C < fPEMABounce AND _
C < O Then
Signal = ShortSignal
End If
PlotPrice("PEMABounce", fPEMABounce)
PlotPrice("PEMAConfirm", fPEMAConfirm)
Summary:
Fires signals for the PEMA Pull-Back setup.
Parameters:
PEMA_Bounce – Signals are fired based on this EMA.
PEMA_Confirm – Confirms the current trend.
---------------------------------------------
FIFTH:
PEMA Crossover System
File Name: sysPEMACross
#System
#PARAM "FastEMA", 13, 1, 50
#PARAM "SlowEMA", 55, 1, 150
Dim fPivot As Single
Dim fFastEMA As Single
Dim fSlowEMA As Single
fPivot = ((H + L + C)/3)
fFastEMA = EMA(fPivot,FastEMA)
fSlowEMA = EMA(fPivot,SlowEMA)
If iPivotEMA(FastEMA)[1] < iPivotEMA(SlowEMA)[1] AND _
iPivotEMA(FastEMA) > iPivotEMA(SlowEMA) Then
Signal = LongSignal
ElseIf iPivotEMA(FastEMA)[1] > iPivotEMA(SlowEMA)[1] AND
_
iPivotEMA(FastEMA) < iPivotEMA(SlowEMA) Then
Signal = ShortSignal
End If
PlotPrice("FastEMA", fFastEMA)
PlotPrice("SlowEMA", fSlowEMA)
Summary:
Fires signals for the PEMA Crossover setup.
Parameters:
FastEMA – Periods used for the fast moving average.
SlowEMA – Periods used for the slow moving average.
----------------------------------------------------
SIXTH:
Pivot-Based Double Exponential Moving Average
File Name: iPivotDEMA
#Indicator
#Param "Periods",13
Dim fPivot As Single
Dim fPivotEMA As Single
Dim fPivotEMA2 As Single
Dim fPivotDEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMA = EMA(fPivot,Periods)
fPivotEMA2 = EMA(fPivotEMA, Periods)
fPivotDEMA = (fPivotEMA * 2 - fPivotEMA2)
PlotPrice("PivotDEMA", fPivotDEMA)
Return fPivotDEMA
Summary:
Creates a double exponential moving average based on the
central pivot point.
Parameters:
Periods – Number of periods used to calculate the moving
average.
-----------------------------------------------------------
SEVENTH:
PDEMA Crossover System
File Name: sysPDEMACross
#System
#PARAM "FastMA", 13, 1, 50
#PARAM "SlowMA", 55, 1, 150
Dim fPivot As Single
Dim fPivotEMAF1 As Single
Dim fPivotEMAF2 As Single
Dim fPivotEMAS1 As Single
Dim fPivotEMAS2 As Single
Dim fFastDEMA As Single
Dim fSlowDEMA As Single
fPivot = ((H + L + C)/3)
fPivotEMAF1 = EMA(fPivot,FastMA)
fPivotEMAF2 = EMA(fPivotEMAF1, FastMA)
fPivotEMAS1 = EMA(fPivot,SlowMA)
fPivotEMAS2 = EMA(fPivotEMAS1, SlowMA)
fFastDEMA = (fPivotEMAF1 * 2 - fPivotEMAF2)
fSlowDEMA = (fPivotEMAS1 * 2 - fPivotEMAS2)
If iPivotDEMA(FastMA)[1] < iPivotDEMA(SlowMA)[1] _
AND iPivotDEMA(FastMA) > iPivotDEMA(SlowMA) Then
Signal = LongSignal
ElseIf iPivotDEMA(FastMA)[1] > iPivotDEMA(SlowMA)[1] _
AND iPivotDEMA(FastMA) < iPivotDEMA(SlowMA) Then
Signal = ShortSignal
End If
PlotPrice("FastDEMA", fFastDEMA)
PlotPrice("SlowDEMA", fSlowDEMA)
Summary:
Fires signals for the PDEMA Crossover setup.
Parameters:
FastEMA – Periods used for the fast moving average.
SlowEMA – Periods used for the slow moving average.
-------------------------------------------------
EIGHTH:
Modified PEMA Crossover System
File Name: sysModPEMACross
#System
#PARAM "FastEMA", 1, 1, 50
#PARAM "SlowEMA", 3, 1, 150
#PARAM "TrendEMA", 21, 1, 150
Dim fPivot As Single
Dim fFastEMA As Single
Dim fSlowEMA As Single
Dim fTrendEMA As Single
fPivot = ((H + L + C)/3)
fFastEMA = EMA(fPivot,FastEMA)
fSlowEMA = EMA(fPivot,SlowEMA)
fTrendEMA = EMA(fPivot,TrendEMA)
If iPivotEMA(FastEMA)[1] < iPivotEMA(SlowEMA)[1] AND _
iPivotEMA(FastEMA) > iPivotEMA(SlowEMA) AND _
L > iPivotEMA(TrendEMA) Then
Signal = LongSignal
ElseIf iPivotEMA(FastEMA)[1] > iPivotEMA(SlowEMA)[1] _
AND iPivotEMA(FastEMA) < iPivotEMA(SlowEMA) AND _
H < iPivotEMA(TrendEMA) Then
Signal = ShortSignal
End If
PlotPrice("TrendEMA", fTrendEMA)
Summary:
Fires signals for the Modified PEMA Crossover setup.
Parameters:
FastEMA – The fast EMA used for crossover signals.
SlowEMA – The slow EMA used for crossover signals.
TrendEMA – The EMA used for trend confirmation.
please help me getting these indicators or EA for mt4.
thanks