Sort Ranging/Sideways Market, Only Trade Massive Trend
-
How do I achieve this:
Since my algorithm is to take trade every MA crossover, it does make profit if the market is in trend, but if the market isn't in trend (ranging/sideway) it is not profitable since it will open and close trades too often that will cause in loss.
How can i sort that ranging market out so the trade will not be opened if the market is ranging/sideway or if there is too many trades occurs in certain time?
-
@slimmz Welcome to the standard MA cross problem, this is the main problem to this type of bot.
-
@jstap So this has no solution yet?
-
Or anything just to make the bot more profitable?
-
@slimmz Not really but you can do things like count candles from cross, and only entre when there is enough of a count, or maybe check the distance of MA's then entre when big enough. The choice is yours but unsure if either will do, depends on the specific stratagy.
-
which block i could use to check the MA distance?
-
@slimmz You can do it like this, just put block in buy tree.

-
@jstap in which part to be exact? beginning? before condition or after? or before open trade?
-
@slimmz I would place just above buy as a final check before opening.
-
@jstap Okay,
Im a bit confused about what does the numbering does on the project
should i number it continuously per one tree, or side by side? like
1 6
2 7
3 8
4 9
5 10or
1 2
3 4
5 6
7 8
9 10
?Does it affect how it's executed?
-
@slimmz The numbers rarely affect the block flow, it wont on yours and only matters if a block needs to activate first.
-
all right then, thanks
-
@slimmz said in Sort Ranging/Sideways Market, Only Trade Massive Trend:
How do I achieve this:
Since my algorithm is to take trade every MA crossover, it does make profit if the market is in trend, but if the market isn't in trend (ranging/sideway) it is not profitable since it will open and close trades too often that will cause in loss.
How can i sort that ranging market out so the trade will not be opened if the market is ranging/sideway or if there is too many trades occurs in certain time?
one must logically define what makes something a "range." you can turn it into a variable value of pips for instance.
now, when the variable value is above a certain amount of pips, then you seek trades of the MA cross
oh, and oh by the way, you must be able to define the range while it is being developed. if you are seeking to define a range after its happened, its too late to stop the EA from trading. So you must make a standard definition of consolidation...and only you can do that for you and your EA. Everyones version is different.
-
This picture is showing there are 2 market conditions based on my indicator, which are SMMA 5 & 26
On the left section, there is a big trend happening, while on the right is not.
I might need help on how do i describe the problem & solution,
Is there any suggestion on at least how do i tell the EA to not trade?is it good to use indicator gap? as it will also delay my EA from opening the trade
or is there any way to check some last trades, if happened too often in a short time and are loss, dont trade untill there is an indicator gap?Cheers
-
@slimmz You are trying to find the holy grial of trend traders, man!
I recommend you to use the distance between 2 MA. If it is increasing, you are in trend and the opposite. Obviousle, it is not the holy grial either. 
-
@l-andorrà
Really!? haha, I'm just trying to express what is in my headI know there is nothing that is even close to the holy grail hahaha
is there any recommendation on how to get a good distance value? so i don't get late to enter the trend
-
@slimmz If your indicator is s MA's then I assume the solid line is the slow a and the bars represent the fast, when these cross the bars change colour? If so MA cross will give you the colour change, when the gap is big enough your conditions to enter the trade have been met?
-
Yes,
Basically, those colored indicators are built by 2 MAs,
5 SMMA and 26 SMMA
If the 5 crosses up the 26, then it's a buy signal (blue) vise versa.But the problem here, since it is always will be crossing, and the EA i made has a logic to follow every cross up of the MAs, the EA will not be good against a sideway market, but is very good at a trending one.
Now what i think i can do is to sort that sideway market by maybe doing something i mention earlier if it is possible, but if not, please suggest me something i could try
-
https://fxdreema.com/shared/GtFOvN1oc
Here is my current project, but the EA does not want to open any trade, please help
-
@slimmz he fast MA (low number) is high when crossed above, so for a buy use what I put in the post above to only open a trade once your desired distance is met. Put this into a project, if you're still having trouble, put a shared link here (get this from your project tab) and problems can be assessed.
