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.
Size:
Color:
CODE:
Please log in to see this code.
Size:
Color:
Perfect! Thanks Eugene!
Size:
Color: