명시
The Principal of this EA is simple – “The Trend is your Friend”
or another clique might be “Ride the Trend until the End!”
Plot the Exponential MA 90 on a 1 Day Chart and the Expo MA 14 and the Cross over is the Buy or Sell trigger.
See Pic 1 Below
The EA needs to Trade at the Cross Over, or Soon after based on a (input X pips) . When the MA 90 is Trending Up then Buy If the the MA 90 is Trending Down Sell. So the EA Needs to close the Trade at the Crossover Point.
And (see below) open the Opposite Trade within X Period (Days) and or X Points afterwards.
DELETE ALL OF THE FOLLOWING IN ITALLICS AS NOT REQUIRED...
(The Indicator needs to Show and Plot the Angle that the MAs are Spreading. So just after the Crossover the 2 MA’s start to move apart and the greater the Angle the faster the Trend is changing. I would like to see a Triangle of the Spread and the Angle Size as a Number on the Chart. ) The Indicator needs to Show the Angle of the spread for the TF “X” input (TF as Current chart) example - say for 5 (Input) days after Cross Over - Cross Check of Angle and Place Order)
This EA needs to Detect and Trade the Crossover of the 2 (Or ideally have 3 Moving averages as an Input option)
So Inputs would need to be
“X” Number of Moving averages
Drop down for Type of Moving Average (Smoothed / EXPO etc)
List of Inputs
Trade when MA’s are moving apart greater than X (Input) over X input Candles / Time – Example - You would Check (And Only Trade) that the Daily increase in candle size was X Input more than previous eg this was say Greater than 30 Pips over the next 3 days – This is the confirmation that the Trend has Switched
See Pic 2 Below
3 ways of trading
1. 1. Manual Open - Auto Close Trade on Cross over of the MAs (Input - at Crossover Plus X pips)
2. 2. Auto Switch from Buy to Sell at Crossover
3. 3. Auto Close then Auto Entry after X (input) days of MA separation greater than X (input) Pips and less that X (Input) Pips - eg Day 1 Crossover, Day 2 50 pips Day 3 100 pips Day 4 150 pips - This shows MAs Spreading so place pending order for Day 4 if reached 200 pips from the Crossover point
Inputs
Trailing Stop
Trading times
Sl and TP Inputs
Dont place if MP is great than X pips from 90 MA
Slipage (Input)
Spread (Input)
Lot Size - Fixed size and Risk %
Move / add a SL to Break Even after x (Input) pips
Alert when Order Placed
Alert When Order Filled . Closed
There Needs to be an Option in The Code (On both EA and Ind) to Add “Account Number” and Time Out “date”
Number of Identical trades (Input) Eg “2” identical - This enables you to close out say ½ the position later, as most Brokers don’t allow you to do this on 1 order.
Close trade with (Input) Profit % target
Pic 1