|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
I hope someone can assist. The trigger that I am trying to create is the 1st step in my strategy.
Basically, when a heikin ashi candle pulls away from the EMA5 (shifted to the right by 2 positions) a trigger should occur. I then manually drop to a lower timeframe for the rest of the strategy. But, I cannot get the triggers to work, and I think it has to do with the filters, combines with the coding for the EMA5[2].
The filters read as follows:
H[1] > EmaOffsetByTwo() and
L[1] > EmaOffsetByTwo()
Where EmaOffsetByTwo() is a library consisting of ema(5)[2].
I have created a quick indicator called EMAOffset as follows:
"#Indicator
Dim fValue As Single
fValue = EMA(5)[2]
PlotPrice("Value", fValue)
Return fValue"
This chat refers to the EMA Shifted idea:
https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16576
I'll appreciate any assistance with this.
Attached file : HA Pullaway Trigger.docx (182KB - 70 downloads)
|
|
Barry Cohen
 Sage
      Posts: 6338
Joined: 1/19/2004
User Profile |
Try the attached strategy, which contains the below filters. No OL necessary.
Longs
H[1] > EMA(5)[2] AND L[1] > EMA(5)[2]
Shorts
H[1] < EMA(5)[2] AND L[1] < EMA(5)[2]
Attached file : Rean LongsShorts.zip (171KB - 62 downloads)
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
As easy as that :-)
Thanks Barry
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
If anyone is interested, you can find more information here on the thinking:
https://www.forexfactory.com/thread/291622-trading-made-simple
Something similar also attached.
Hope it helps (and please share success stories if it does help).
Attached file : Dean Malone E.A.S.Y. Trading Method (1).pdf (1857KB - 79 downloads)
|