@alphaomega @CPBonzo Excellent! Will try it out, and my apologies for the belated reply.
Latest posts made by equinox
-
RE: Custom stochastics indicatorposted in Questions & Answers
-
Custom stochastics indicatorposted in Questions & Answers
I want to use a custom stochastics indicator because the standard one lacks multi time frame functionality. The question is how can I define that the K line (main line) is below the D line (signal line)? When I open the custom indicator in a block, the option to choose the main or signal line (as provided for in the normal stochastics indicator) is missing:

This is the normal Stoch indicator where I can select the mode, main line or signal line to define K<D:

-
RE: If at least 2 of 3 conditions are met..posted in Questions & Answers
@l-andorrà The variable is defined as the sum of other variables:
sum = condition1+condition2+condition3
The conditions are either 1 (=true) or 0 (false).
If at least tow conditions are met (sum > 1), the block should have a positive output.
-
RE: If at least 2 of 3 conditions are met..posted in Questions & Answers
I cannot find the "sum" variable, or the other ones I created in the dropdown menu:

I am probably getting this wrong somehow..
-
RE: If at least 2 of 3 conditions are met..posted in Questions & Answers
@CPBonzo How can I use the condition block to compare to my "sum" variable? I cannot find anything about variables there. Could it work like this?

-
RE: Symbol name in subject line of email alertposted in Questions & Answers
@l-andorrà Thank you, that is working like charm!
-
Symbol name in subject line of email alertposted in Questions & Answers
I am trying to have the symbol name in the subject line of an email alert, but all I get back is the plain text of the command, not the symbol.

-
RE: If at least 2 of 3 conditions are met..posted in Questions & Answers
@CPBonzo and @l-andorrà Thank you both for your comments. I will try to incorporate all of the mentioned issues in my next version. Just for clarification, if I set candle id = 1, will this be the closing price of the last completed candle?
-
RE: If at least 2 of 3 conditions are met..posted in Questions & Answers
If have tried again to solve the problem above with variables that are set to 1 if the respective condition is met (blocks 5-7), and another variable ("sum") that is the sum of the first 3 variables.
In block "2 of 3" I have tried to define that the the sum should be > 1 (meaning at least 2 of 3 conditions are met). The code is executing, but there is no arrow printed where there should be one.
https://fxdreema.com/shared/QeAFIWNKd
I have also tried to achieve the same result with AND/OR expressions, but I think I need to hyphenate some blocks together, which I am not sure can be done:
Condition0 (Blocks 1-4) AND
(Condition1 AND Condition2) OR
(Condition1 AND Condition3) OR
(Condition2 AND Conditon3)My apologies for the many edits.
-
RE: Programming error in MT4posted in Questions & Answers
@l-andorrà Thank you for responding. The error was that testing stopped due to a critical error in the EA. Today I recompiled it and it started working again. I wanted to make a comment that it is working again, but could not locate the question in the forum. My bad, but thank you anyways!