Good morning,
any idea how do I program following condition:
The price drops 4 out of 5 days. This means closing prices were lower than the day before for 4 out of the past 5 days.
Thanks for any help.
Size:
Color:
Hi,
Here's an illustration:
Edit: wrong CumDown code removed
CODE:
Please log in to see this code.
Size:
Color:
You really can't get there with CumDown since that indicator works based on the value of the specified series n bars ago. If you want to count the actual down closes over the past 5 periods -
CODE:
Please log in to see this code.
So, the condition would be:
CODE:
Please log in to see this code.
Size:
Color:
I stand corrected. Thanks Robert.
Uploaded a modified version of my code (not using CumDown) together with Robert's code.
Size:
Color:
thank you very much.
Size:
Color:
These conditions are now also available as easy-to-use Strategy Rules in
Community.Rules:
* Price (Volume) Action > Price increases (decreases) a number of bars within period
* General Indicators > Indicator increases (decreases) a number of bars within period
Size:
Color: