@bigape Good to know and thanks for the feedback!
Posts made by trader.philipps
-
RE: EXPORTAR VENTANA DE DATOSposted in General Discussions
-
RE: Multiple Condition Trailing Stopsposted in Questions & Answers
@chemdog So how do you specifiy your initial SL? I use similar calculation in one of my projects.

This custom MQL code wil store the bar when the trade was opened (vi_order_bar ist my integer variable I specified in fxdreema).
Once you know the candle ID you may be able to re-calculate the SL valid for that candle.
-
RE: MT4 testing same EA no matter what MQ4 I chooseposted in Bug Reports
@sirboyce Are you sure that if you compile in Meta Editor there are no errors reported? May you send a project link that we can have a look?
-
RE: Trying (and failing) to create a simple EA...appealing to all FXDreema gurus!posted in Questions & Answers
@sirboyce Switch back to candle ID 1, please! It will help to understand what's printed on the chart and what EA did better.
However, if you don't want a new trade each bar that the conditions are met, you should put a no trade block in front. It's that what you are complaining about? -
RE: Add value of Atr to Moving Averagdposted in Questions & Answers
@aramsamsam69 Here are the blocks for the upper and lower limit. If you need help for the rest just let me know.

-
RE: Multiple Condition Trailing Stopsposted in Questions & Answers
@chemdog Cool! If profit in money is sufficient for you. The other way would be to re-calculate the initial SL.
-
RE: Four Conditions Met Before Trigger Orderposted in Questions & Answers
@edward-brazil sorry to tell, but you're confusing me. Refrain from your visual analysis and try to think how an algorithm may look like.
If you say there has to be a ma crossing, you need to define a validation and an invalidation criteria, because all ma sooner or later cross each other sometimes.
Or consider the crossing is not the important condition, but price has to be or close above or below a certain ma.
I checked some of the conditions on lower timeframe and there in some cases your buy conditions were fulfilled, when market already had changed to opposite just because the ma crossing was missed.
Do you understand what I mean? -
RE: Read file dataposted in Questions & Answers
@ekifox yepp, my result looks similar. It doesn't get the string but a byte it looks like.
No clue at the moment. -
RE: Four Conditions Met Before Trigger Orderposted in Questions & Answers
@edward-brazil Okay, I digged a bit deeper into this. Here is what I did so far.0_1569375072212_EA_Help.mq4
The thing is that you set your variable to true once the certain conditions eg. for buy is given.
Once that happens, there are no checks if your lock conditions are still valid. Only if a trade is created once, the variable is reset to false and lock conditions are checked again.I re-ordered the conditions and let the EA draw a line if all lock conditions are met. So you can see where they're valid. It looks loke that now.

But you can take the line out.Here is the reordered version.
0_1569375936964_EA_Help_2.mq4 -
RE: How to program this idea? indicator value is above the last X candles highsposted in Questions & Answers
@ibrahamt I think that should do the trick (looking back from candle ID 1)

-
RE: Four Conditions Met Before Trigger Orderposted in Questions & Answers
@edward-brazil Okay .. upper chart. When you mark the buy entr y the pruple (300 MA) was already above the white (500 MA) again. That means to me that it doesn't matter if 300 or 500 is above each other, just price must be below of them, right?
If that is the case for the other MA's as well, you can forget about the x > / x< stuff.
I that case you'd just check close price < all of the MAs besides the dark blue (10 MA).
Here you want to open a buy trade each tim the price xcosses 10 MA (dark blue).Is that's what you want? Or do there have to be some alignment of MAs such as yellow must be under blue, blue under purple, purple under white?
-
RE: Read file dataposted in Questions & Answers
@ekifox that's strange! Would you mind to share your project and the text file?
-
RE: Four Conditions Met Before Trigger Orderposted in Questions & Answers
@edward-brazil I'm on mobile at the moment and can't see much. Will check later when on PC.
-
RE: How to set consecutive conditionsposted in Questions & Answers
@seb-0 there are several ways to do that such as setting and checking flags or turn on/off blocks.
If the order is pretty clear you may still use a single line and start with the most recent action or with the strictest one.
So if your condition is a) X crosses y and b) 2 next candle has to be something, you'd start with b) and in the line check a) afterwards.Always think from the point in time the EA is at current.
-
RE: Read file dataposted in Questions & Answers
@ekifox if you print the string, what format does it has? Can you just print it to terminal lo with the Print() function?
-
RE: Read file dataposted in Questions & Answers
@ekifox Use StringToDouble method to convert the string to double.
-
RE: Multiple Condition Trailing Stopsposted in Questions & Answers
@chemdog You may try to re-calculate the initial SL. That would be the most precise method.
If you have a TP set based on initial SL you may use that in order to re-calculate the initial SL. -
RE: Trying (and failing) to create a simple EA...appealing to all FXDreema gurus!posted in Questions & Answers
@SirBoyce Something like this maybe?
Haven't done much testing but the basics should be fulfilled.
-
RE: Multiple Condition Trailing Stopsposted in Questions & Answers
@Chemdog I think you are facing exactly the issue that I previously described in point 2)
Let's assume your SL is 10 pips.
Once your BE condition is met, your Sl will be something like 0 pips from open price.
Next time EA wants to adjust SL it takes 200% of 0 pips as it doesn't know the initial SL.Do you understand now what I meant?
-
RE: Trade manager button ea problemposted in Questions & Answers
@fabien-s 4 eyes see more than 2. Sometimes I also seek for ages in my own projects before I find the issue.