Mt4 or Mt5 ?
Difference may be history data or perhaps execution delay. In any case, I'd say profit factor is very poor measure of EA profitability. Number of trades per year and max equity drawdown tell much more.
Posts made by roar
-
RE: Different RESULTSposted in General Discussions
-
RE: problem when rich TP open onother position...posted in Questions & Answers
So you want the first signal to close the sell, and second signal to open new buy?
This will be closer to your strategy: https://fxdreema.com/shared/ktzx108Lc
But I'm afraid you will have to define the "signal" in more detail -
RE: Conflicting conditionsposted in Questions & Answers
You have a typo in the lower picture, 2100.
-
RE: Calculation to close all trades not triggeredposted in Questions & Answers
Do you have trades on multiple pairs? Check that closing block, it has default setting to only close the trades on the pair it is attached to.
-
RE: Are Variables restricted to Magic Number?posted in Questions & Answers
Yes, I believe so, if you mean the fxdreema variables. Then there are the terminal variables (global variables) that can be shared among eas.
-
RE: Here, take this profitable eaposted in Tutorials by Users
@drayzen Nice thought, haven't used tick indicators before.
Anyway, I'd say it is not very fruitful to determine quiet periods and not trade in them. That is because of the quietness is very relative, and so you also have to sacrifice some good opportunies if you set a fixed quietness treshold.
I think it is better to let the trades open in all conditions, but implement a different risk managing and exit systems for the quiet periods. -
RE: Silly question. Please don't laugh at me...posted in Questions & Answers
@sydneyfox I think you are talking about the constant inputs, and not precisely variables.
I have solved this variable problem with global (terminal) variables (create corresponding global variable for each fxdreema variable and keep them in sync), but that is not very elegant a solution

For your specific situation, I would just create a boolean variable terminated, set it to true when you want the virtual termination, and put this condition before everything else: terminated == false
-
RE: Compiling?posted in Bug Reports
Those 2 warnings come with basically every project, nothing to worry about there - the problem is most likely elsewhere.
Metaeditor puts the compiled .ex4 files to your expert advisor folder, something like "...../MQL4/experts/"
The folder is nowadays in the metatrader install location.
You should see the ea in your metatrader navigation panel, remember to refresh it. -
RE: Compiling?posted in Bug Reports
This sounds like some general software problem, maybe antivirus checking the download...
If you download the .mq4 and open it, it should open in metaeditor by default. In metaeditor, hit the button "compile" in the top row, and it gives you information about possible errors. -
RE: My Grid type EA projectposted in Questions & Answers
https://fxdreema.com/shared/jX8wezXxc
This seems to work. I see fxdreema has implemented some nice new blocks, makes things easier
-
RE: My Grid type EA projectposted in Questions & Answers
Oh, yes, I used the candle ID in just one block, others are id 0.
That one block is meant for randomization; it compares upper wick of candle 55 to candle 67 or something, the outcome is very random (50:50 buys and sells). That condition can of course be something else as random, or perhaps some custom random function.
Personally I would trade in direction of some long period moving average, its not random and its not perfect trading analysis, but it is something in between...The ea will trade instantly you run it.
-
RE: My Grid type EA projectposted in Questions & Answers
https://fxdreema.com/shared/OG5F0mdB
Here's the core grid system as you described.You can just open this into a new tab and then copy all blocks to your new project.
Remember to set constants and variables like this:


-
RE: My Grid type EA projectposted in Questions & Answers
You can flip the grid by putting negative Grid size.
If you want to do it manually,
- when a trade is opened, store the price to some variable lastprice
- formula: candle price - lastprice
- condition: formula result is above X pips
- open trade, change the price variable.
I'm not sure about the average 5 pips closing, as I use netting system myself. I guess you can do it with the bucket of trades -block.
-
RE: Martingale over all pairsposted in Questions & Answers
I would make another variable (:D) that just counts the trades opened. Then you could put first condition like "tradecount == 0" -> if true, use default settings,
-> if false, "check profit" etc. -
RE: "Ontrade" Price order modified block?posted in Questions & Answers
@reyxv16 I didn't fully understand you, but how are your orders moving? Automated or manual? If you have automated the moving, then you could simply store the price to a variable and then check if that variable changes..
-
RE: Help pleaseposted in Questions & Answers
This should do. Note the "on Trade" tab (and also this is only for buy)

-
RE: Here, take this profitable eaposted in Tutorials by Users
@miro1360 Yes, I have used it too, just like you said

It is just not very "flexible" for my needs, it heavily depends on the calculation period... My goal is to find a system that can evaluate not only trend from x bars, but also a bit longer and a bit shorter period - the market does not always make x bars cycles -
RE: Here, take this profitable eaposted in Tutorials by Users
@drayzen hahaha

As I said, this is a year old project, I must recall what I was thinking:The core principle is to sell RSI 70 and buy RSI 30 (block 11 downwards).
I like to use a trigger with rsi, for example: sell at 70, rsi comes back to 50 -> another sell at 70 is now allowed.Rest of the blocks are to determine the main market direction, and to restrict selling an uptrend for example.
Block 2 downwards is checking how many consecutive days rsi is >50 and also price > BB (and vice versa for downtrend) Variables Dd = "days down" and Du = "days up"
Block 24 downwards is to find high and low point of the last swing (roughly)
Block 18 downwards is to calculate the midpoint of those highs and lows (variable "med"). This is used to restrict unwanted sells and buys..
To be honest, I doubt my main trend analysis does any good - the core principle of selling rsi 70 and buying rsi 30 with the trigger mechanism is quite good on its own.
I havent traded this, didn't trust this enough.Initially wondering if a 'No Trade' instead of the 'Once per bar' would enable more opening opportunities? (just thinking of my own issues with having it first)
I have found it best to always use once per bar. "No trade" would maybe create 0.000001% better trading results, or maybe that much worse - in any case, the difference is not much but it would greatly slow down the backtesting.
-
RE: Sharing is good!!!posted in Questions & Answers
I think sharing one's ideas is a great way to create something new. New approaches to design.
For the profitabitily, I still believe you can make an EA you can rely on to make profit in the long run. It is not easy task by any means, but on the other hand, people didn't believe airplanes were possible either.
@4tronic, Think clever: If you find a profitable "edge" to trading, that means the price is above/below the "real value". The more people utilize this gap, the smaller it gets. This leads to conclusion sharing is bad, BUT considering the volumes in forex market - you can hardly create so popular EA that it affects the market anyway

Above is also the reason why smaller ETF funds tend to outperform the market (and also bigger funds) - smaller capital gives the ability to profit from smaller market anomalies.
-
Here, take this profitable eaposted in Tutorials by Users
Last year (May 2017) I made some very simple ea based on bollinger bands and rsi. Today I backtested it again and surprisingly it would have worked the last year similar to the earlier years. This is not very common in backtesting - usually the bots fail after the period they are initially tested and developed on.
Feel free to use this ea (as an example, start point, inspiration, what ever). Maybe you can even improve it.
Note: this only works on a mt5 netting method account
https://fxdreema.com/shared/pTIbLpWob
Update 30.12.2022: Bot seems to be working still, without any changes since 2017

Update 29.8.2023: Refactored the EA to work on modern hedging method mt5 accounts. Also simplified the strategy to what matters the most (theres lots of useless stuff in original version), in essence the strategy is this:
- Build long/short positions with RSI
- When above 70, sell
- When below 30, buy
- Before selling/buying another time, wait for the RSI to visit level 50 - There must be a mechanism that favors closing the positions rather than letting long/short position grow bigger and bigger
- Only allow the position to grow if price is above daily median (buy) or below median (sell)
- Trades that shrink the total position don't have that rule, so positions naturally stay small - Lastly, limit the trading actions to more volatile half of the day by comparing fast and slow ATR values
The reduced strategy is not quite as profitable as the original one, but still clearly on the black after 6700 trades. Feel free to add your ideas to this.
- Build long/short positions with RSI


