Open after and close before example code
Author: Algotrader
Creation Date: 3/16/2009 8:10 PM
profile picture

Algotrader

#1

Can someone please show me an example of code that I can modify that will:

Not trade until after some time like 945AM

Close open positions by some time like 355PM

And have 2 or more conditions that are anded together like 3 up bars and price > MA 21 Bars.

Please use the "&" within a set of brackets style as I cannot fathom the indented brackets.

If you want to be really kind have multiple entries ORed along with multiple and conditions.

You guys are fond of saying how easy it is to code but I am old and untrainable.

I want a generic template to modify.

Thanks, algotrader
profile picture

Eugene

#2
CODE:
Please log in to see this code.
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).