Moving average crossover and stochastic error.
-
Strategy: With moving average crossover up trend, then stochastic oversold and over numeric 20 do buy order.
my question is how to open only 1 trade at once?
Is it my blocks still incomplete?

-
@justintkt don't work? Put two "no trade" block, once block "no tradebuy"==>condition==>condition==>buy
and once block "no trade sell"==>condition==>condition==>sell -
@justintkt , You can use block named 'Once per bar' to open only 1 trade at once before 'Buy now'.
-
It’s work, but with failure. It’s open too many trades at once and the MT4 tester sudden finish at begin.
Can check from my pic, suddenly many trades open at once.By the way how to share my block combination Fxdreema by link? I saw other posts, they can share their combination by links.
Maybe show my combination will be more easily to check the problem. -
@justintkt , You can share link with the option below:

I also replied about your too many order issue.
-
I separated them as your flow of block, but it didn't have any trade open.
Here is the link. https://fxdreema.com/shared/S51YffgLcBy the way, I use SMA20 and SMA120 to test. While using both ">" and "<" as crossing at both conditions. The new order keep open after the previous closed, doesn't match the condition required. No clue at all.
-
@paragorundu Thanks mate, I shared it. still trying the blocks now.
-
@justintkt I don't think that's the solution for your problem, but check block 4! It doesn't look right.
-
@justintkt it is easier to win the lottery than your 2 conditions are met simultaneously
you have to change one of the two condition -
Hello @justintkt ,
I think there is a few problem here in my opinion.
Using two crosses (MA cross MA2 and stochastic value cross) seems to be a very low probability to happen at the same time. I think it's better two use stochastic cross with MA above/below MA2 etc.
I agree with @trader-philipps about block 4. I think you used MA 80 by mistake instead of using numeric value 80 for cross.
Regards.
-
YEP, I found some mistake there. keep testing.
-
Found that mistake.
So I separated both crossover, stochastic to retest the EA.
The stochastic its worked.
https://fxdreema.com/shared/nTljwA5xd
it work.Then I test the moving average crossover also worked.
https://fxdreema.com/shared/MDSRcyqUdBoth of them do worked.
So I combined both of them.....
https://fxdreema.com/shared/g299mRlGc
the result not good, its working but only perform 2 trades (Jan to April 2018).
Hmmmmm....Is it really low probability to open trades in these condition?
-
@justintkt nice progress. Cross condition of two different things at the same time is really a rare situation. @ambrogio also gave a good example for the possibility of the condition you use
And time frame is also a game changer. Maybe it's better you to try over or below conditions for MAs. -
@justintkt Well, the x> or x< means, that the crossover has to take place in the specified candle. If you combine the 2 condition (the cross-over event) it's relatively low from probability perspective. Maybe depends a litte on timeframe, but I think it will mostly the same.
There is a setting "width" that may be fine-tune this, but I never used it and from description you would look for the cross a few candles before rather than the last candle (if condition checks current candle).
I would wish that it means that if you specify a value such as 3 it would mean the cross have to occur with-in the candles n+1, n+2 or n+3! However from field description it probably means n+3 only. In that case you may loop for n+iterator. Maybe someone more experienced with fxdreema may clarify that and maybe give an example.