<?xml version="1.0" encoding="utf-8"?>
<ExportScriptData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Code><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<GraphDataBase xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="GraphViewData">
  <EditData VersionString="2.3" TemplateClass="Script">
    <ViewModel>
      <Model Scale="1">
        <Block Key="symbol" Category="TradableSecurity" Location="50 0" TypeName="TradableSecuritySourceItem">
          <EditItem Guid="13E828E4-4633-455C-B81B-730B003D8002" CodeName="symbol" IsParametersVisible="false" OnlyValueHandlersCanUsed="false" />
        </Block>
        <Block Key="v" Category="TradeMath" Location="288 53" TypeName="ConverterItem">
          <EditItem Guid="88676526-EC2D-42F3-A92B-0606A6B221D7" CodeName="v" IsParametersVisible="false" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Volume, TSLab.Script.Handlers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="close" Category="TradeMath" Location="290 -8" TypeName="ConverterItem">
          <EditItem Guid="566F73F2-A440-48DF-A5F7-5BA11ABF3973" CodeName="close" IsParametersVisible="false" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Close, TSLab.Script.Handlers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Pane Key="pane" Category="GraphPane" Location="74 103" Order="0" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="-1" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Block Key="tf" Category="Formula" Location="481 109" TypeName="DoubleCustomHandlerItem" Width="120" Height="60" ResizablePartWidth="143" ResizablePartHeight="80" OpenParams="true">
          <EditItem Guid="99c401fd-0b48-4d9c-b35e-db0258b65613" CodeName="tf" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.ScriptEngine.Template.DoubleCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Expression" TypeName="String" Value="Math.Round(close/100)" />
              <Parameter Name="StartIndex" TypeName="Int32" Value="0" />
            </Parameters>
          </EditItem>
        </Block>
        <Pane Key="pane2" Category="GraphPane" Location="75 233" Order="1" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="3" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Block Key="f" Category="Formula" Location="507 244" TypeName="DoubleCustomHandlerItem" Width="120" Height="60" ResizablePartWidth="143" ResizablePartHeight="80" OpenParams="true">
          <EditItem Guid="62fabef9-7e85-4089-953b-88f7fbbff38f" CodeName="f" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.ScriptEngine.Template.DoubleCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Expression" TypeName="String" Value="close[i-tf]" />
              <Parameter Name="StartIndex" TypeName="Int32" Value="0" />
            </Parameters>
          </EditItem>
        </Block>
        <Link From="symbol" To="v" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="symbol" To="close" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <GraphLink From="v" To="pane" FromPort="Out" ToPort="LEFT" Category="ChartLineLink">
          <Data>
            <GraphData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ListStyle="HISTOHRAM" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="-1581634" AltColor="-16777216" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="LEFT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <GraphLink From="symbol" To="pane" FromPort="Out" ToPort="RIGHT" Category="ChartCandleLink">
          <Data>
            <GraphData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ListStyle="LINE" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="-15197697" AltColor="-53451" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <Link From="v" To="tf" FromPort="Out" ToPortNum="0" />
        <Link From="close" To="tf" FromPort="Out" ToPortNum="1" />
        <GraphLink From="tf" To="pane2" FromPort="Out" ToPort="RIGHT" Category="ChartLineLink">
          <Data>
            <GraphData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ListStyle="LINE" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="-8963620" AltColor="-8563473" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <Link From="close" To="f" FromPort="Out" ToPortNum="0" />
        <Link From="tf" To="f" FromPort="Out" ToPortNum="1" />
        <GraphLink From="f" To="pane" FromPort="Out" ToPort="RIGHT" Category="ChartLineLink">
          <Data>
            <GraphData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ListStyle="LINE" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="-839512" AltColor="-6141592" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
      </Model>
    </ViewModel>
  </EditData>
  <Id>4bd76710-f797-4fed-98ba-2e8f743ab5f5</Id>
  <Options xsi:type="LabOptions">
    <BarSizes>
      <BarSize Key="" Value="0.09721768386959162" />
    </BarSizes>
    <PaneSizes>
      <PaneSize Key="pane" Value="76.629794643314369" />
      <PaneSize Key="pane2" Value="23.370205356685627" />
    </PaneSizes>
    <Indent>0</Indent>
    <BarsIndent>0</BarsIndent>
    <HideValues>false</HideValues>
    <LegendTransparency>0</LegendTransparency>
    <TimeScale>Adaptive</TimeScale>
    <GroupTrades>true</GroupTrades>
    <LegendForegroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </LegendForegroundColor>
    <ChartBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartBackgroundColor>
    <ChartForegroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartForegroundColor>
    <ChartGridColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartGridColor>
    <ChartBorderColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartBorderColor>
    <ChartRulerBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartRulerBackgroundColor>
    <ChartRulerForegroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Default>
    </ChartRulerForegroundColor>
    <IntervalBase>MINUTE</IntervalBase>
    <Interval>1</Interval>
    <GraphListVisibilities />
    <VerticalScales />
    <RecalcInterval>INTERVAL</RecalcInterval>
    <DateFrom>2020-07-19T00:00:00+03:00</DateFrom>
    <UseDateFrom>true</UseDateFrom>
    <DateTo>2020-08-19T00:00:00+03:00</DateTo>
    <UseDateTo>false</UseDateTo>
    <DateReload>2020-08-19T00:00:00+03:00</DateReload>
    <UseDateReload>true</UseDateReload>
    <MaxDays>0</MaxDays>
    <SessionBegin>2000-01-01T00:00:00</SessionBegin>
    <SessionEnd>2000-01-01T00:00:00</SessionEnd>
    <DecompressMethod>Method1</DecompressMethod>
    <MaxCandels>0</MaxCandels>
    <RtUpdates>false</RtUpdates>
    <CalcForEachSecurity>false</CalcForEachSecurity>
    <ScriptEditorUseGridStep>false</ScriptEditorUseGridStep>
    <ScriptEditorGridStep>20</ScriptEditorGridStep>
    <ScriptEditorShowLinks>true</ScriptEditorShowLinks>
    <TradeFromBar>0</TradeFromBar>
    <IsSplittedProfitByInstruments>false</IsSplittedProfitByInstruments>
    <NotUsePositions>false</NotUsePositions>
    <InitDeposit>0</InitDeposit>
    <LabCalcType>Default</LabCalcType>
    <TradeMode>All</TradeMode>
    <IsShowedBlockNumbers>false</IsShowedBlockNumbers>
  </Options>
  <Mappings>
    <Sources>
      <Source DataSourceName="Alor_Demo" SecurityId="RTS-9.20" Name="13E828E4-4633-455C-B81B-730B003D8002" VisualTypeName="Торгуемый инструмент" IsOption="false">
        <Records />
      </Source>
    </Sources>
    <Parameters />
    <ParameterGroups />
    <AutoParameters />
  </Mappings>
  <OptimizationMethodTypeName>BruteForceOptimization</OptimizationMethodTypeName>
  <Iterations>100</Iterations>
  <OptParametersRecords />
  <OptParametersRecordsFolders />
</GraphDataBase>]]></Code>
  <Settings2><![CDATA[{"Options":{"DefEntryApprove":false,"DefExitApprove":false,"AutoEntryBars":0,"AutoEntryIgnoreByMarketAsLimit":false,"AutoCloseBars":0,"AutoCloseIgnoreByMarketAsLimit":false,"Slippage":0,"SlippagePct":0.0,"TakeProfitNoSlippage":false,"OpenPositionNoSlippage":false,"ByMarketAsLimt":false,"InvalidStopsByMarket":false,"RemoveInactivePositions":true,"WarnSkippedOpenPositions":true,"NotOpenIfHasSkippedExit":false,"NoCalcInfo":false,"MaxBarsForSignal":0,"ExitSignalOnlyForLastBar":false,"WaitExecutionExitBars":0,"WaitExecutionEntryBars":0,"SimulatePositionOrdering":true,"UseCommissionInProfit":false,"EventOrderRejected":false,"EventOrderFilled":false,"EventPositionOpening":false,"EventPositionClosing":false,"EventOrderQtyChanged":false,"EventTradingIsStarted":true,"EventTradingIsStopped":false,"EventOrderCanceled":false,"EventPretradeLimitation":false},"Mappings":{"Sources":[],"Parameters":[],"ParameterGroups":[],"AutoParameters":[]},"AppearanceOptions":{"BarSizes":[],"PaneSizes":[],"GraphListVisibilities":[],"VerticalScales":[]},"Layout":"<XmlLabLayout xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n\t<MainChartWindow Id=\"Main\">\r\n\t\t<Docking>&lt;?xml version=\"1.0\" encoding=\"utf-16\"?&gt;&lt;DockSiteLayout xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" SerializationFormat=\"All\" Version=\"2\"&gt;&lt;AutoHideHost /&gt;&lt;Content xsi:type=\"SplitContainer\" Orientation=\"Horizontal\" DockedSize=\"724,828\"&gt;&lt;UIElement xsi:type=\"Workspace\"&gt;&lt;Content xsi:type=\"TabbedMdiHost\"&gt;&lt;Content xsi:type=\"TabbedMdiContainer\" SelectedWindowUniqueId=\"66dfdcc6-af67-4cfe-be23-da3632f7d310\"&gt;&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"66dfdcc6-af67-4cfe-be23-da3632f7d310\" /&gt;&lt;/Content&gt;&lt;/Content&gt;&lt;/UIElement&gt;&lt;UIElement xsi:type=\"ToolWindowContainer\" DockedSize=\"0,0\"&gt;&lt;UIElement xsi:type=\"Track\" CreationDateTime=\"2020-08-19T18:57:16.4943376+03:00\" UniqueId=\"66dfdcc6-af67-4cfe-be23-da3632f7d310\" /&gt;&lt;/UIElement&gt;&lt;/Content&gt;&lt;ToolWindows&gt;&lt;ToolWindow UniqueId=\"66dfdcc6-af67-4cfe-be23-da3632f7d310\" SerializationId=\"Graph\" IsOpen=\"true\" LastActiveDateTime=\"2020-08-19T18:57:16.6008512+03:00\" State=\"Document\" /&gt;&lt;/ToolWindows&gt;&lt;/DockSiteLayout&gt;</Docking>\r\n\t</MainChartWindow>\r\n\t<Docking>&lt;DockSiteLayout xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" SerializationFormat=\"All\" Version=\"2\"&gt;\r\n\t&lt;AutoHideHost /&gt;\r\n\t&lt;Content xsi:type=\"Workspace\"&gt;\r\n\t\t&lt;Content xsi:type=\"TabbedMdiHost\"&gt;\r\n\t\t\t&lt;Content xsi:type=\"SplitContainer\" Orientation=\"Horizontal\" DockedSize=\"1920,879\"&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"TabbedMdiContainer\" DockedSize=\"724,879\" SelectedWindowUniqueId=\"01a233f2-3057-4899-aa35-ea805ea59999\"&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"01a233f2-3057-4899-aa35-ea805ea59999\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"e0ea71ea-74a0-4a2e-8c70-04e0f854cdac\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"f7c63964-c94f-47f3-8791-463eeca3bdba\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"cb6f6caa-3217-4c1b-a95e-b37b7641d47b\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"c23a8107-324e-4eb5-8554-d05915f299f1\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"7e7c8bb5-e9c9-47f2-ae06-9974d325d70d\" /&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"9e71ef1c-adf6-40c7-8f61-2456eb30e23b\" /&gt;\r\n\t\t\t\t&lt;/UIElement&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"TabbedMdiContainer\" DockedSize=\"1194,879\" SelectedWindowUniqueId=\"320cbb38-2fc4-4a50-8377-bfa3282cbd15\"&gt;\r\n\t\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"320cbb38-2fc4-4a50-8377-bfa3282cbd15\" /&gt;\r\n\t\t\t\t&lt;/UIElement&gt;\r\n\t\t\t&lt;/Content&gt;\r\n\t\t&lt;/Content&gt;\r\n\t&lt;/Content&gt;\r\n\t&lt;ToolWindows&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"320cbb38-2fc4-4a50-8377-bfa3282cbd15\" SerializationId=\"EditorViewModel\" Name=\"Editor\" ContainerDockedSize=\"1194,879\" IsOpen=\"true\" LastActiveDateTime=\"2020-08-19T19:06:09.2256168+03:00\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"01a233f2-3057-4899-aa35-ea805ea59999\" SerializationId=\"ChartViewModel\" Name=\"ChartViewModel\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" LastActiveDateTime=\"2020-08-19T19:06:05.1126005+03:00\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"e0ea71ea-74a0-4a2e-8c70-04e0f854cdac\" SerializationId=\"PerformanceViewModel\" Name=\"Performance\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"f7c63964-c94f-47f3-8791-463eeca3bdba\" SerializationId=\"TradesViewModel\" Name=\"Trades\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"cb6f6caa-3217-4c1b-a95e-b37b7641d47b\" SerializationId=\"OptimizationViewModel\" Name=\"Optimization\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"c23a8107-324e-4eb5-8554-d05915f299f1\" SerializationId=\"ParametersViewModel\" Name=\"Parameters\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"7e7c8bb5-e9c9-47f2-ae06-9974d325d70d\" SerializationId=\"LogViewModel\" Name=\"Log\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"9e71ef1c-adf6-40c7-8f61-2456eb30e23b\" SerializationId=\"ProfitModel\" Name=\"Profit\" ContainerDockedSize=\"724,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t&lt;/ToolWindows&gt;\r\n&lt;/DockSiteLayout&gt;</Docking>\r\n\t<ActiveWindow>EditorViewModel</ActiveWindow>\r\n\t<LabModels>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>EditorViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>ChartViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>PerformanceViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>TradesViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>OptimizationViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>ParametersViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>LogViewModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t\t<XmlLabModel>\r\n\t\t\t<ContentId>ProfitModel</ContentId>\r\n\t\t\t<IsVisible>true</IsVisible>\r\n\t\t</XmlLabModel>\r\n\t</LabModels>\r\n\t<LabWindows />\r\n</XmlLabLayout>","AppProperties":{"EditorSettings":"{\"LinkColor\":\"false\"}"}}]]></Settings2>
</ExportScriptData>