What are those conditions?
Posts made by fxDreema
-
RE: Help me plz: EA with Trading_volume_v1 indicatorposted in Questions & Answers
This indicator has one output buffer, but the value in it is always EMPTY_VALUE. It creates objects, two of which are named UpPer1 and DnPer1. They show the % numbers and they contain string data, this is the description property of the object. I tried this:
https://fxdreema.com/shared/Ovk2BHvT
I tried "Trace" first and it outputs the values, but without " %". The Trace block is designed to show numeric data, so I guess that MQL4 somehow converts the string into numeric, and it does that properly. To be sure, I added Condition block to check whether UpPer1 is > 50 and print Comment message on the right side of the screen. So, this Comment message should only show values > than 50. It actually shows the value with the % thing. But the important thing is that the Condition block works.
-
RE: Hours Filter Helpposted in Questions & Answers
When the EA works live, there are 2 sources of time - the server (the broker) and your local time. Depending on where you are or how accurate your clock is, these times can be different. When testing, everything is simulated, including the time. There is no server, even your local clock doesn't matter. The time comes from the candles data, so even if you change this option, it should not change the result of the test.
-
RE: Any ideas for channel breakout EAs?posted in Questions & Answers
You use some custom indicator?
-
RE: Hedging in eaposted in Questions & Answers
Don't do hedging. Hedging is stupid. Hedging is not magical and it doesn't help. Hedging is the worse strategy ever. Hedging only creates problems that are not necessary.
-
RE: Change stop loss after 1 candleposted in Questions & Answers
Try "For each Trade -> check age -> modify stops". Also "once per trade/order" can be put to prevent multiple modifications. The thing here is that "check age" works with the age of the trade and it doesn't care about candles, but I think this should be ok. Well, if you want to modify stops on the new candle exactly, then put "Once per bar" above and with "check age" you can check the opposite - whether the trade is younger than whatever minutes.
-
RE: SL/TP Adjusting based on the last rangeposted in Questions & Answers
Works good for me. Why is that 8 pips... it's some minimum size for the candle, you probably don't want to put orders after a doji candle.
-
RE: Two conditions are met.posted in Questions & Answers
I think the best in this case is what josecortesllobat explained above. There are basically 2 ways to do such thing - starting from the current candle to look in the past candles and detect the signal, or while the EA is running to wait for each signal to happen (and use variables to store the current state). I generally prefer the first method when it's easy enough to use it, and it can be used in some custom indicator, but I don't think that it's a good idea in the EA.
By the way, here is another interesting method: https://fxdreema.com/demo/mt4-wait-crossovers But I don't think that this can be used for your case.
-
RE: SL/TP Adjusting based on the last rangeposted in Questions & Answers
Try this: https://fxdreema.com/shared/nDHEjiQzb
I used one "double" variable called Range:
-
RE: Help~!~!~posted in Questions & Answers
Try this code for the indicator. I didn't checked how it works, I only blindly fixed the MQL errors
0_1554738871057_dailylinesboxes.mq4 -
RE: My first manually customized indicator doesn't work?posted in Questions & Answers
I don't know really, it works for me. otherwise error 4802 means "Indicator cannot be created", which... I'm not sure what it means. But MQL5 is often weird. Can you load another indicator?
-
RE: Two conditions are met.posted in Questions & Answers
When you have variables, you can modify them as you want. You set the variable for the first condition to "true" when the condition is true, then the variable remains "true" until you set it to "false", which can be at any time.
But always try to think, is it even needed to do this stuff. Because you can just check 2 condition at the same time:
1 - Is the current price below MA
2 - Is oscillator above level XDepends on the first condition. You don't say exactly what it is, so for me it looks like it is: Price crosses MA. But you know, if at the current moment Price is < MA, this means that some candles ago the price crossed MA. The question is, do you even care when that happened...
-
RE: Previous price level bellow open tradeposted in Questions & Answers
I don't have easy solution for this. I think that custom code needs to be written

-
RE: Heiken Ashi Candleposted in Questions & Answers
This indicator can be found in Indicators folder, but it's not built in MetaTrader. However, in fxDreema you can find it in Indicators (in Condition). If you try to upload the .mq4 file in fxDreema and use it, you will see that it's not that easy, because the buffers return some tricky data. That's why I added one layer of settings to the indicator and added it in Condition -> Indicators. I think it's much easier to work with it from there, instead of importing the indicator.
-
RE: rsi signal waiting for a crossing of two moving averagesposted in Questions & Answers
Take a look at this block called "Indicator moves within limits". It's a little bit crazy block, but I feel that you can use it for something. What it does is what these beautiful horizontal rows of blocks in your project do, but in one single block.
-
RE: How to set buy and sell pending orders every x pipsposted in Questions & Answers
Take profit is hit? Which take profit? I don't really understand what it needs to be done.
By the way, blocks 18 and 19 are not correct in the project above, they would not do what you imagine, they are not to be used with Bucket blocks.
-
RE: How do you get a pending order to trigger? I also have a buy order set up on different conditions. My buy order triggers, but the buy stop sits there.posted in Questions & Answers
Uuuum, what? Pending orders are triggered on the broker side. It's enough to place it. Then you can remove the EA, close MetaTrader, turn down the PC and even cut the electricity cables, the order will be triggered by the broker when the price reaches it. In the Tester of course pending orders are triggered virtually by MetaTrader itself, but still, they should be triggered when the price goes to their open price. Of course, it matters which price - Ask or Bid.
-
RE: Data control transaction timeposted in Questions & Answers
If there is some indicator to collect data about these meetings... Or if you know the hours. If you detect the price movements, it could be too late

-
RE: Objects and pending orders, buy order not work??posted in Questions & Answers
I will suggest to put some Trace block to see if the values you are extracting from the chart are correct