Adding custom Currency Strength Meter indicator
-
Re: [Creating EA Help!: Trend Continuation with Currency strength](moving avg)
Hi everyone,
Checking the forums, I saw this Currency Strength Meter mentioned from ForexFactory here before in a thread, but not much came of it. Likewise, I posted this EA almost a year ago and trying to add this custom mql4 indicator CSM got me discouraged. I've done my due diligence and educated myself for the most part with FxDreema basics, but as a newbie still cannot figure out this custom code so I'm reaching out for help.I've completed most of my project which is a lower timeframe pullback to an EMA for continuation of the higher timeframe trend. Here's what I'm looking to get help with:
Add the custom Currency Strength Meter as a trade parameter where if multiple pairs are signaling/triggering, the currency strength meter condition decides the "best" pair to trade at that time by looking at the higher timeframe's numbers for currency strength. (i.e. JPY is weak across the board on M15, GBP is quite strong across the board on M15, so this condition would compare all JPY pairs and have the H1 numerical value for csm be strongest for GBPJPY even though other pairs are triggering too.) It should work that M15 setups check the H1 csm, H1 setups check the H4 csm, and H4 setups check the Daily csm.
Again, I've tried to do as much as possible for this project and hate asking for an expert to ultimately do this for me, but this code (6,000 lines) is daunting and is wayyyyyy above my basic FxDreema 101 knowledge. It seems like the best way would be to compare the objects/numbers but I'm really not sure.
Thank you in advance for any input, it is greatly appreciated.
Here is my project: https://fxdreema.com/shared/n748n0EXd (updated)
Currency Strength Meter Download: 0_1607670959191_CSM original.mq4
Currency Strength Meter FF thread: https://www.forexfactory.com/thread/852082-csm-indicator-hanover
Instructions to get CSM to work properly on your MT4: https://www.forexfactory.com/thread/post/10041710#post10041710
Or else you'll get a ton of errors. -
Here's a basic picture from today of the trade setup I'm looking for with M15 entry setup continuing the H1 overall trend
(which is also seen on H4 too).

-
@sauce An impressive work for a newbie. Congratulations! I have some previous questions.
- I see sell pe4nding orders only. No buys?
- Why are all your sell pending order blocks disconnected from all blocks except each ones' 'once per bar'?
- What are those EMA checking blocks supposed to do? Ther are not connected to any other structure. What are they supposed to check?
-
@l-andorrà Thanks for the kind words!
-
Well, that's embarrassing... haha. I totally forgot to change them to the appropriate pending buy orders. I will update now!
-
I'm going to stick the Currency Strength Meter condition in that space to connect ZZ to CSM to Once Per Bar.
Since these are separate trading setups, I think I will need to group them by a separate group number for each one, right? I don't know how to do that so it includes the conditions though. (That way I'm not closing orders above the 30EMA when they are looking for a pullback to 50EMA.) -
The gray EMA checking blocks were just to label everything and keep me organized. I will delete them. Is there a way to make a comment or phrase to put a title above each one?
-
-
@sauce Ok. Please incoroprate all those changes and try your EA again. If it doesn't work, just let me know.
On question 3, you can always create areas and then edit them to include any explanatory text required:

-
@l-andorrà Changes updated. I updated the link as well in the initial post. Looking to add that currency strength meter custom indicator but not sure how to do that. Thanks!
-
@sauce Well, let me insist, please. What are these blocks supposed to do?:

Ther are NOT connected to any buy/sell pending order block. Why are there used then?
-
@l-andorrà They are waiting to be connected to a custom MQL4 indicator for currency strength condition which I’m stuck on creating, once that is completed, that will attach to the once per bar which connects to the buy/sell orders. Basically just waiting for the missing link!

-
@sauce Ok. Now it makes sense. Well. I can nit be very helpful until that block is available, I'm afraid. I'm not a programmer, so I cannot help you, sorry. What is That block supposed to do exactly?
-
Not easy,this indicator doesn't have an output buffer but write a .csv file. In fxdreema there isn't a block to read file (i can be wrong) , function must be write using custom mql code block and what data to read, only you, can know.
-
@l-andorrà @miki Gotcha, yeah I was fearful of that because that was my main issue. Trying to take what I see from the indicator to put it into a condition block. Not sure if this is remotely correct to do, but I did try to add it under "My Indicators" (see below). Also, can you guys help me figure out how to group these individual trade strategies separately? (i.e. I don't want my pending orders deleted for a 50EMA pullback because of a block that say close pending orders for 18EMA pullback trades). I get how to group ID the "No trade/order" block, but what about the condition blocks?

-
@sauce

This is a sample of the output file of the indicator,which data to take/read? -
@miki thank you for taking a deeper look into this can of worms, haha. I'm not sure exactly what to look at in the output file, instead I can show you what I see on my chart from the indicator and tell you what I'm reading from it. Hopefully you can take my explanation and see it in the code/output file? (Sorry, I just don't want to say "that one!" and be wrong).
Here's a screenshot of 4 instances with different variables. I'm looking to trade the strong(>60) and weak(<40) pairs across multiple timeframes. In this screenshot, it's telling me that CHF is strong and JPY is weak. So if I can find an EMA pullback in CHFJPY with my other conditions met = great trade setup. Vice versa, a trade setup in EURCHF is most likely a false signal since that will not make a move either way. Again, not sure exactly how those numbers are from the output, sorry I couldn't be more direct, I just don't understand that actual code and how it makes these numbers if that makes sense, ugh. Sorry!!

-
@sauce To see it seems easy
. I'm understand but what you need is out of my knowledge. -
@miki thanks for trying!! How about this: I want a condition where this (screenshot) has all happened previously. Basically, I want to see if this setup has happened since the 18EMA has last crossed the 50EMA on the M15 timeframe.

Also, how can I make it that it sends a mobile alert to my phone instead of entering an order? -
@sauce To do that just substitute your buy/sell pending order block with this one:

-
@l-andorrà okay great, thanks. How about if I want to keep the buy/sell order block there and be notified when trades are occurring via that phone notification?
-
@sauce Easy. Just connect both blocks ('Phone Notification' and 'buy/sell pending order') immediately below that 'once per bar' block.
-
@l-andorrà @miki using FxDreema has been going along well, I'm into manually optimizing now... looking to add some other complex conditions and have no clue where to start! Here's what I'm looking for:
-
A correlation condition: trade setup valid only if three similar-pairs* are moving in the same direction as the trade setup on this particular pair. (I have found that if I take a trade, it works best if majority of this pair are moving in the same direction, if it's the only pair moving that way it usually is a false signal). Example: A buy trade setup has appeared on NZDJPY. This condition should look to see if three other pairs containing NZD or JPY are moving with NZDJPY. Basically are any of the other NZD pairs moving up and are any of the other JPY pairs moving down? If there are at least 3 pairs that are moving with NZDJPY than the condition is valid. *similar-pair = pairs with the same pair family
-
A "deja vu" trade setup condition: basically this trade setup has happened before -- trade setup only valid if these conditions (see image) have previously occurred since the last time the 18EMA and 50EMA crossed. (aka start of the downward trend)
-
Condition: 6EMA < 18EMA within the last 10 candles (during the last 10 candles, the 6EMA was below the 18EMA) and vice versa for buy setup.
-
Condition: High < 6EMA within the last 10 candles (during the last 10 candles, an m15 candle high was below the 6EMA and vice versa for buy setup using low/above).
I try not to post until I'm really stuck and this is what I've got, any help is extremely appreciated as always! Thanks to you guys and this awesome forum I decided to bite the bullet and buy a 3month subscription for FxDreema.
-
-
@sauce #2 image
