simpletrades
01-13-2010, 09:49 AM
I'm trying to be able to have my alerts go off only between certain hours so I can keep from being distracted when i dont want to be trading.
if (CrossAbove(DiMinus, 20, 1) && DiMinus[0]>=DiPlus[0] && (ToTime(Time[0]) >= time1 )) Alert.......
This is what I have done.
time1 is defined in variables as private int time1 = 1159; (so I can test it since its just after 1130 now)
and in properties as:
[Description("time threshhold")]
[Category("Parameters")]
public int Time1
{
get { return time1; }
set { time1 = Math.Max(1, value); }
}
but the alerts go off anyhow. why? Does totime need to be defined somehow somewhere?
if (CrossAbove(DiMinus, 20, 1) && DiMinus[0]>=DiPlus[0] && (ToTime(Time[0]) >= time1 )) Alert.......
This is what I have done.
time1 is defined in variables as private int time1 = 1159; (so I can test it since its just after 1130 now)
and in properties as:
[Description("time threshhold")]
[Category("Parameters")]
public int Time1
{
get { return time1; }
set { time1 = Math.Max(1, value); }
}
but the alerts go off anyhow. why? Does totime need to be defined somehow somewhere?