- Search Forex Factory
- 36 Results
- mntemel replied Jan 16, 2014
@hayseed I was gonna have quick questions about the code. When I implement this in an EA, it gets extremely slow. Back testing becomes at least 20 times slower. Is this normal or would there be a trick to make it faster?
- mntemel replied Jan 13, 2014
Now I got it, many thanks!
- mntemel replied Jan 13, 2014
I assumed "recount your orders" was a comment so I put "//--" in front of it. But still getting "Variable not defined" errors for "count"
- mntemel replied Jan 13, 2014
I use SuperTrend to identify turning points (past two tops or past two bottoms) and then I check MACD levels at these points to measure the divergence level. I find most divergence indis very inefficient, that's how I've been using it for a long ...
- mntemel replied Jan 12, 2014
Thank you so much for spending time on this. Just checked but got me confused, is it prompting the distance to the very last crossover or the one before? When I back test and do the count sometimes it's the last cross sometimes the one before. I ...
- mntemel replied Jan 12, 2014
Since I'm looking for actual crosses, rather than iLow iHigh, should I use; (iOpen(NULL,0,i)<ma && iClose(NULL,0,i)>ma) and in this case there are going to be two crosses in the past, first one that happened X bars ago and second one just happened ...
- mntemel replied Jan 11, 2014
To be honest I haven't used ADX in my trading before, someone gave me that idea and I was trying to test it to see how it works, anyway using +di and -di seems more useful. I'll give it a try, many thanks.
- mntemel replied Jan 11, 2014
That explains it! many thanks.
- mntemel replied Jan 11, 2014
That's why I have MACD to find the direction, basically I'm looking at points where ADX is greater than 30 lets say for instance and starts descending (means exhaustion to me) and then using MACD to find the overbought/sold levels and direction as ...
- mntemel replied Jan 10, 2014
Well I look at the main ADX line and the moment it starts decreasing I'm taking that as the reversal point. I thought these two lines below would give me the past two values of the main ADX line. As Fxdaytrader mentioned I'm not interested in ...
- mntemel replied Jan 10, 2014
Thanks, I'll give it a try.
- mntemel replied Jan 10, 2014
It actually opens positions but when I look back for instance a positioned was opened even though adx_2 wasn't less than adx_1. For some reason after I added the macd condition adx condition stopped working.
- mntemel replied Jan 10, 2014
Sorry I forgot to put, I have adx as well in the condition but for some reason it's not doing the job. if(use_macd && use_adx) { if(adx>30 && adx_2<adx_1 && macd>overbought && macd_1<macd_2) return(sell); if(adx>30 && adx_2<adx_1 && macd<oversold && ...
- mntemel replied Jan 9, 2014
@FerruFx I tried doing it for MACD as well, I'm not getting a compiling error but doesn't seem like working either. Basically I'm trying to find the direction of MACD by comparing MACD at last candle against MACD at 5 candles back. double macd_1 = ...
- mntemel replied Jan 9, 2014
did the trick, many thanks!
- mntemel replied Jan 7, 2014
Problem solved! many thanks, mem
- mntemel replied Dec 17, 2013
Many thanks mate, works perfectly now!
- mntemel replied Dec 17, 2013
Thanks mate, highly appreciated! just tested, it's running but Supertrend doesn't seem like functioning. Any idea where I might be going wrong?
- mntemel replied Dec 17, 2013
Many thanks Fxdaytrader! not sure if I understood this bit; where exactly did you place it in the code? regardless I've placed the code but left me with an unbalanced parentheses and 9 warnings of "Expression on global scope not allowed". Tried to ...
- mntemel replied Jul 12, 2013
Hi All, A very simple EA I need if anyone can spare some time please.. It's Simple Moving Average strategy that opens positions on turning points. In the attached picture you can easily see. Required EA Settings are; SMA Period Lot size Stop Loss ...