Synchronized loading data range form the specified time to the current.


SYNTAX


public bool Load (DateTime from)


PARAMETERS


from — DateTime

Defines date and time of start period.


RETURN


bool Returns true if history was loaded.


EXAMPLE


using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace LoadExamples
{
     public class LoadExamples : NETStrategy
     {       
         public override void Init()
         {
             Instrument inst = Instruments.Current;
             HistoricalData Hist = GetHistoricalData(new HistoricalDataRequest(inst, Period.Day));
             DateTime date_from = DateTime.Today.AddMonths(-1);
             Hist.Load(date_from);
         }      
     }
}