Advertisement
GanovAlex

QuotesCheckup

Mar 27th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. public void QuotesCheckup(IReadOnlyList<IDataBar> bars, IContext ctx)
  2.         {
  3.             var load = ctx.LoadObject("firstBarTime", true);
  4.             if (DateTime.Parse(load.ToString()) != bars[0].Date)
  5.                 ctx.Log("!!! Возможно пропущены бары",MessageType.Error,true);
  6.             ctx.StoreObject("firstBarTime", bars[1].Date,true);
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement