My scenario is slightly different but thought relevant to post here because a) I have screenshots and b) it appears pretty clearly to be wrong i.e. a concrete example.
however, it may well be operator error/incorrect understanding, in which be glad for explanation as I can't see how. I can say I am not by any means clear.
Re: images:
YM Alert Log 123601 - shows an alert on 2min chart triggered at 12:36:01
YMOHL Day Alert Condition Cross Above - shows that Alert's Conditions.
Data Series YM 09-18 (2 min) (Upper of 3 Data Series is the Full Session series) High of the Current Bar minus 5 ticks Crosses Above (Look back period 1) OHL Day indicator Current High
I confess I do not believe I completely 'get' Look back period in this context at least, however I believe it does not matter/affect that that the indicator is triggered does not appear to be correct, or at least I cannot see how.
YM 2 min 123601 - shows the chart to which the Alert/Data Series/Indicator are attached.
It can be seen that at 12:36 the high of the (small green) bar (first condition) is at 25810.
The OHL Day indicator (second condition) Current high (Green Dash line) is @ ~25828.
YM Tick 123601 - shows the 12:36 time area on 15 tick to show price behaviour at this time and the preceding 2min bar period in greater detail i.e. 'inside the bars'
The High of the previous (long red bar) 2 min bar (Look back period 1 from bar on which Alert reported Triggered 12:36:01 being the bar at 34 mins) is 25816. Even the bar before that has a high of 25821, which is the previous high area that can be seen on the Tick chart.
I have some uncertainties as to the meanings and impacts of 'High' and 'Look back period' that may affect what my expectations of the Alert should be, but leaving those aside, and starting with an 'absolute - The OHL Day Current High (second Condition) is a fixed constant at 25828. There is no room for misinterpretation of Definition of this for historical data.
The first Condition is that 'Price' (whatever Price and whenever that may be) crosses above 25828. The Offset is -5 ticks. For the Condition Relational operator 'Crosses above', that means must be 25829, at 25828 it has not crossed above. With -5 Offset, that means the Data Series Price must reach 25824 to trigger. As can be seen on the Tick chart, at no time within the 'current' when triggered bar or previous two/recent history did price reach 25824
I am not clear what Look back period means/effect is in this context. Does it mean ''Price' is current bar and one bar back'? i.e. in this example. if price meets the condition in this current bar OR it did so in the last bar, trigger the alert on this bar? (which would have the effect of 'extending the longevity' of the Alert i.e. it would Alert on the bar the condition was met, and also alert on the next bar because the condition would be true Looking back one bar. But that doesn't seem to be what is happening (I'd get 2 Alerts up to a maximum of 2 mins apart each time a Condition was met, one when the condition was met on the current bar, and one immediately the next bar opened because the Look back period 1 bar condition would be met at the open of the new bar). Or 'during this bar, if the condition was met in the last bar, trigger the Alert? This seems plausible and consistent with the number of Alerts and with the fact that the Alert has a time stamp of 01 seconds- i.e. as soon as the bar on which the Alert was triggered, the Current bar, opened the condition was met. This seems to suggest the condition was met because the bar opened, not because the actual condition itself was met - which is Data Series Price Bars ago 0 i.e. current bar, High of price, minus 5 ticks Offset. Certainly that did not happen to meet the second Condition OHL Current High at 12:36:01 or ever, in the Current bar or with a Look back period of 1. To my mind there may be a clue in the :01 Second timestamp. Is it generating the Alert at 12:36:01 not because the First Condition is met at that time, but because the bar opened. Although it wasn't, because price never reached 5 tick below the OHL, then, or at any time in the current or last bar. So that is another matter.
However, that means the Condition was met up to 2 mins (with Alert on 2 minute chart) before the Alert was triggered (and the Look back cannot be set to 0 look back).
None of this is apparent in Help, Look back period is not even mentioned. Once. And it seems non-sensical to me to have a (First) Condition specified on Current Bar/Price High, Bars Ago 0, Offset -5 that in fact isn't based on this at all because of Look back Period 1.
Why I would want an Alert that tells me the Condition I want to be alerted to happened in a previous bar, but cannot tell me as it happens is as yet a mystery to me if this is indeed how it works. It is not a very alert Alert.
Anyhow, the first is to try to explain what is happening - it seems Price never met the Condition with or without Offset and either in the current bar or looking back one.
That seems irrefutable, else I'm losing my mind.
NOTE: that I have many Alerts of this type i.e. Alert when price gets within 5 ticks of OHL and most of the time they seem to work as expected, and certainly many trigger NOT at timestamp :01 seconds i.e. on opening of the bar. So that may be co-incidental, but it doesn't change the fact that the price condition doesn't seem to have been met at any time within the current and look back one bar,
Looking forward to understanding/my misunderstanding.
Hope this helps, for the OP's issue also
Kind regards,
Comment