Forex Zone - Forex Forum

Moving Average Crossover EA

Discussion started on New EA Coding

  • Starter
  • Posts: 1
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Hi, I am looking for a EA to work with below conditions. Please assist me. Thank you

INDICATORS:

21 SMOOTHED MOVING AVERAGE - CLOSE PRICE - SHIFT=1
144 LINEAR WEIGHTED MOVING AVERAGE - CLOSE PRICE - SHIFT=1

ENTRY CONDITION:

21 SMMA > 144 LWMA in 5M chart = BUY (15M, 30M, 1H either 2 of these charts should be in same trend)
21 SMMA < 144 LWMA in 5M chart = SELL (15M, 30M, 1H either 2 of these charts should be in same trend)

EXIT CONDITION:

TP= 20 PIPS OR 21 SMMA < 144 LWMA in 5M chart = BUY EXIT
TP= 20 PIPS OR 21 SMMA > 144 LWMA in 5M chart = SELL EXIT

SIMPLE MONEY MANAGEMENT RESTRICTIONS:

ONE TRADE PER SIGNAL PER PAIR EITHER PROFIT OR LOSS SHOULD WAIT FOR THE NEXT SIGNAL
EACH LOT SIZE SHOULD CALCULATED FROM OVERALL ACCOUNT BALANCE (2% RISK)
SHOULD WORK WITH ANY CURRENCY PAIR

STRATEGY TESTER:

ALSO, WOULD LIKE TO KNOW THE MAXIMUM AND MINIMUM PIPS GENERATED PER CROSS BY EACH TRADE

Free MA Trading EA:




Linkback: https://www.forex.zone/new-ea-coding/26/moving-average-crossover-ea/232/
#1 - September 14, 2018, 12:45:40 PM
« Last Edit: July 21, 2024, 06:47:54 PM by Admin »

Administrator
  • Hero Member
  • Posts: 4882
  • Points: 33500
  • Likes Received: 4969
  • Reputation: +220/-14
You mentioned about using 2% risk, but your strategy says that trades can exit by MA conditions. So there will be no set SL. How do you want 2% to be risked if trades will have differing losses? Do you have a formula you want to use for this money management?

Also, in the strategy tester, how specifically do you want to know the pips generated by each trade? For example, printing to the log or what? And can you give a quick example of what you mean?
#2 - September 14, 2018, 01:31:07 PM
Moving Average Crossover EA in New EA Coding_FEN-Indicator-728x90

Members:

0 Members and 1 Guest are viewing this topic.