Is it possible to accomplish this in WLP 5.3 Rule Wizard?
Author: swuzy
Creation Date: 3/20/2009 9:50 PM
profile picture

swuzy

#1
I have to rely on the wonderful WLP 5.3 Wizard. Is there any way to easily accomplish any of the following, by using the Wizard? Hopefully yes, because if I have to get into the code, I will easily get lost and mess it all up.

1. Condition: Price exceeds X% of price Y weeks earlier.

2. Condition: External symbol - indicator1 crosses above indicator2; indicator1 is above indicator2; indicator1 turns up; indicator1 is above or below value; etc. For example, .SPX stochastic K crosses above D; .SPX MACD turns up; .SPX DMI+ is above DMI-; .SPX ADX is above 15 and below 50;

3. Condition: If Condition1 and Condition2 or Condition3, Do Not Buy.

profile picture

Eugene

#2
Congratulations, you've stepped over what the wizard has to offer. ;)

QUOTE:
1. Condition: Price exceeds X% of price Y weeks earlier.

CODE:
Please log in to see this code.


QUOTE:
2. Condition: External symbol - indicator1 crosses above indicator2; indicator1 is above indicator2; indicator1 turns up; indicator1 is above or below value; etc. For example, .SPX stochastic K crosses above D; .SPX MACD turns up; .SPX DMI+ is above DMI-; .SPX ADX is above 15 and below 50;

CODE:
Please log in to see this code.

QUOTE:
3. Condition: If Condition1 and Condition2 or Condition3, Do Not Buy.

CODE:
Please log in to see this code.
profile picture

swuzy

#3
Not sure how to incorporate this script for "Price exceeds X% of price Y weeks earlier."

For example, I'd like add to some strategies, code saying: if Price exceeds 11% of Price 20 bars ago, then Buy at Market.

Thanks for clarifying.

profile picture

Eugene

#4
CODE:
Please log in to see this code.
profile picture

swuzy

#5
Got it; and got it working. Thanks Eugene.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).