if(BarsInProgress == 1)
{
TimeSpan expiryBars = DateTime.Now - Time[0].AddSeconds(+60);
TimeSpan barsAgo = DateTime.Now - Time[0].AddMinutes(-30);
TimeSpan barsFromNow = DateTime.Now - Time[0].AddMinutes(+30);
DrawRectangle("myTangle",true, DateTime.Now.Subtract(barsFromNow), Lows[1][0], Time[0], Lows[1][1], Color.Blue, Color.Blue, 5);
//This was my Attempt at Saying that If the Current TIme is Equal to 30 Minutes from Now, '...do something'
if(expiryBars == barsFromNow)
{
DrawArrowDown("My down arrow" + CurrentBar, false, 0, High[0] + 10 * TickSize, Color.Red);
}
}
My Attempts have NOT worked. Can anyone please show a Simple way to do this.
1. Signal Fires Off.
2. What ever the Time the Signal Fires, it Expires at least 30 min (or any User defined time ) after that.
MAIN GOAL:
The main goal is that When a Signal is Given. That I can write a Condition to check How LONG it took for that Signal to reach it's Goal.
Second goal is to make the Signal automatically LOSE and restart once a Certain amount of Time has Elapsed.
For Example:
if(High[0] == EMA(200);
{ sellSignal = True;
//Now If Signal was given at 9:20am, and it hasn't reached it's goal by 10:00am, this is a Loser.
IDEA:
Is there perhaps a way to make some kind of Timer that Lets say
1. Signal Fires off (Price touches EMA or whatever....) at 7:25am
2. Expiration is for 8:00am
3. Indicator Begins Counting Down so that when Time reaches 8:00am, Signal Expires.
How would I accomplish this. I'm just throwing out some ideas. I'm really Not sure how to do Time at all. the last Post shows my attempts at this.
PLEASE HELP. I just can't get it.

Comment