View Single Post
  #7 (permalink)  
Old 01-11-2009, 03:01 AM
valasindo valasindo is offline
Junior Member
 
Join Date: Nov 2008
Location: Jakarta, ID
Posts: 8
valasindo is on a distinguished road
EA for camelback?

The rules are simple and should be easy to implement in MetaTrader platform. From the PDF, here's how I "read" the rules:

- When the 15EMA is flat (or relatively flat), do not trade
- When the price is between 40SMA High and 40SMA Low, do not trade
- When the price is entirely above 40 SMA High, appropriate order is LONG
- When the price is entirely below 40 SMA Low, appropriate order is SHORT

To place LONG order (following the rules above)
when previous bar (of current, running bar) low is lower than the bar before the previous bar. In MT4 platform the syntax would be like this: Low[1]<Low[2]

To place SHORT order
when previous bar high is higher than the bar before previous bar. High[1]>High[2]

However, I'm not quite sure about the exit position. I would probably use ATR (1 period only) divided by two and let the EA close position when the price is below or above the ATR(1).

Reply With Quote