I'm looking for a condition where %K crosses %D and also by a defined amount. Is this something I need to program.
Size:
Color:
Yes. However, it's really easy to get the basic condition working in Strategy from Rules first and then convert it to code to add the missing piece e.g.
CODE:
Please log in to see this code.
Size:
Color:
Eugene,
I'm new to Wealth Lab. It's easy to get the crossing condition, but not sure how to get the amount that %K has crossed %D. Thank you.
Size:
Color:
Gary, it's here:
CODE:
Please log in to see this code.
Here's how you can control it via "parameter slider" at the bottom left of your WLP workspace. Just drag "Amount":
CODE:
Please log in to see this code.
Size:
Color:
Thank you again, Eugene. I printed the Programming manual and so will get to know this process better.
Have a good weekend,
Gary
Size:
Color:
You're welcome.
Size:
Color:
QUOTE:
looking for a condition where %K crosses %D and also by a defined amount
A "defined amount" relative to what? Relative to its previous value (which is the solution given in post #4) or relative to the two indicators, %K and %D? If you want the latter, then just add or subtract
amount to one of the DataSeries indicators.
CODE:
Please log in to see this code.
Size:
Color: