Forex Zone - Forex Forum

EA AND ALERTS

Discussion started on Indicator Modifications

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Greetings, 
I would like alerts like pop-up,sound, push, email when the buy and sell arrows appear over the price lines indicator.
Also, I would like to convert this to an EA. It must execute buy and sell orders when the respective arrows go over the price lines. It must give an option to enter the stop loss and take profit in pips - This can be entered on the field of the EA when setting it up.

Thanks very much,

Ken

Linkback: https://www.forex.zone/indicator-modifications/16/ea-and-alerts/655/
#1 - January 11, 2019, 10:22:44 PM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Hi Ken
You only uploaded the template without any indicators.
We need the indi's (in MQ4 or EX4) to write an EA, and if you want the indi to send an Alert, we will also need the indi's MQL4  file.
#2 - January 11, 2019, 11:25:09 PM

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
My apologies. here are the files.
I don't have the MQ4 file for the price lines indicator and hoping you don't need it.

Ken
#3 - January 12, 2019, 05:14:47 AM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Greetings,
I would like alerts like pop-up,sound, push, email when the buy and sell arrows appear over the price lines indicator.
Also, I would like to convert this to an EA. It must execute buy and sell orders when the respective arrows go over the price lines. It must give an option to enter the stop loss and take profit in pips - This can be entered on the field of the EA when setting it up.

Thanks very much,

Ken
I see there are alerts settings in both indicators.
If you want a different alert, please send screen shots of when they must be triggered. 
Same for the EA, please send screen shots of when you want it to enter buys / sells. I can code one with the current arrows without the modification you want, it will only take trades in the arrow direction when Odin1 displays an arrow.
#4 - January 12, 2019, 06:41:04 AM

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Kindly see screenshot below. Only enter trade and give alert on the arrows outside the price lines circled in yellow.
#5 - January 12, 2019, 06:16:10 PM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Here they are.
This is a separate indicator, because I only had the source code of 1 of the 2 indi's.
It should pop up Alerts even if the indicators are not loaded on the chart.

EA also attached, I've included the indicators inputs if you need to change that. Please test it and see if you need changes
#6 - January 12, 2019, 11:40:22 PM
Attachments:
« Last Edit: January 12, 2019, 11:42:19 PM by Francoisvs »

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Greetings,

I am busy testing it and so far it's looking good and doing what I requested of you.

Thanks very much and I must say your service and professionalism is unbelievably excellent.

Ken
#7 - January 14, 2019, 10:18:01 AM

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Greetings,
Is it possible for the EA to scan all 28 pairs(on one chart) and execute orders instead of me open 28 charts and loading the EA.

Ken
#8 - January 14, 2019, 01:46:07 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Which 28 pairs are you referring to?
Your 28 pairs might differ from mine.
What I can do, is if you have the Advanced Currency meter indicator, I can let the EA scan all the pairs the ACM oversees?
Just a word of caution, you won't be able to run it on strategy tester then in MT4, MT4 strategy tester can only handle one symbol at a time.
#9 - January 14, 2019, 03:11:19 PM

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Hi, as always thanks for your swift and faithful reply.
The ACM pairs would be fine but it would be nice if I can eliminate some pairs of my choice as an option since the spread on those might be high.
If this idea proves too complicating for you, then maybe give me an option to enter the pairs of my choice.

Thanks very much
#10 - January 14, 2019, 04:25:55 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
This was interesting to do, I tested it as well as I could without strategy tester. 
It placed orders at the buy/sell signals (even though I had to manipulate the signals) , even the alerts from the indicators come through on the EA for each ccy pair.

Just to quickly explain how it selects currencies:
Advanced currency meter must be loaded, the EA is set to ignore everything if it is not loaded (You will get a message box to warn you)
There is a drop down menu for what to trade 

  • Top 6 (EURUSD, GBPUSD, USDCHF,USDJPY,USDCAD and AUDUSD) (The 1st 6 currencies in the indicator window)
  • Top Row - the top row in the Indi window
  • All _ I don't think I need to explain this one ;)


There is a spread filter, it is set in points (which is 0.1 pip) , if the spread is more than the set amount in the inputs, the EA will ignore trades on that pair. (Default is 60 (6 pips)).


You should still just run it on a demo account, maybe even on a M1 time frame to see if the signals and order entries and exits are good. Play with it and let me know please.
PS. I can take it one step further if you want, and in stead of automatically placing an order, the EA will pop up a message box, in the message box you can decide to take the trade or ignore the signal, keep in mind though, an EA "freezes" when a message box pops up while it waits for your input, so you are not close to the PC to act on the message box, you might loose out on other trades, and/or the EA will not be able to use the move to break even or trailing stop functions until the message box is acted upon.
#11 - January 14, 2019, 11:27:27 PM
Attachments:

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
Thanks for the extreme effort you put into this.
I have as stupid question. Do I load the "advanced currency meter" as a normal indicator. Can you send(attach) this "advanced currency meter" to me.
#12 - January 15, 2019, 09:55:21 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Yes, Load it as a normal indicator. 
#13 - January 15, 2019, 11:31:10 AM
Attachments:

  • Jr. Member
  • Posts: 50
  • Points: 0
  • Likes Received: 7
  • Reputation: +0/-0
The advanced currency meter does not want to load on my chart. Any idea what I am doing wrong. I even changed brokers.

Please help
#14 - January 15, 2019, 12:24:07 PM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
The advanced currency meter does not want to load on my chart. Any idea what I am doing wrong. I even changed brokers.

Please help
What are you seeing when you try to run the indicator? Can you attach the expert log file or take a screenshot of it?
#15 - January 15, 2019, 12:27:44 PM

Members:

0 Members and 1 Guest are viewing this topic.