示例#1
0
 /// <summary>Parameters for the UpdateSnRLevel statement</summary>
 public static object[] UpdateSnRLevelParams(SnRLevel snr)
 {
     return(new object[]
     {
         snr.Id,
         snr.Price,
         snr.WidthPips,
         snr.MaxTimeFrame,
     });
 }
示例#2
0
        // Notes:
        // - SnRLevels are saved in the DB with the instrument data so that they
        //   are available to other parts of the code, not just charts.
        // - The SnRLevelSettings are saved in the per chart data. This allows the
        //   chart to display the SnRLevel with specific colours etc. The settings
        //   are matched with SnRLevel instances via the 'Id'

        public SnRIndicator(SnRLevel snr)
            : base(snr.Id, "SnR Level", new SnRLevelSettings {
        })
        {
            Level = snr;
        }
示例#3
0
 public static object[] RemoveSnRLevelParams(SnRLevel snr)
 {
     return(new object[] { snr.Id });
 }