Adding custom Currency Strength Meter indicator
-
@miki Oh boy, this looks like fun, haha. Will it work if on each condition and the modify variables blocks, I click the checkbox/input parameters for optimization and just type the appropriate label (i.e. CSM-1-H1-AUD) on each chart and change the magic number?
(Trying to avoid the mammoth project!)
thanks again for all your help Miki!! -
@sauce It should work just the same
. I tried to enumerate the variables in order to insert them from the outside but the dashes "-" in the names (CSM-1-H1-AUD) create errors.I'm sorry. -
@miki no worries! That is quite alright, thank you so much for figuring this out for me, very excited to give it a go!
-
@miki okay, so I've tried multiple times and trying to isolate the problem, but it isn't sending an alert out when it should be?
I've tried isolating the problem but not sure what's missing in order for those conditions to trigger the alert?Also, with this setup using OR/AND... isn't it possible that it could send a false alert with EUR<40 and USD<40? We're only looking for a >60 and <40 to pass or vice versa <40 and >60.
Thanks again for the help, hoping it's something minor that I'm missing! Here's a screenshot of the isolated project down to just the CSM scanning:

-
Also, with this setup using OR/AND... isn't it possible that it could send a false alert with EUR<40 and USD<40? We're only looking for a >60 and <40 to pass or vice versa <40 and >60.
Yes @Sauce , not knowing I misinterpreted the indicator. It's sufficent EUR>60 USD<40 or viceversa and it work.


-
I would like to add a condition where all open trades are closed every Friday at 23:54:50 (or just before close). This is to avoid gaps over my stop loss which have been messing up my EA. I've tried several ways, but haven't figured out the correct blocks to use.
-
@sauce you can use weekday filter block + time filter block +close trade block.
-
@miki I can't seem to get that to work as an alert, can you share that project? I've tried recreating including any variables but I'm afraid I'm missing something, not sure if it's how it's integrated on the chart on MT4 or I'm missing constants/variables. Any directions are appreciated! Thanks!!
-
@sauce The only variable to create is symbol in which we are going to put the symbol to be traded, in this case, buy. Alert should work. The only thing maybe wrong but I haven't tested it are the double quotes on "EURUSD". If you want the alert on your phone you need to set the metaquoteID in the metatrader settings.
-

Not sure what's incorrect, I'm not receiving any alerts. I'm missing something because my other EA's alerts are working fine.You can see in this example, EURCAD should be alerting since EUR >60 and CAD <40.
Let me know if you see any errors, thanks!
-
@sauce you must create symbol variable. string type.

-
@miki okay, I've added that and re-tried however it still isn't alerting, not sure what else I'm doing incorrectly, sorry!
-
-
@miki my apologies! I found the error... totally my fault. I added the indicator to the chart and forgot to make OutputGlobals to true instead of the default false. Works now! Thanks again, my apologies for the confusion!
