@@ -0,0 +1,2076 @@
+%EF%BB%BF/*%0A * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.%0A * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A*/%0Apackage QuantConnect.example;%0A%0Aimport cli.QuantConnect.Algorithm.QCAlgorithm;%0Aimport cli.QuantConnect.Data.Slice;%0Aimport cli.QuantConnect.Resolution;%0Aimport cli.QuantConnect.SecurityType;%0A%0A/**%0A * %3Csummary%3E%0A * Basic template algorithm simply initializes the date range and cash%0A * %3C/summary%3E%0A */%0Apublic class BasicTemplateAlgorithm extends QCAlgorithm %7B%0A    /**%0A     * %3Csummary%3E%0A     * Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized.%0A     * %3C/summary%3E%0A     */%0A    public void Initialize() %7B%0A        SetStartDate(2013, 10, 7);  //Set Start Date%0A        SetEndDate(2013, 10, 11);    //Set End Date%0A        SetCash(100000);             //Set Strategy Cash%0A        // Find more symbols here: http://quantconnect.com/data%0A        AddSecurity(SecurityType.wrap(SecurityType.Equity), %22SPY%22, Resolution.wrap(Resolution.Second), true, false);%0A    %7D%0A%0A    /**%0A     * %3Csummary%3E%0A     * OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.%0A     * %3C/summary%3E%0A     * %3Cparam name=%22data%22%3ESlice object keyed by symbol containing the stock data%3C/param%3E%0A     */%0A    public void OnData(Slice data) %7B%0A        if (!get_Portfolio().get_Invested()) %7B%0A            SetHoldings(Symbol(%22SPY%22), 1, false);%0A            Debug(%22Hello From Java%22);%0A        %7D%0A    %7D%0A%7D

converted BasicTemplateAlgorithm to java