If I buy, I set a variable with ToDay(Time[0]).
My problem appears when I try to use this variabe in the next context.
Please find below an extract of my code:
// Condition set 1 if (Low[0] < MIN(Low, 20)[1] { int Inday = ToDay(Time[0]); EnterLongStop(); } // Condition set 2 if (Position.GetProfitLoss(Open[0], PerformanceUnit.Percent) > 0 && ToDay(Time [0])> Inday) { ExitLong("", ""); }
Thanks a lot!
Comment