Logic for "New top in trend" Block
-
Let's say PastCandlesCount=7, is the current candle included as one of the 7 so that it checks candle 0 (current candle) through candle 6 or does it start checking from the previous candle through candle 7?
Is iLow(SYMBOL,TIMEFRAME,PastCandlesCount) the low value for candle 6 or the low value over the last 7 candles (ex. if candle 3 is the lowest)?
-
As I can see in the code it works with candles from 0 to PastCandlesCount-1, which is total of PastCandlesCount candles including current one.
Most blocks in this category does what custom indicators should do, now I consider this as a mistake, so use them if you want but I will suggest to use custom indicators if you have
-
thanks that's what I understood from the code, just wanted to double check
This is a great block, I don't see any mistake. -
The mistake is that it does what a custom indicator should do, but EAs are not really the right place to do Indicator's job. You can see in the code how much stuff is in there and how complicated it looks - it's because of that. And I also think the performance is lower in this way. These blocks was some of my ideas that I wanted to try, and because I am not an indicator guy... this is the result
