Login Page - Create Account

Support Board


Date/Time: Thu, 27 Feb 2025 09:22:07 +0000



Post From: SCDateTime Problem

[2021-06-27 19:35:20]
User39772 - Posts: 311
Hello,

I have the following code:  
  
SCDateTime DateTime = sc.LatestDateTimeForLastBar;
SCDateTime PosTime = PositionData.LastEntryDateTime;
  
//5 Minutes after open of the position I want an action to occur
//but the following code does not work, argument "DateTime == PosTime.AddMinutes(5)" never becomes "true"

if ( DateTime == PosTime.AddMinutes(5) )
  Subgraph_Test[sc.Index] = sc.Low[sc.Index];


//Is my understanding wrong ?