@turelforex Do you really need 30 highs and lows? Or just the high and the low of the last 30 candles?
Posts made by trader.philipps
-
RE: last 30 candle lowposted in Questions & Answers
-
RE: Problem with bufferposted in Questions & Answers
@ambrogio I tested your project now and so far it didn't throw the zero divide error. However, I saw that it just draws down arrows

So I slightly changed the code of the indicator to show the existing trend buffer. So you just need 1 condition to check > or < 0
Here it is.
0_1581394655681_Zero lag Hull moving average.mq4 -
RE: Looking partner ea programerposted in Questions & Answers
@traderscornerph As long as it sounds interesting, I might help as well.
-
RE: Problem with bufferposted in Questions & Answers
@ambrogio At which line it throws the zero divide?
-
RE: pls helpposted in Questions & Answers
I changed the EA you attached the way I would build it.

And here is the result ..

It opened 6 trades. That is okay, as after EURUSD trades were opened, The check trades count was 4. So it passes once more. After GBPUSD it was 6 and hence it didn't open more trades.
-
RE: pls helpposted in Questions & Answers
@kop I think your EA just do the check on the symbol the EA is attached to. Do you wnat max 5 trades per symbol or in total 5 trades?
I would instead of the many market switches use a list of constants and specify it on every related block. For example the check trades count one

You use option 1 but probably want option 3 in the description.
-
RE: The Time Filter Block does not work correctlyposted in Bug Reports
@tcanuto Check my Tutorial EA. I use some boolean flags as well as switch ON/OFF blocks in there.
One example is the CoF feature. On the init tab I read the values from the constants and set bool flags accordingly

The on the on Tick tab I check the flag.

Of course this example is for generally switch on/off parts of the code by EA parameters. But it may give you an idea.
I like the bool flags. However, you might use the numeric (if more than 1 option) or string (never used) type as well.
-
RE: indicators filterposted in Questions & Answers
@traderscornerph Awsome in the MT4 version has just 1 buffer you coukd use with your EA. You might check if it blow or above 0. Or you might check if candle ID1 AO value was higher or lower candle ID2 AO value. It depend what your filter actually is meant to do.
-
RE: Ma shift -20 not workingposted in Questions & Answers
@markz1 Looks like we talk about different things. May you share your project?
-
RE: Creating EA Help!: Trend Continuation with Currency strength, moving avg, and fib pullbackposted in Questions & Answers
@trader_sauce What does low mean? Low of the previous candle?
-
RE: Weird Zero Divide Error On Dukascopy Data Indicesposted in Questions & Answers
@everjn17 Just delete the block and re-create it with same settings. Try this and let me know if it helped.
-
RE: Need idea about MACD main & signal line crosses above the MACD threshold settings.posted in Questions & Answers
@yumatheba Well, I'm not sure, if I get your right. Should the trade be opened when the threshold is met or should the main line after the cross with the signal line, but only if main line is above threshold?
However, here are the 2 options in blocks I would start with:
- MACD cross must be above threshold:
(Sell signal)- Macd main has crossed (sometimes) the signal line and signal is if main line crosses threshold:

Whatever your intention is, one of both blocks should be sufficient.
-
RE: Moving Average cross logic neededposted in Questions & Answers
@rmante Well, a VPS is a virtual computer. There you would install your Metatrader and your EA. This virtual computer runs 24/7 and if you don't close Metatrader, your EA would do so either.
You might use your laptop in order to connect to the VPS (Remote Access) and check how things are going, but when you end Remote session Metatrader should still run.
So there is no need for a fxdreema block. Your VPS is like a laptop that never gets switched off.
Or did I get you totally wrong? -
RE: Check max. age of a signalposted in Questions & Answers
@l-andorrà Try to find a way using simple fxdreema blocks. Looping I do only if it is not avoidable.
-
RE: Need idea about MACD main & signal line crosses above the MACD threshold settings.posted in Questions & Answers
@yumatheba To catch the value of the cross exactly I think is hard. If it is sufficient, just check if on candle ID 1 there was a cross and check if both lines were above the threshold. In that case the cross happened above as well (most likely). If you want to make sure you might check that condition for candle IDs 1 and 2.
-
RE: Need idea about MACD main & signal line crosses above the MACD threshold settings.posted in Questions & Answers
@yumatheba ok, got it. So you want to enter the market before the zero line cross, right?
Actually that is the same like zero line cross, just with a different number.
Use condition block with x< upper threshold-level for sell trade and you'd be fine I think.
For the buy trade use x> lower threshold level -
RE: Close all when trailing stop is hitposted in Questions & Answers
@l-andorrà I think he means that the way he did it before the trailing never had a chance to happen. Just a rough guess.
-
RE: Need idea about MACD main & signal line crosses above the MACD threshold settings.posted in Questions & Answers
@yumatheba Didn't understand what you try to achieve.
-
RE: how to use this indicator?posted in Questions & Answers
@sebaseba54 That won't be so easy as the indicator doesn't offer any buffers. Hence you need to loop through the objects it creates.
Those objects represent the signal shown in the chart.

You need to find the latest rectangle that has the colorRed or Blue. Then check if it's drawn to the current candle as well (signal still valid!?!).
Than you can check the other rectangles. You need to jnow that a recangle always consist of 2 prices and 2 timestamps. In the object list (CTRL-B) you can find them.Here is an example rectangle definition.


In this case time value 2 is the current candle time. So it is still a valid signal. Upper Price is the entry level (I think) and the second price is the TP1 on that sell signal.
For the next rectangle (crimson color) ..

As you can see the first price isidentical to the TP1 price or the red rectangle. So you can now repeat theis until you get all the information you need.
