@alphaomega @CPBonzo Excellent! Will try it out, and my apologies for the belated reply.
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!
-
Programming error in MT4posted in Questions & Answers
The following simple strategy leads to ea programming errors in both of my MT4 terminals.
What could be wrong with it?
https://fxdreema.com/shared/T90B7zA7b
Thanks.
-
RE: Standard Stochastics indicator K line above D lineposted in Questions & Answers
Yes that was it! Stupid mistake, but many of mine are..
Thank you for pointing this out, works as it should now.
-
Standard Stochastics indicator K line above D lineposted in Questions & Answers
I would like to to have the order block give a positive signal when the K line (Signal line) is greater than the D (Base) line. Somehow this is not working. I do get arrows, but they do not observe the above rule. Signal should be given on the first tick of each bar, since last candle close is not possible, as I understand.
-
RE: change a variable after a block condition is metposted in Questions & Answers
@l-andorrà Great, thank you for replying!
-
If at least 2 of 3 conditions are met..posted in Questions & Answers
I have defined 3 variables that are each set to 1 (int) when the 3 respective conditions give a positive signal. My strategy requires that at least 2 of the 3 conditions are met. Normally I would define a 4th variable that is the sum of the other 3. Thus, if that variable is >1, the strategy would be executed. I just cannot find a function which would allow this, and would be glad for any suggestions.
-
change a variable after a block condition is metposted in Questions & Answers
Hi,
I would like to set the variable "confirming1" of int type to 1 when the condition of the block is met. I am not sure if this is the right way:

Edit: I found the block "change variable", I think that will do what I want. My apologies!
But if anybody would like to comment what the variable sidebar does, I would be grateful.