Posts made by roar
-
RE: Total profit reduces by x % then close everything.posted in Questions & Answers
Haha, okay, I see

Wait a moment, I'll build them.
Variables are some values, like constants, that store numbers
Formula is just basic calculating, plus minus multiply divide
I also avoided using variables for years because I didn't want to understand them

-
RE: Several open positions and several different take profitsposted in Questions & Answers
You using mt5 or mt4.
I think mt5 has only one stop-loss, but you can always set an opposing order: when you buy at lower BB, open a sell limit order at BB midline or anywhere you want the "take-profit"
-
RE: Re: Testing pass stopped due to a critical error in the EAposted in Bug Reports
Check the mt5 journal tab, it should tell which line of the code fails. Then find the corresponding fxdreema block with the metaeditor
-
RE: Scalpingposted in Questions & Answers
Theres a block, "check last closed position profit" or something
-
Give my variables eternal lifeposted in Questions & Answers
My ea collects info from the chart for several hours before making a trade.
The problem is, when I (accidentally) close the terminal, all variables disappear and the ea would start at 0.What is the best way to store the variables somewhere, so the newly started ea could load the previous variable values?
-
RE: Total profit reduces by x % then close everything.posted in Questions & Answers
I would play with some variable:
Variable maxprofit:
condition: equity > maxprofit -> modify variable maxprofit to same as current equityif equity < maxprofit -> calculate the ratio with formula equity/maxprofit
if formula result is, lets say lower than 0.9 (thats 10% decrease) -> close positions
You then should reset the maxprofit to 0, to not mess up calculations in future
I hope you get what I mean

-
RE: ea stop making orders at 162000$posted in Questions & Answers
You have to be more specific on the logic, mate.
Share your ea link perhaps? -
RE: Every "n"bars issue.posted in Questions & Answers
Wow, that went better than expected

You are welcome! -
RE: Trailing Stop and Breakeven not workingposted in Questions & Answers
What constants do you use for the trailing stop parameters? Have you tried changing them, does that affect anything?
-
RE: Every "n"bars issue.posted in Questions & Answers
I haven't done anything like that, so cannot give any definite help

Well, in the formula block, you could choose left operand as market properties - timeframe, and multiply it with some variable in right operand. I don't know if the timeframe is just a minute value, though.. Could be worth a try
-
RE: Trailing Stop and Breakeven not workingposted in Questions & Answers
Does the EA create the initial stops, made by the buing/selling blocks?
Trailing stop doesn't alter the stops if they won't get closer to open price.
In break even block, you have filtered it to work on only group #-2 - why is that
-
RE: Every "n"bars issue.posted in Questions & Answers
I think the "every n bars" counts in a way you dont mean it.
If you mean to close every trade at some maximum age, you could just use the "close trades" block's age filter.
For example close every trade older than 10 hours, "close trades" with filter "Filter trades by age" 10*60=600 minutes. -
RE: Every "n"bars issue.posted in Questions & Answers
You can also use a simple variable to count the bear row.
For example, if you are seeking for 3 bears:On each bar:
Condition: Last candle open is higher than close
if true -> modify variable RowCounter to RowCounter +1
if false -> modify variable RowCounter to 0Now you can make condition: RowCounter is above or equals 3
-> buy -> to reset, modify variable RowCounter to 0built example: https://fxdreema.com/shared/17r2DukKd
-
RE: Every "n"bars issue.posted in Questions & Answers
Hmm, how about playing with a variable of your own, something like this:
On each bar:
- Modify variable beardetector to 0 when trade opens
- If last candle (ID1) open is above last candle (ID1) close (thats a bear) -> Modify variable beardetector to 1
- You can also reset the beardetector to 0 when last candle is bullish, same logic
Now you can just check if beardetector is 1 and continue from there.
-
RE: Every "n"bars issue.posted in Questions & Answers
I'm not sure if I understand what you mean, but remember that you have put the "every n bar" blocks AFTER the "if trade" block. This means the EA doesn't actually count every bar because there is the condition.
Try switching the "every bar" counter to top position? -
RE: The EA (MT5) is not opening positionsposted in Bug Reports
You need to connect the blocks together. They can't work alone.
Post a screenshot of your fxdreema project?
-
RE: Hide the visual modeposted in Questions & Answers
Thanks!
I'd still like the EA to be back testable, just not in visual.Maybe I will do some research on how the HideTestIndicators applies to mt5..
-
RE: Cryptocurrencies are exploding these daysposted in General Discussions
I think the risk stays the same, forex or crypto...
With leverage you can double your account in x time, but in the same time your account blows up.And I think forex is better for more frequent day trading since it (propably) has lower trading costs..
Do you know of any metatrader brokers offering crypto products, so we could backtest them using fxdreema eas? Just curious...
-
RE: How to close trade at close price of bar AND WITH CONDITION IS THE TRADE IN PROFIT NOT LOSEposted in Questions & Answers
Use "close profitable positions".
Your logic should look like this:
on each bar -> close profitable trades -> open the new trades.And please DONT SHOUT WITH CAPS LOCK ITS RUDE
