It's a block:

Posts made by roar
-
RE: Check a condition for a period since last trade was closedposted in Questions & Answers
@trader-philipps I would put a "Check type (last closed)" before the condition, and copy the condition and then just flip the comparator for the case of sell order:

-
RE: Check a condition for a period since last trade was closedposted in Questions & Answers
Hi @trader-philipps!
Here's how I would approach this. It might still have some bug, I'm too lazy to properly test anything.
Blocks:- Load the last closed trade
- Save its ticket number
- Use custom code to get the trade closing candle ID
- Do something closed_ID times. When this process starts the first time:
- set our final condition to FALSE,
- set iteration ID to closed_ID
When the process makes an iteration, decrease iter_ID by 1.
- Now we can just check the condition with MA indicator, using iter_ID in the Candle ID fields.
If this condition is a success, modify variable belowcondition to TRUE

Hope this helps.
https://fxdreema.com/shared/JOQCkRG3e
If you import the .mq4, you get the correct variables as well.
0_1567877553885_check past.mq4 -
RE: this is driving me crazyposted in Questions & Answers
https://fxdreema.com/shared/1mJlTAsXb
This is probably lacking some logic, but lets work from there.
How does this differ from your logic?

-
RE: this is driving me crazyposted in Questions & Answers
I assume that normally the EA only trades 1 trade a time
-
RE: Trailing stop not workingposted in Questions & Answers
@newbietrader That's correct. By default, trailing stop tightens your SL when your trade makes more profit. Take-profit stays at fixed level. (Unless you modify the trailing stop to move TP instead of SL)
-
RE: this is driving me crazyposted in Questions & Answers
@zackry This will need some AND-blocks lol

Let's clear up some things first:
but if the buy trade turns against us before condition 4 , 5, 6 becomes true , then open a sell on each candle as long as the condition 4 ,5, 6 is true
- So the EA needs to check that buy trade is losing and 4,5,6 are false, REMEMBER that situation, and act when 4,5,6 become true.
But every buy trade starts in loss because of the spread. So this "condition" will always be true, wouldn't it? - 1,2,3 and 4,5,6 are mirrored condition? So 1 and 2 will never be true at the same time?
- So the EA needs to check that buy trade is losing and 4,5,6 are false, REMEMBER that situation, and act when 4,5,6 become true.
-
RE: EA works fine on admiral markets mt4 but doesn't work on fxpro mt4.posted in Bug Reports
@monocska3310 Well, the errors refer to invalid stops. Try a version that uses larger SL and TP, or none at all
-
RE: false moveposted in Questions & Answers
@l-andorrĂ said in false move:
Just curious. What's the logic behind block 15? Why is it conditioning all buys and sells?
This one?

It filters out those flat MACD periods. The EA will only sell a strong MACD mountain, and buy a strong MACD valley.
Block 18 is a mirror of 15.
The *0.9 adjust on the ATR side is just for fine-tune purposes. This is also a quick way for the genetic optimization, if you replace 0.9 with a constant name.
-
RE: false moveposted in Questions & Answers
@specialfx I shared the block logic. For the visually stacked indicators, I really don't know how to setup that on fxdreema, there is no easy way.
-
RE: false moveposted in Questions & Answers
You can filter the volatility by combining macd with ATR:
https://fxdreema.com/shared/SmrMuW4vcIn mt4, you can see 2 indicators in same window if you drag and drop them from the navigator pane.

-
RE: MT4 optimization for indicator settingsposted in Questions & Answers
@keshb96 That's correct! The constants will always show up in mt4.
Personally I never use the tickboxes, they only mess things up. -
RE: MT4 optimization for indicator settingsposted in Questions & Answers
@keshb96
Make a constant and use that in all blocks:

-
RE: EA works fine on admiral markets mt4 but doesn't work on fxpro mt4.posted in Bug Reports
@monocska3310 So it opens only sell order, no buy, or vice versa?
I don't see why it would do that. I tested it and it opens two orders:

Are you intentionally filtering this to work on only the 01:00 - 02:00 hourly candle?
-
RE: Multiply lot size if previous order hit SLposted in General Discussions
@faidz80 You're describing Martingale:

-
RE: Can i create free EA with FxDreema that works?posted in General Discussions
@janefx
Working EA = opens and closes trades
or
Working EA = makes profit ?Every EA made with fxdreema should be technically functional
-
RE: average true rangeposted in Questions & Answers
Hmm, maybe your EA is currently using the ADX instead of ADR. Those are two different indicators

-
RE: Unmatched data errorposted in General Discussions
@specialfx Hmmmmm did you download new data from the f2 history center?
-
RE: Unmatched data errorposted in General Discussions
@specialfx The history files are in .HTF format.
Another way to delete is selecting the "1 minute (M1)" panel from the left, and delete it altogether. -
RE: Unmatched data errorposted in General Discussions
@specialfx Yes, go to your data folder (from mt4 menu), and find something like "history" and "bases". You will see a folder named EURUSD, delete the content. Sorry cant check it myself, I'm on mobile