Topic: why is this condition "NO"?
I have a strategy that I have been struggling to get to match what I believe should be the entries if traded manually.
I checked everything and found that the problem seems to be with the simple opening condition "The moving average rises" which I have assumed simply means is the moving average at the close of one bar higher than the moving average at the close of the previous bar.
Would someone please assist me in understanding why a rise in the moving average from one bar to the other is not being shown as Long entry "yes"'.
I removed all other conditions from the strategy to make sure I was not misinterpreting.
For example I have 4 one minute bars (an Index) that have values as follows and decision on long entry
04:50 - 4833.69 (no)
04:51 - 4833.82 (no)
04:52 - 4834.03 (no)
04:53 - 4834.32 (yes)
The code for the condition is as follows and I am using a base price set at close:
[Opening Logic Condition]
[ A ] The Moving Average rises
Smoothing method - Weighted
Base price - Close
Period - 21
Shift - 0
Use previous bar value - No
I must be doing something wrong but I do not currently understand, your help would be greatly appreciated