OmniTrader Forum
-
Futures and Forex
Trying to make this strategy work - Please help |
^ Top | ||
Rean![]() Posts: 105 Joined: 8/30/2013 Location: Johannesburg, South Africa ![]() | 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. ![]() | |
^ Top | ||
Barry Cohen![]() Posts: 6338 Joined: 1/19/2004 ![]() | 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] ![]() | |
^ Top | ||
Rean![]() Posts: 105 Joined: 8/30/2013 Location: Johannesburg, South Africa ![]() | As easy as that :-) Thanks Barry | |
^ Top | ||
Rean![]() Posts: 105 Joined: 8/30/2013 Location: Johannesburg, South Africa ![]() | 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). ![]() |