Beginners Question Starting To Make Your Own EA - Problem: MACD too many Signals

 

i am beginner with making expert advisors.

question:

how can i get rid of too many macd signals.

for example when i try to make a very simple demo ea - an macd 12,26,9.

i get way too many signals.

there might be two problems:

1) intracandle i want NOT MORE than 1 execution. but metatrader will give me more than 1 intracandle execution. How can I get rid of such intracandle multiple executions?

2) basically, it would be good, if i could anyhow smooth more or less the threshold when metatrader excepts an MACD Signal (or any other) as yes or no. How Can I tell my EA to make any threshold value for my indicators?

A) i know there is a macd as an example from metatrader, but still i have my question.

B) and there is another example (Moving Average). it has two parameters

moving shift

decrease factor

what are these? could these be a solution to my problem for making signals more or less frequent?

C) can i enter such values like moving shift or decrease factor into ZeroCode. If yes - how?

contact info: contact

disclaimer:

all statements here are educational only. forex investing is very risky. use at your own risk.

Files:
 

You need to post code here so that we can analyse

 

VARIABLES

none

BUY LOGICS

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Base Indicator Line

shift0

>

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Signal Indicator Line

shift0

CLOSE BUY LOGICS

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Base Indicator Line

shift0

<

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Signal Indicator Line

shift0

SELL LOGICS

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Base Indicator Line

shift0

<

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median HL/2

Mode: Signal Indicator Line

shift0

CLOSE SELL LOGICS

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median: HL/2

Mode: Base Indicator Line

shift0

>

current symbol, current timeframe

Fast EMA period: 12

Slow EMA period: 26

Signal period: 9

applied price median: HL/2

Mode: Signal Indicator Line

shift: 0

ORDER OPTIONS

each tick

1.0 lots

Slippage 3 pips

StopLoss Non-Use

TakeProfit Non-Use

TrailingStop Non-Use

example currency pair and timeframe: EURUSD M5

ALL SIMPLE STANDARD, ALL LOOKING FINE - JUST NOT WORKING AS I WANT

i will attach EA in a few hours i must leave for a short while

disclaimer:

all statements here are educational only. forex investing is very risky. use at your own risk.

Files: