@roar It depends on specifying yes or no here..
But to be honest I don't know what the broker does with it as the expiration is send with the ordersend of the order.
@roar It depends on specifying yes or no here..
But to be honest I don't know what the broker does with it as the expiration is send with the ordersend of the order.
@pavansantani Doy you mean per chart (EA instance) or all charts in case you run it on more than 1 chart?
@roar I was thinking of this as well on the timer tab. We would need a multi dimensional array (or 2 with the same length) that covers the trade time and the direction Buy/Sell (if that matters). Convert a Unix timestamp to MT4 date and a second one that adjusts it for a couple of seconds.
@DynamOut will there be just 1 trade at a given time?
@tom-5 I haven't tried but I think it would work like this:
Like this you may also create projects with Al the trade management stuff etc. I believe.
@trader-philipps said in How to organize the EAs:
@tom-5 I haven't tried but I think it would work like this:
- Export V1.0.mq4 to a folder
- Copy V1.0.mq4 to V1.1.mq4 in that folder
- Create a new project MyNewEA
- Import V1.1.mq4 to that project
- Start making your changes
Like this you may also create projects with Al the trade management stuff etc. I believe.
It should read that you can create project / EA templates.
@trader-philipps Ups, after 144 should also go the turn off block for your entry conditions. Sorry I forgot that on my screenshot.
@bogdaiki Try AccountBalance() instead of Balance!
@zarbitz I do something similar in my current project. Hope you understand the logic.
The only difference is that I take ATR value (when trade was opened) as my TP1.
@trader-philipps Okay, found the error. I need to filter for prefeix not name contains.
@moon Something like this ..
@roar I finally decided to change the color to dimgrey once the tp was taken as you can see in the tutorial EA. That works best so far.
@ambrogio Well, so far I am struggling with it as well. The icefx offers a solution to do this. And (if nit in tester) the approach really works. The manual says ...
The program provides an opportunity to display news in the appropriate moment in “Backtest
mode”. To use this feature Expert Advisor (EA) running in “Backtest mode” has to be able to pass
directly the current time in backtest (backtest time) to the indicator. To do this, any Expert Advisor
(EA) has to put the current time to global variable called ”NEWS_EURUSD_TIMEOVERRIDE”
before calling the indicator (EURUSD indicates the currency pair in the test). The program will read
this value and displays the news accordingly.
So, if you do so in normal mode, it really works. Set a global variable with a unix timestamp of your choice and than drag the indicator on the chart and it displays the comming up news according the the indi settings. But if I set the global variables in tester with fxdreema, the indicator doesn't seem to realize the global variable.
Next approach I might use mql code instead of the blocks and check if they make a difference.
@zarbitz Take a look at my Tutorial EA I published recently. Actual Project Link: https://fxdreema.com/shared/Udh0CS5Ud
There I do similar things. For close on Friday, I have defined a constant in order to switch that feature ON/OFF).
On the On Init tab I have a condition that sets a flag to true or false depending on the configured parameter (instead of flag you could also use Turn ON /OFF blocks.
Assuming the CoF flag is set to true, I have on the on Tick tab the following separate path.
The last block connects to the central close Trades block.
For Turning ON/OFF trade entries take a look at this tree on the on Tick path ..
So Monday to Thursday I have different trading hours. On Fridays, if close on Fridays is true, I will disable the entry tree at the same time as the close should happen (in order to avoid that after closes new trades are opened again).
I'm currently working on the next Version of the Tutorial EA. At this time I'm integrating the icefx Newsinfo indicator (off-topic: "that bloody bitch!!!"). I'm quiet done at the moment, but want to draw a rectangle on the chart when there is a news time ahead. That works also quiet well so far, but all the nes times are in GMT. When I simply calculate my news before and news after thresholds, I have 2 time values to draw the rectangle.
However, the chart is in server time (not local time) and the my timestamps are all in gmt time.
Is there a smart way to convert my gmt timestamps into servertime? The case that during that period a change between summer and winter time may happen I neglect at this point.
Btw. that's how the new version looks right now.
@roar Well that depends on the pattern to trade. If there's a flag or trend channel and you try to catch the breakout, you would take into account some small losses and count for the big brekout. But knowing that consolidation usually will have 5-7 waves, you might be right with your assumption.
In my tutorial EA I tried to implement the icefx NewsInfo indicator. Somehow it from time to time diables Live Trading even if in settings it's configured not to do so. Hence I must admit that the newsinfo indicator is unfortunately not reliable for fxdreema use.
Furthermore I contacted darkmoonfx (former icefx) in order to ask how back-testing with that EA should work. I recently received the answer that the only remaining news profider (forex factory) doesn't offer the required data for bt and hence all efforts to make it run in bt was for nothing
All in all it's a very disappointing result.
So I kept on searching for more reliable news filters that might work with fxdreema EAs. So far I only found FFCal based indicators such as FFC or FFCal itself.
On latest FFCal versions I was facing strange time values sometimes even negative ones so I believe there might be an issue in times calculations. Btw. the new forexfactory url for weekly calendar is http://cdn-nfs.faireconomy.media/ff_calendar_thisweek.xml
FFC seems to count the minutes right, but it doesn't offer the minutes after news options.
So what I'm seeking for now is some help to figure out a constellation that works well on live trade (not BT) with any news indicator. As BT is not possible, it is a bit time consuming to test development.
So, has anyone already some experience in news integration or is willing to help a bit on that topic?
There might be a way in tweaking the xml file in order to produce some dummy news events, but I haven't dig deeper into this.
Btw. here is the actual project of Tutorial EA V1.03 with icefx NewsInfo included.
0_1581957668065_Tutorial-EA_V1.03.mq4
https://fxdreema.com/shared/XpmPAFtK
@brianharig Check my recent post. There is a project and an mq4 file you might take a look at.
https://fxdreema.com/forum/topic/8618/tutorial-expert-advisor-with-some-recent-issues-solved/14
@roar In my Tutorial EA I calculate the ATR value from the time the trade was opened (candle ID:1 at that time). Like this it is a constant for the trade.
vdATR is the price fraction and viATRPips calculate that price fraction in Pips as somehow that works more reliable with the trailing I observed.
@pan4pips Ok, I just build it. I couldn't manage to use the toggle block or at least there were no messages in the journal. So I decided to use flags.
First I created a button on the On Init tab.
Then on the on Chart tab I did the following ..
In order to display the message, I created a boolean variable and it is set to true if block 332 is passed and to false if block 331 is passed. The result I display in the alert text.
Now, on every click on the button I receive a message .. it toggles the flag ..
So, for your issue, you'd use the same check flag block with the desired condition /true or false to check) and place your exit logic behind the corresponding dot (orange or yellow depending).