Using calendar date conditions as setup rather than buy signal
Author: mikesblack
Creation Date: 4/8/2015 4:47 PM
profile picture

mikesblack

#1
Hi,
I included the code for a basic trading system that enters the market when it's the last trading day of the month and the days are either Monday or Tuesday. The sell signals are reversed with the last trading day of the month and days are either Thursday or Friday.

What I would like to do is use these buy conditions as a set up rather than as buy signals, adding buy conditions after these calendar conditions are met.

Can you suggest a way I can do this?

Thank you,
Mike


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

Eugene

#2
profile picture

Eugene

#3
Here's example demonstrating your conditions with a couple of dummy trading rules:

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

mikesblack

#4
Eugene,
Thank you for your quick response. I will work with what you have shown me. Thank you very much.
Mike