|Working With Howard (A and B) OR (A and D), Flat Values|
DYO (A and B) OR (A and D)
18:44 FuturesTrader: Howard, I am having a problem getting a DYO Boolean OR function to work. The ANDs work fine. Could you see if you could quickly spot my problem? The OR on line F creates a solid signal
18:47 FuturesTrader: Line F makes the solid line second from the top instead of the following...
18:47 Ensign Howard: futures trader, lets discuss what you are trying to accomplish
18:47 Ensign Howard: Line A, B and C is a 2 condition coloring. Line D is a duplication of B, so why have it. I do not know why you have E, it is a duplication of C if you think about it.
18:48 FuturesTrader: D is not a duplication, it is an 11-period MACD average instead of a 16. If you look at the different subscript at the and of the MACD name -- t verse r One is a 3/10 MACD with a 16-period average (t suffix) and one is a 3/10 MACD with an 11-period average (r suffix)
18:50 Ensign Howard: ok, I was expecting 3,10 to differ. Anyway, if you are AND of the studies, then Line C is unneeded. You can eliminate C and the AND operation would be on a set of 3 instead of 4.
18:51 Ensign Howard: So you have A rising, B rising and C rising. So you have a 3 condition flag. Now why have Line F at all
18:52 FuturesTrader: I'm not sure I understand your question. I want to OR the result of two different AND operations. Because it will show the composite (Boolean OR) of the 11 and 16 period raising MACD averages
18:52 Ensign Howard: Your OR operator is for a set of 5 GVs. Working with the DYO you show, type out the logic you intend.
18:53 Ensign Howard: example ( A AND B) AND D which is A AND B AND D. So Line C is unneeded, show expression using A B D
18:54 FuturesTrader: (A AND B) OR (A AND D)
18:55 Ensign Howard: ok lets do it this way
18:55 Ensign Howard: 1 moment
18:58 Ensign Howard: A and B are same as you have now
18:58 Ensign Howard: Line C will duplicate  by copying into , which is quicker than repeating LIne A to store in 
18:59 Ensign Howard: LIne D is same as you have now, but puts flag in 
18:59 Ensign Howard: Line E is the And of 2 values, twice with a OR between them
18:59 Ensign Howard: Set size needs to be a Number = 2
19:00 Ensign Howard: So it accomplishes this sequence ( AND ) OR ( AND )
19:00 Ensign Howard: That is why  your A is repeated in the  position
19:01 FuturesTrader: I just tried it and I think it works!!!
19:01 Ensign Howard: It should, you got the answer from me....lol
19:01 FuturesTrader: You are the best!!
19:01 Ensign Howard: It was a good question, and exercise, and a worthy addition to today's training class on using Boolean logic in DYOs. Have a good evening, enjoy.
19:01 FuturesTrader: Does study rising only compare the last two bars? How does it handle flat lines?
19:02 Ensign Howard: Yes it compares 2 values of current bar and prior bar positions
19:02 FuturesTrader: Does it keep rising even if it goes flat? assuming rising to begin with.
19:02 Ensign Howard: good question.... when 2 values are equal, we look even earlier for a non-equal sequence. Thus if a down trend and then flat, we return flag for still being in downtrend. If in uptrend and then flat, we return flat for still being in uptrend. So a flat will continue the rising or falling condition it was in previously.
19:03 FuturesTrader: GREAT. That is all my questions. Super help to me!!! Thanks a million!! Good assumptions to bias the flat line with the previous direction! That's perfect for me!!!
19:04 Ensign Howard: Excellent question whose answer is not obvious, so it needs to be answered by me to get it in the document such as this transcript.