Hi Guys. I am trying to program an EA referencing data in the previous two days. It is working fine except for Mondays and Tuesdays as my broker has data for Sunday and the EA identifies this as a previous day. I would like to no if it is possible to tell the EA to ignore sunday data (not the trade option, but ignore the data for its conditions and go back one day further). The other solution I cam up with is to just copy the conditions and change them to go back one day further on Monday and Tuesday. But the weekday filter does not have this option only allows trade or no trade
Posts made by Xander
-
Ignore Sunday/alter EA variable look backposted in Questions & Answers
-
RE: See formula resultposted in Questions & Answers
I am using the desktop version, is there maybe something similiar there?
-
See formula resultposted in Questions & Answers
Hi guys, anyway to have the formula result of block be posted to the journal and shown on the screen in visual test mode? Trying to solve a problem in one of my EAs.
-
RE: Draw line for average bid and askposted in Questions & Answers
Thank you found it, works perfectly. Anyway to have the EA draw these line in an indicator window?
-
RE: Draw line for average bid and askposted in Questions & Answers
Apologies for all the questions. I created it in the online version for now and noticed a few blocks that might make it better. If I use the write to file block can I store the data (bid and ask price) somewhere and have the indicator somehow pull from it to draw a new line?
And then last question, is there anyway to draw the line in an indicator window rather than the chart.
Thanks again for the help
-
RE: Draw line for average bid and askposted in Questions & Answers
Awesome thanks. I double checked, I use the offline version of the program and it does not have this block (I travel a lot and don't always have access to the internet). I tried updating several times but the download option downloads build 100, which is the same one I have installed so not sure how to update the offline version?
-
Draw line for average bid and askposted in Questions & Answers
Hi I would like to have my EA draw a line equal to the bid and another equal to the ask. I need it to plot the historic bid and ask as well (it can keep running and draw it real time if this is not available data on mt4). The line can be similar to a MA or even MACD in an indicator window, I just cant find a block to draw something like this
-
RE: Cant get modify stops block to workposted in Questions & Answers
@fxdreema said in Cant get modify stops block to work:
MathAbs(OrderClosePrice() - OrderOpenPrice())
Works perfect thank you
-
Cant get modify stops block to workposted in Questions & Answers
Hi all. Please help. My EA is programmed to open two trades. When certain conditions are met it needs to close the most profitable one (this is working), send a notification (also working) and modify the stop of the remainder based on the result of the below (not working). Not sure why the stop is not being modified?

-
Delete objects below when next object hitposted in Questions & Answers
Hi Guys, would really appreciate some help on this, its been breaking my brain. If a draw a series of parallel horizontal lines on a chart (lets call them 1, 2, 3 and 4), how do I tell the EA delete lines 1 and 2 when line 3 is hit. And then later on delete line 3 when line 4 is hit. The problem I have is that for the EA I have created lines 1,2,3 and 4 must be identical except for their price level (same name, description, color etc). The second problem I have been experiencing is that the EA is intended for market opens, so price may open beyond line 3 and since price is beyond the next line for lines 1 and 2 they must be deleted, but line 3 should not be deleted as line 4 has not yet been hit
-
Modify stop loss helpposted in Questions & Answers
Hi Guys. I created an EA to modify my stop loss to equal the current profits on my account. If the account balance is USD100 and equity is USD120 the profit works out USD20. The EA then modifes the stop loss to a price level of 20 and not a loss of USD20. Below is the block I am currently using. Please help.
-
Candles in the past touching levelposted in Questions & Answers
Hi Guys
So I am working on an EA which identifies a swing low and draws a line there. What I am trying to figure out is how to identify other swings historically touching the level. My current method is applying the same conditions to candles and just changing the ID, this is very inefficient and not practical for the periods I want to go back. Any ideas?
-
RE: Not sure how to draw multiple objects at same timeposted in Questions & Answers
Nevermind guys, noob (me) being stupid
-
Not sure how to draw multiple objects at same timeposted in Questions & Answers
Hi, still a noob so apologies for a stupid question, I have two sets of conditions below, the one draws a line and the other doesn't, I am not sure why?


The draw line blocks are below respectively

-
Conflicting conditionsposted in Questions & Answers
Hi
I have 2 separate conditions (see below image). I have attached a "sell now" block to each separately and it worked fine when testing. When I combined them (ie both conditions must be true for sale to execute) then the EA starts running but freezes in MT4. I have tried this on several versions of MT4 and brokers and two laptops. Not sure what I am doing wrong (still a noob so might be me being stupid)

-
EA self terminatedposted in Bug Reports
Hi, loving the software, but I keep receiving the error EA self terminated, not sure why?

