Avoid trading if opening price is below a certain %
Author: aleehatami
Creation Date: 11/28/2009 2:01 PM
profile picture

aleehatami

#1
I am trying to avoid stocks in my strategy that open up in the red below a certain %. Any thoughts on how to do this? I will probably have to use the time variables right?

Something like:

if( ( GetTime(bar) == 0930 )

if (Close[bar] > Close[bar - 2] / 1.15

now what code would I write to tell it to avoid trading that day? I can't figure it out.

Thanks for all your help guys you have been great.

profile picture

Eugene

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

aleehatami

#3
Perfect! 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).