Forex Zone | Forex Forum

Loukie

Discussion started on MT4 / MT5 EAs

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_clip
Hi all

I have finally finished the IN1 EA. (Or I think I did :D)

Please find it attached.

This is the basic version, the more comprehensive version also uses the Advanced Currency meter, where it calculates the difference between currencies and only enter trades when the difference is larger than a specific value. I will attach the meter as well, even though I have posted it on the forum before.

The draw back with that version is it is HUGE file, because I have to define each currency and the put bools in for each currency to check name and values etc, (eg, if Symbol() == USDGBP, && UsdValue-GbpVal >= 2.5 etc etc). Which I had to do for each pair.

Anyway, this is the version I am trading live manually ( I sometimes use the AC indi as well, and the currency meter just to confirm strength)

Preferred pairs: GBPUSD, USDCAD.

Timeframe H1

M15 also work fine, just optimize the RSI/Momentum arrows.


RSIMomentum arrows indicator is available on this site to download, I don't want to upload it as well,  as it is copyright by the site. (The EA will not take trades without it.)

Please post any comments or suggestions, or if you enjoy this.

Francois


PS. Admin / CrazyProg.

Is there a way for an EA to select a pair based on the meter values, and then select that pair , check for the other trade triggers and trade on that pair?

I wrote a small script where it pops up  a message box with the difference in value,

Code: [Select]
void OnStart()
  {
//---
double Chf = ObjectGetString(0,"CHF_val",OBJPROP_TEXT);
double Eur = ObjectGetString(0,"EUR_val",OBJPROP_TEXT);
double Usd = ObjectGetString(0,"USD_val",OBJPROP_TEXT);
double Gbp = ObjectGetString(0,"GBP_val",OBJPROP_TEXT);
double Jpy = ObjectGetString(0,"JPY_val",OBJPROP_TEXT);
double Cad = ObjectGetString(0,"CAD_val",OBJPROP_TEXT);
 

double EurUsdDirection = (Eur-Usd);
double GbpUsdDirection = (Gbp-Usd);
double UsdChfDirection = (Usd-Chf);
double UsdJpyDirection = (Usd-Jpy);
double UsdCadDirection = (Usd-Cad);
MessageBox ((" EurUsd "+DoubleToStr(EurUsdDirection,2) +
"\n GbpUsd "+DoubleToStr(GbpUsdDirection,2) +
"\n UsdCad "+NormalizeDouble(UsdCadDirection,2) +
"\n UsdChf "+DoubleToStr(UsdChfDirection,2) +
" \n UsdJpy "+DoubleToStr(UsdJpyDirection,2)),Symbol()+"Currency Strength",0 );  
  }


Linkback: https://www.forex.zone/mt4-mt5-eas/7/loukie/352/
#1 - October 27, 2018, 02:15:10 AM
Attachments:
« Last Edit: October 31, 2018, 06:17:11 AM by Mikser »

  • Loukie in MT4 / MT5 EAs_index
  • Posts: 3000
  • Points: 33272
  • Likes Received: 2822
  • Reputation: +156/-13
Loukie in MT4 / MT5 EAs_xx
I'll try to check this when I get some time.

By the way, you can share the RSI Momentum Arrows indicator wherever you like. It is freely available to download and has no restrictions. I appreciate the precaution though.
#2 - October 27, 2018, 12:48:30 PM

  • Loukie in MT4 / MT5 EAs_index
  • Posts: 3000
  • Points: 33272
  • Likes Received: 2822
  • Reputation: +156/-13
Loukie in MT4 / MT5 EAs_xx
Is there a way for an EA to select a pair based on the meter values, and then select that pair , check for the other trade triggers and trade on that pair?
Yes, sure. If I understand your question correctly, you could just put all chart symbols you want to check/trade into an array and then simply cycle through the array. It will go through the array one by one, check the value for the selected symbol, and trade if needed.

I was going to take the time to review the code and that's why it took me so long to get back to you, but I just saw that you posted no source code. I hope the above made sense though.
#3 - October 30, 2018, 10:59:34 PM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
Hello Francois,

first of all thanks for your hard work and effort.

I am not an ea trader, but here is a suggestion about HUGE files, which can slow down mt4 pretty hard.

In all the years I never met a trader who is seriously and constant trading 28 pairs.

If you can `t make money with 8 pairs, what makes it better trading 28?

Would it be possible to reduce the HUGE file to, say 8, 10 or at most 12 pairs ??

With those numbers every trader should be more than happy, don`t you think?

Drax

#4 - November 01, 2018, 07:02:45 AM

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_clip
Hi Drax
Thanks for the reply
I actually only trade EURUSD, GBPUSD and USDCAD.
The reason the other Loukie is so huge, is because I also incorporate a currency meter, as mentioned above, so it only takes trades if the indicators are all "in line' AND the currency meter has a minimum strength value, but to get that value in with the indi values, takes another 4 bools, which then triggers the money management or fixed lots bools.
Only this 1 extra "need" increases the file from 1200 odd lines, to over 5000 :'(
If there is an easier way, please let me know.

PS Admin etc.
I also attach a script which I wrote to get values of the Forex Supreme Currency meter, also attached. In order for it to be accurate, the 'Show Symbols Sorted" must be set to False.
What I want to do, is if the pair value (vxx) is above(below) 75%, it should enter a trade for that currency (cxx) pair.
I can always just drop the EA on it's own chart, but this indi also loves resources.
I understood from Admin's previous post, I must put it in an array, and that is where I loose it, :-) , any suggestions?
#5 - November 01, 2018, 11:32:45 AM
Attachments:
« Last Edit: November 01, 2018, 11:34:38 AM by Francoisvs »

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
Wow Francois,

are you sure the profit you make with this monster (5000) is worth the work?

If so, I `m glad, but could you reduce pairs, and use another currency strength meter which is not eating your PC including the hardware ? :P

Now serious, I wish I could give you a solution for this very interesting core of your strategy.
#6 - November 01, 2018, 12:00:33 PM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
....hmm...

what if you put on a seperat chart, a pair you don`t trade, the currency strenght meter, which you are sure is the best, (ok, this would be for manually trading and get a confirmation, if everything is in your favour)

Bring all your indicators in line, delete the currency strength meter from the ea and follow my suggestion for a brand new indicator (also to include in your ea)...

which cares about momentum in that way that 3 timeframes of RSI 5 have to be above/below level 50 (a very old strat on it´s own) and point in the same direction ??

I started a topic about that new indicator, but non of the members here is viewing it, or interested in that way of thinking

called "Convergence" (floating all together in one direction). Take a look at that topic please and maybe you find a solution, just by a different way of combination, what you have in mind.

Drax
#7 - November 01, 2018, 12:10:31 PM
« Last Edit: November 01, 2018, 12:12:15 PM by Drax »

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_xx
I just read your topic. 
Seems very interesting, I will download that indicator too.
I also have a RSI-divergence indicator if anyone is interested.
To get back to my monster, I actually trade it manually, so there are no issues, and yes, the meter is on a separate chart where I spot my manual trades, I just thought of maybe trying to code an EA for it. 
#8 - November 01, 2018, 03:13:58 PM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
I just read your topic.
Seems very interesting, I will download that indicator too.
I also have a RSI-divergence indicator if anyone is interested.
To get back to my monster, I actually trade it manually, so there are no issues, and yes, the meter is on a separate chart where I spot my manual trades, I just thought of maybe trying to code an EA for it.
Hi,

thanks for reading this highly interesting indicator idea.

Your ea idea is very, very interesting too. Please find a way, I am sure many would love to have it.

To your offer about a RSI divergence indi: I say, it is impossible to code any kind of profitable divergence indi, because a indicator can never "know" if the divergence is after 3, 5, 8 or 11 candles is the one which brings profit, it can only indicate a divergence.

Divergences do work, but there will never be a code which make you get in trades and win very often.
I am sure you came to the same conclution.

BUT....(there is always a but, they even made a song about it)

with my idea of "convergence" of 3 Timeframes  RSI 5 is above level 50 (momentum) and all of them pointing north, you will win very, very often after alert triggered when the smallest timeframe "joins" the two higher timeframes.

Question about the currency strength indicator: What makes it better than the other 21 (or so) ?

I`m asking because having it on the side while following my "convergence" idea, will be even better.

Drax
#9 - November 02, 2018, 03:57:39 AM

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_xx
I don't say the strength indi is better than others, I perfer this one as it shows the symbols and strength as a %, also the currencies as the strongest and weakest. So it gives a good perspective at a glance.

Now, on you MTF RSI. 
Do you still want the Alerts and/or notifications when all point the same way?
I am new at coding, (as you can see how many times I ask advise from Admin and CrazyProg) but I like challenges
#10 - November 02, 2018, 05:29:47 AM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
I don't say the strength indi is better than others, I perfer this one as it shows the symbols and strength as a %, also the currencies as the strongest and weakest. So it gives a good perspective at a glance.

Now, on you MTF RSI.
Do you still want the Alerts and/or notifications when all point the same way?
I am new at coding, (as you can see how many times I ask advise from Admin and CrazyProg) but I like challenges
Hi,

please don`t get me wrong, when I ask for the currency strenght meter :)

It is very hard to find one, which is realy helpful, that`s why.

Well I wish I can code as you can. I wouldn`t ask strangers who don`t know me, do not have time, do not see the potential of a convergence indi etc.

I think I descriped everything in detail in my topic incl. spezial options to turn on or off. But those extras may come later.

Core is what I am sure about....profitable trades in trend direction after popup alert triggers (maybe more types of alert)
#11 - November 02, 2018, 05:44:46 AM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
...advanced currency meter doesn`t show up on the chart...

What did I wrong?
#12 - November 02, 2018, 05:51:06 AM

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_xx
Advanced Currency meter, or FPS Meter?
#13 - November 02, 2018, 06:48:26 AM

  • Posts: 30
  • Points: 0
  • Likes Received: 4
  • Reputation: +1/-0
Loukie in MT4 / MT5 EAs_xx
Advanced Currency meter, or FPS Meter?
The advanced currency meter.

I got it (if exactly the same) from mql4 site, it shows up then, but all is "7", subwindow crashed into a existing subwindow,

added prefix, set market overview to "show all"....doesn`t work. Are you sure, this is the best you could find ?

Does it show only daily or current timeframe strength ?
#14 - November 02, 2018, 06:57:59 AM

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
Loukie in MT4 / MT5 EAs_xx
Advanced Meter and FPS meter are not the same.
FPS also has the advanced meter.

It calculates the currency strengths, no matter what TF you have them on.
#15 - November 02, 2018, 07:30:04 AM

Members:

0 Members and 1 Guest are viewing this topic.


* Share Topic

Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter