@fxdreema Amen to that lol
Simplefx is a brokerage that offers btc ltc and eth trading pairs with the mt4 platform.. pretty neat
@fxdreema Amen to that lol
Simplefx is a brokerage that offers btc ltc and eth trading pairs with the mt4 platform.. pretty neat
Not sure what you mean by fix.. like make profitable? or make it execute?
i was able to make it run.. but it doesn't have the best results.
shared/DFNa6MXwd
We're trying to export an EA that has a custom indicator in the "My Indicators List"
Any EA using built in indicators export fine; however any time a condition references our custom indicator (which has exported fine over the past two weeks) it returns this error when trying to export.
Just in the past two or three days this error has cropped up.
Is anyone else getting this error when exporting?
**"'start' - function can be declared only in the global scope" **
it keeps coming up. I'm wondering if its on my end.
I'm referencing a custom indicator, could this be related?
I'm trying to post our ea attempt but it's saying
"Sorry, the board attachment quota has been reached."
So here's our file so far on another host:
Well because that's their proprietary information.
You definitely can make EAs with EX4s. You just don't get to see what's behind the curtain so to speak.
Ex4's do give you buffer data. What you have to do is put Lopez on a chart in MT4 and open the "DATA WINDOW"(View--data window. Or ctrl-d). That will show you the buffers to use in FxDreema. The buffers in the data window are what you're supposed to enter into dreema in the outputs for a custom indicator. There's 7 of them in Pz Lopez Trend. Buffer 5 is related to opens and buffer 6 is related to closes. Buffer 7 seems to happen when any change occurs at all. 3 and 4 seem to be related to overbought and oversold but we haven't even gotten that far yet. There's no documentation for this, and when we reached out to Lopez himself he just copy and pasted the iCustom function from their website and said to use that . However, open the data window with the indicator on, move your mouse around the chart and you will see how the numbers change in the buffers.
Right now we've automated trades based off Lopez. We just receive errors at different times. Seems like there is very little documentation on these errors outside of a sentence or two.
Don't really know why. Between three different forums no one seems to have a conclusive answer.
But through sheer will we've gotten it to work, to a point.
For example, I just ran a live test and got it to successfully trade and close based on the colors changing in Lopez 6 times in a row before the invalid EX4 error appeared.
Now if an error saying "the ex4 is invalid" appears, wouldn't that mean it shouldn't work or open at all in the first place?
That's where our confusion is right now.
As for our previous problem about too many requests, we seem to have found if you use a Tick Time Filter (green node), and limit it to only execute every few ticks, it will trade a bit longer before crashing out with errors. So there seems to be a solution there. I don't understand why a per bar filter wouldn't achieve the same thing (which it doesn't) but the tick node works for now.
So it seems the problem is not getting FxDreema to recognize Lopez, its getting dreema to slow way down and not go nuts executing requests every tick.
I've also posted about this issue on the MQL4 forum and someone mentioned that the error "invalid EX4 file (8)" means that the builder is incompatible with the MT4 terminal build version.
That seems so odd as this error won't appear until at least one trade has been made by the EA.
@ndt113
I find that hard to believe as they advertise an iCustom function on their site to be used in an EA.
I think there's just some sort of communication error.
@ndt113
So what you're saying is that if you do not have access to the .mq4 file then you cannot make an expert advisor with it?
@fxdreema
Ah I see! That makes sense.
So after more prodding, mt4 publishes two errors when trying to live trade with our attempt at an ea.
These errors are:
Global initialization failed
invalid EX4 file (8)
Not too sure why this keeps popping up, all functionality stops after these errors appear.
It looks like in mt4, error code 8 translates to ERR_TOO_FREQUENT_REQUESTS.
Could it be that even though there are "no trade" nodes in place, trades are still being taken on every tick?
What would cause a huge number of requests?
Ok so a few people have private messaged since this post, seems that a lot of people are having issues with custom indicators, or more specifically good ole Lopez.
To everyone asking us directly for help, you probably know as much as we do. Using a condition block to compare a buffer in a custom indicator is only working for opens.
Closes have no rhyme or reason to how they operate regardless of what logic is applied to it. There are 7 buffers as shown by mt4's data window. Buffers 1 and 2 seems to change when blue or red, buffers 3 and 4 seem to be related to overbought or oversold levels. Buffers 5 and 6 also seem to relate to buy and sell states, with 7 only appearing in the data window when a change between states occurs. All of that being said, opens work great when referencing the buffers, closes (specifically buy closes) don't seem to have any bearing on the buffers shown.
This leads me to think there may be an issue with the Lopez code itself, there's no documentation about what the buffers actually represent. I have contacted them and am waiting on a reply.
One question I have though is why it seems in the past two days the appear and disappear nodes under conditions for indicators have not updated or saved settings. This is seriously the LAST thing I can think of to make this indicator into a working ea. However, every time it just hangs on "wait..." and doesn't save the settings
Hello again
So the plot thickens. Currently, the lopez indicator will send a buy and sell signal via buffers 5 and 6 with values of 1.00 (Ex. When buffers 5 == 1, buy). This works perfectly.
When looking at the data window on mt4, it shows that when the indicator changes state, buffer 7 == 1. Our condition is therefore when buffer 7 == 1, close buy trades and when
buffer 7 == 0, close sell trades.
The issue, is that the trades do not ever close when referencing this indicator. When there is a buy and sell condition that doesn't reference the indicator, suddenly the close condition that IS referencing buffer 7 starts closing trades correctly. This leads us to think that a buy/sell and close can't reference the same indicator.
Our question is, could there be interference happening between the buffers? Can their signals get crossed? Having the buy/sell work and the close not work, and then in a duplicate ea having the buy/sell not be related to the indicator and having the close suddenly work seems illogical.
Ok so after tinkering around with the indicator, it turns out the buffers were mislabeled.
Instead of 0 being buy and 1 being sell, it ended up being 5 buy and 6 sell.
comparing it with a numeric value started to generate trades!
Thanks again for your guidance
Ok great that makes a lot of sense! I understand that 0 is buy and 1 is sell, however what would these values be comparing against in a condition block?
Here's is an example of the logic I've tried to no success.
https://fxdreema.com/shared/pX9XFAzre
I really appreciate your help, been pulling my hair out over this for awhile.
Also, this iCustom function was posted on the indicator's website. Not sure if this clarifies our situation at all.
//---- Read value from trend and signal buffer
int start()
{
// Read values
double trend = iCustom(Symbol(), Period(), "PZ_LopezTrend_LICENSENUM", 5, 1);
double signal = iCustom(Symbol(), Period(), "PZ_LopezTrend_LICENCESUM", 6, 1);
// Do something
if(trend == OP_BUY) { /* Your code if trend is currently bullish / }
if(trend == OP_SELL) { / Your code if trend is currently bearish / }
if(signal == OP_BUY) { / Your code for bullish trend change / }
if(signal == OP_SELL) { / Your code for bearish trend change */ }
// Exit
return(0);
}
Ok awesome thank you!
I am able to trace activity of the indicator, however I'm still unsure of how to use a condition to trade with it.
I've tried using the 'indicator is visible' block to activate a trade where buffer 0 is blue and buffer 1 is sell. It isn't making trades however and I'm unsure of what condition would apply to an indicator changing color.
Hey, there
From what i could find from the forum, I would make my buy and sell conditions from signals coming from the buffers of my custom indicator.
Having uploading the indicator into fxdreema's My indicator's list and setting the inputs and outputs, i'm still not sure if the signal is being read.
I've played with the trace activity block to no avail.. I've also tried using the check object color block
It's a basic Trend indicator, red for sell (1) and blue for buy (0). 1 and 0 being the color buffers values. I've attached a screenshot of the input list and buffer values
how would i ensure that I'm receiving signal from the indicator?
whats the best block then, to create a buy or sell logic based off the buffers values?
......
buffers.jpg
inputs.jpg
Thank you I'll check this out!
Is the time filter based on GMT or local time?
Hey FxDreema!
I was wondering if there was a way to close all trades and potential trades for the day after a certain number of pips on profit have passed.
I was focusing on the London market and wondered if the pips on profit had been say 20, there would be no more trades until the next day.
Is there a combination of blocks that could achieve that?
Been using the software and love it!
Subscribing when my trial is done for sure!
However,
I'm trying to make an ea that waits for the current price to breach the highest or lowest value of the 3 previous bars. How would I do this?