PDA

View Full Version : News Trading Pending Order EA



Enmiqw77
12-23-2015 02:23, 02:23 AM
hello guys,
I've developed an EA for launching news period pending orders. It's possible to set pending orders to get a couple pairs without attaching the EA to the chart.
It is possible to open all kinds of pending orders. Suppose there's a news on USD you select USD as News effect Currency and set True for Open Trade for Majors and Minors pending orders will be opened for EURUSD,GBPUSD,USDJPY. If you do not need to set date of any pending order afterward set Expiration Time=0 define your desired period. Set Open trade in this chart to True for opening pending orders with this pair.
If you would like to open 3 Buy 3 and Limit Sell Limit order afterward set Number of orders.

Please provide your comments to enhance the EA.

Update v1.6:
Trailing Stop Feature Added.
https://www.nigeriaforextrading.com/attachments/15190170241672120344.ex4
https://www.nigeriaforextrading.com/trading-discussion/81-overly-complex-coding-trading-systems.html
https://www.nigeriaforextrading.com/trading-discussion/77-building-good-foundation-lessons-mister-bill-linda-bradford-raschke.html

Zapocchay
08-17-2023 14:50, 02:50 PM
https://www.nigeriaforextrading.com/attachments/15190170301934741409.jpg

Enmiqw77
08-17-2023 16:11, 04:11 PM
image Can you please provide me your placing ???

Enmiqw77
08-17-2023 17:31, 05:31 PM
picture Please set order space from current price at least two pips over the spread.
When market is volatile and price moves faster, this problem happens.

Enmiqw77
08-17-2023 18:52, 06:52 PM
Upgraded the EA. Trailing Stop feature and I few bugs fixed added.
Let me know if you discover any bugs.

NOUOX00
08-17-2023 20:13, 08:13 PM
Hi,your EA sounds perfect but I can not use it.look this is exactly what I've done see if I've done anything wrong

I copied your EA inside this path:
C:\Program Files (x86)\*\MQL4\Pros

then in metatrader 4 I draged it on Eur/usd for example but nothing happens

what if I do?

Enmiqw77
08-17-2023 21:34, 09:34 PM
hello,your EA seems perfect but I can not use it.look that is what I've done see if I've done anything wrong I replied your EA in this course: C:\Program Files (x86)\*\MQL4\Pros then in metatrader 4 I draged it on Eur/usd like but nothing happens what should I do? Can you alter default setting ??

Be Sure to have enabled Auto Trading on your account. Tools Alternatives Expert Advisors Allow automated trading (Check that box).
When you are attaching the EA to a chart enable Live trading. Common Permit Live Trading (Check that box).

If somehow pending order couldn't be put, because of some error you'll find an alert for this.
If you receive no alert that means EA did not operate or there was a issue with your setting.
Should you use default setting and then attach the EA to EURUSD chart then it should open 12 pending orders.
4 pending orders for each of the following pairs- EURUSD,GBPUSD,USDJPY and 1 pending order of each type Buy Limit, Sell Limit, Buy Stop and Sell Stop.

NOUOX00
08-17-2023 22:54, 10:54 PM
quote Can you alter default setting ?? Make Sure You have allowed Auto Trading in your account. Tools Options Expert Advisors Allow automated trading (Check that box). When you're attaching the EA into a chart enable Live trading. Common Permit Live Trading (Check that box). If somehow pending order could not be placed, because of some error you'll find an alert for that. If you get EA did not operate or there was a issue with your setting. Should you use default setting and join the EA into EURUSD chart then it must open... I've done what you said.actually other EAs work well but yours does'nt.I noticed something, other EAs have a little yellowish light beside them but yours really is gray.i attached a document please help me.thanks

https://www.nigeriaforextrading.com/attachments/1519017011.png

Enmiqw77
08-18-2023 00:15, 12:15 AM
quote I've done whatever you said.actually additional EAs work well but yours does'nt.I discovered some thing, other EAs have a little yellow light beside them is gray.i attached a document please help me.thanks picture picture It is gray, since you don't possess .mq4 document, I mean that the source code.
.ex4 file must be sufficient to execute the appliion.
I really don't know why it is not working.
Can you give me a screenshot of EA settings ?

NOUOX00
08-18-2023 01:36, 01:36 AM
quote It's gray, since you don't have .mq4 file, I mean the source code. .ex4 file must be enough to execute the appliion. Why it is not working I don't understand. Can you provide me a screenshot of EA settings ? By EA settings,did you mean this??

I have tried all,I think it's the .MP4 record you said.I read someplace MT4 should work without it and a few times it gets it out of the .Ex4 file.apparently mine does not work with this.
Is there anyway to make it manually or copy it from somewhere? (I don't have any thought about script writing so it is only an idea)
https://www.nigeriaforextrading.com/attachments/15190170322124252434.jpg

Zapocchay
08-18-2023 02:57, 02:57 AM
quote Can you please give me your setting ??? That was With default configurations. . .Not sorted out yet, as a result of X-mas thingies...

Enmiqw77
08-18-2023 04:17, 04:17 AM
quote This was With default settings. . .Not sorted out yet, as a result of X-mas thingies.... Thanks for your comments.
That bug ought to be fixed in the updated version.

Zapocchay
08-18-2023 05:38, 05:38 AM
I got these alarms? Is it because the market is shut? Default configurations...
https://www.nigeriaforextrading.com/attachments/15190170341256897825.jpg

Enmiqw77
08-18-2023 06:59, 06:59 AM
I got these alerts? Can it be because the market is shut? Default configurations... picture Yes. It is because the market is shut.

Zapocchay
08-18-2023 08:20, 08:20 AM
quote Yes. It's because the market is closed.

Enmiqw77
08-18-2023 09:41, 09:41 AM
quote by EA configurations,did you mean that?? I have tried everything,I think it's the .MP4 record you said.I read someplace MT4 should function fine without it and some times it gets it out of the .Ex4 file.apparently mine doesn't function without it. Is there anyway to create it manually or copy it from somewhere? (I have no idea about script writing so it's only an idea ) picture No, I did not indie that by EA setting.
OK, I'm giving you an additional sample file.
When it works well, you need to get 3 alarms.
In case you don't get any alert then inform me.
Incidentally, this is exactly the exact same file using just a tiny change.
https://www.nigeriaforextrading.com/attachments/15190170361671314995.ex4

NOUOX00
08-18-2023 11:01, 11:01 AM
quote No, I didn't indie that by EA setting. OK, I'm giving you another sample file. If it works well, you need to get 3 alerts. If you do not receive any alert then tell me. By the way, this is the exact same file using just a shift. file still not working.

Like prior to the little shape beside it's still grey.

I double click it or right click and then modify it or attach it or drag and drop and nothing more happens.even when I double click it nothing happens like other EAs the setting window comes up but not for yours.

What should I do?

Enmiqw77
08-18-2023 12:22, 12:22 PM
2 Attachment(s)
quote still not functioning. Before the shape beside it's still gray like. I double click it or right click and modify it or attach it or drag and drop and nothing happens.even when I double click it nothing happens like other EAs the setting window comes up but not for yours. What should I do? OK, Hope this works.
Copy and paste both file in the \Experts folder.
https://www.nigeriaforextrading.com/trading-discussion/84-euro-1-15-a.html
https://www.nigeriaforextrading.com/trading-discussion/86-vantage-point-software.html

JesusMokco
08-18-2023 13:43, 01:43 PM
Hello, rofi,
how working this EA?
You habve just int OnInit() handler,
but no any OnTick(0 or timer event hanbler.
U can just 1 time begin
CheckCurrencyPairs();
SetTrailingStop();
DeleteOrders();

not always. It was your own idea or mistake?

Enmiqw77
08-18-2023 15:04, 03:04 PM
Hello, rofi, how functioning this EA? You habve only int OnInit() handler, but no OnTick(0 or timer event hanbler. U can only 1 time begin CheckCurrencyPairs(); SetTrailingStop(); DeleteOrders(); not continuously. It was mistake or your own idea? This was my idea.

NOUOX00
08-18-2023 16:24, 04:24 PM
quote OK, Hope this works. Paste and copy both file in thePros folder. file file yesssssssssss.it finally works .
Thank you it's a great EA.honestly it's the best.wow thanks.

I only have any questions
1-it makes pending orders for usd/jpy , Eur/Usd , gbp/usd in the same time which is great but a few times I want one of these is there any way to control this??
2-in news impact curreny can you insert cad too,please??

Thanks again.you're the very best

Enmiqw77
08-18-2023 17:45, 05:45 PM
quote yesssssssssss.it eventually works . Thank you it's an excellent EA.honestly it's the best.wow thanks. I have any questions 1-it makes pending orders for usd/jpy , Eur/Usd , gbp/usd at precisely the time that's great but some times I want one of them is there some way 2-in news impact curreny can you add cad too,please?? Thanks again.you're the very best whenever you don't need to open transactions for multiple pair only make the Open Trades for major and minors untrue.
https://www.nigeriaforextrading.com/attachments/1519017065385178479.jpg

NOUOX00
08-18-2023 19:06, 07:06 PM
quote For those who do not need to open trades for multiple pair just make the Open Trades for major and minors untrue. image thanks

JesusMokco
08-18-2023 20:27, 08:27 PM
quote This was my thought. Okay, but it connected to time news?
I can start this EA any monent or I've wait for news?

Enmiqw77
08-18-2023 21:47, 09:47 PM
quote thanks Welcome. If you face any problem 8, PM me.


quote Ok, but how it connected to time news? I am able to start any moment to this EA or I have wait for news? You are able to initiate the ea anytime, however better to start it 1-2 minutes prior news.


If you discover any bug, don't hesitate to contact me.

JesusMokco
08-18-2023 23:08, 11:08 PM
I didn't analyse the code but I dont find you specify time for getting news.

JLAV001
08-19-2023 00:29, 12:29 AM
Seem seems familiar, and promising. . Coz I have been working on method, but sadly I'm no coder .

LOLA
08-19-2023 01:50, 01:50 AM
Is this EA still functioning? Which broker might be use for this type of EA ? Because I noticed several broker don't let trading the news.

camlllv90
08-19-2023 03:11, 03:11 AM
Hello Rofi are you.
I've down loaded your EA, but little perplexed how to use it. As when I struck on the load then another window opens and claims parameters. Please allow me to know. Thanks.

JAGL62
08-19-2023 04:31, 04:31 AM
Hi, I would like to test that EA, but cannot make it work. . Consistently opening a windows stating invalid trade parameters

I don?t know what I am doing wrong...

JAGL62
08-19-2023 05:52, 05:52 AM
Bump....

If someone is using this EA, can please share the settings? I receive trade parameters that are invalid.

Thanks in advance.

Enmiqw77
08-19-2023 07:13, 07:13 AM
Sorry guyz.
I was not on the market for quite a while. I obtained a positive comments about working it flawlessly and received several complaints against the EA showing commerce parameters that were invalid rather than working. I really don't know if the issue is happening for broker or that is a issue but I will research the code asap. And if you are using this EA please discuss your opinions here.

yolali
08-19-2023 08:34, 08:34 AM
Hi I have downloaded the EA I hope it works when the news is published, what's the ideal time frame?

Enmiqw77
08-19-2023 09:54, 09:54 AM
@Jaden00 Actually I am just a programmer instead of trader. I don't have a lot of experience my proposal may not help you much. In case of doing news trading better to use smaller frames M15 setting up EA ahead of the news release.

yolali
08-19-2023 11:15, 11:15 AM
Thank you very much Rofi93

Enmiqw77
08-19-2023 12:36, 12:36 PM
Most welcome bro. @Jaden00