Forex Zone | Forex Forum

Moving Average Crossover EA

Discussion started on New EA Coding

  • Moving Average Crossover EA in New EA Coding_index
  • Posts: 1
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Moving Average Crossover EA in New EA Coding_smiley
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





Linkback: https://www.forex.zone/new-ea-coding/26/moving-average-crossover-ea/232/
#1 - September 14, 2018, 12:45:40 PM

  • Moving Average Crossover EA in New EA Coding_index
  • Posts: 2998
  • Points: 33162
  • Likes Received: 2821
  • Reputation: +156/-13
Moving Average Crossover EA in New EA Coding_xx
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

Members:

0 Members and 1 Guest are viewing this topic.


* Share Topic

Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter

* Similar Topics

xx
Take advantage of Moving Average

Started by Nendi71 on Forex Education

3 Replies
142 Views
Last post February 06, 2019, 03:58:03 AM
by turtlegain
xx
Get to know Technical Moving Average

Started by Nendi71 on Technical

2 Replies
149 Views
Last post February 09, 2019, 12:22:56 AM
by Setiafx
xx
My Strategy entry Using Moving Average

Started by dodogtg on Trading Systems

40 Replies
622 Views
Last post July 03, 2019, 10:56:27 AM
by Gombloh
exclamation
Basic Reading Moving Average (MA)

Started by Reztu on Forex Education

177 Replies
2022 Views
Last post February 09, 2021, 02:26:52 PM
by Jajami