<?xml version="1.0" encoding="utf-8"?>
<ExportScriptData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Code><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<GraphDataBase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="GraphViewData">
  <EditData VersionString="2.3" TemplateClass="Script">
    <ViewModel>
      <Model Scale="1" SelectedLinkColor="-256" ShowLinks="true" FloatingPropertyInspector="false">
        <Block Key="Источник1" Category="SECURITY" Location="52 88" TypeName="TradableSecuritySourceItem">
          <EditItem Guid="ae5db972-facf-473e-ba46-21b27bff7dc9" CodeName="Источник1" IsParametersVisible="false" OnlyValueHandlersCanUsed="false" />
        </Block>
        <Block Key="close" Category="TradeMath" Location="372 158" TypeName="ConverterItem">
          <EditItem Guid="9c634b34-dedb-46c8-a689-8a6a1dc4cda1" 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="ПанельГрафика1" Category="GraphPane" Location="82 388" Order="0" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" RightAxisPrecision="-1" RightAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightDownHysteresis="0" RightUpHysteresis="0" IsVisible="true" />
        <Block Key="ОткрПозиПоРынк" Category="OpenPosition" Location="912 140" TypeName="OpenPositionByMarketItem">
          <EditItem Guid="4238034d-84bb-43b9-93bb-c31bf7aa68df" CodeName="ОткрПозиПоРынк" IsParametersVisible="false" OnlyValueHandlersCanUsed="true">
            <Parameters>
              <Parameter Name="Shares" TypeName="Double" Value="1" />
              <Parameter Name="Long" TypeName="Boolean" Value="false" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="ЛогичесФормула" Category="Formula" Location="546 182" TypeName="BoolCustomHandlerItem" Width="120" Height="60" OpenParams="false">
          <EditItem Guid="6f3f7329-d54d-4ec4-b505-55f2a570e6f6" CodeName="ЛогичесФормула" IsParametersVisible="false" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.ScriptEngine.Template.BoolCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="StartIndex" TypeName="Int32" Value="0" />
              <Parameter Name="Expression" TypeName="String" Value="close [i] - close[i-2] &gt; 0" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="Формула" Category="Formula" Location="767 524" TypeName="DoubleCustomHandlerItem" Width="120" Height="60" OpenParams="false" ResizablePartWidth="130" ResizablePartHeight="70">
          <EditItem Guid="24bb6659-9c2d-4db4-a9b7-caba1758922a" CodeName="Формула" IsParametersVisible="false" OnlyValueHandlersCanUsed="true" HandlerTypeName="TSLab.ScriptEngine.Template.DoubleCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="StartIndex" TypeName="Int32" Value="0" />
              <Parameter Name="Expression" TypeName="String" Value="ОбнЗн + 1" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="ОбнЗн" Category="ValueUpdater" Location="693 357" TypeName="ValueUpdater">
          <EditItem Guid="6dbbd3d7-de81-42a1-9c2f-d564de6c76bf" CodeName="ОбнЗн" IsParametersVisible="false" OnlyValueHandlersCanUsed="true" HandlerTypeName="TSLab.ScriptEngine.Template.ValueUpdater+Handler, TSLab.ScriptEngine, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="StartFrom" TypeName="Double" Value="0" />
              <Parameter Name="NotClear" TypeName="Boolean" Value="false" />
            </Parameters>
          </EditItem>
        </Block>
        <Pane Key="ПанельГрафика" Category="GraphPane" Location="1264 575" Order="1" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" RightAxisPrecision="-1" RightAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightDownHysteresis="0" RightUpHysteresis="0" IsVisible="true" />
        <Block Key="ИзменПоРынку" Category="ClosePosition" Location="1241 253" TypeName="ChangePositionByMarketItem">
          <EditItem Guid="d8f51677-4768-424d-83d4-5b8ef13bccf6" CodeName="ИзменПоРынку" IsParametersVisible="false" OnlyValueHandlersCanUsed="true" />
        </Block>
        <Link From="Источник1" To="close" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="Источник1" To="ОткрПозиПоРынк" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <GraphLink From="Источник1" To="ПанельГрафика1" FromPort="Out" ToPort="LEFT" Category="ChartCandleLink">
          <Data>
            <GraphData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ListStyle="LINE" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="0" AltColor="0" Opacity="0" HideLastValue="false" Thickness="1" PaneSide="LEFT" Visible="true" ShowTrades="true" ShowPositionStop="true" ShowPositionText="true" ShowPositionIcon="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <Link From="close" To="ЛогичесФормула" FromPort="Out" ToPortNum="0" />
        <Link From="ЛогичесФормула" To="ОткрПозиПоРынк" FromPort="Out" ToPort="Eq" ToPortNum="1" />
        <Link From="Формула" To="ОбнЗн" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <GraphLink From="ОбнЗн" To="ПанельГрафика" FromPort="Out" ToPort="RIGHT" Category="ChartLineLink">
          <Data>
            <GraphData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ListStyle="LINE" CandleStyle="BAR_CANDLE" LineStyle="SOLID" Color="0" AltColor="0" Opacity="0" HideLastValue="false" Thickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" ShowPositionStop="true" ShowPositionText="true" ShowPositionIcon="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <Link From="ОбнЗн" To="Формула" FromPort="Out" ToPortNum="1" />
        <Link From="ОткрПозиПоРынк" To="ИзменПоРынку" FromPort="Out" ToPort="Pos" ToPortNum="0" />
        <Link From="ЛогичесФормула" To="ОбнЗн" FromPort="Out" ToPort="Eq" ToPortNum="1" />
        <Link From="ОбнЗн" To="ИзменПоРынку" FromPort="Out" ToPort="Shares" ToPortNum="2" />
      </Model>
    </ViewModel>
  </EditData>
  <Options xsi:type="LabOptions">
    <Indent>0</Indent>
    <HideValues>false</HideValues>
    <LegendTransparency>0</LegendTransparency>
    <ChartBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Default>
    </ChartBackgroundColor>
    <ChartGridColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Default>
    </ChartGridColor>
    <ChartRulerBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Default>
    </ChartRulerBackgroundColor>
    <ChartRulerForegroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
        <ScA>0</ScA>
        <ScR>0</ScR>
        <ScG>0</ScG>
        <ScB>0</ScB>
      </Default>
    </ChartRulerForegroundColor>
    <IntervalBase>MINUTE</IntervalBase>
    <Interval>10</Interval>
    <RecalcInterval>INTERVAL</RecalcInterval>
    <DateFrom>2015-11-02T00:00:00</DateFrom>
    <UseDateFrom>true</UseDateFrom>
    <DateTo>2015-12-04T00:20:00</DateTo>
    <UseDateTo>false</UseDateTo>
    <MaxDays>0</MaxDays>
    <SessionBegin>2000-01-01T00:00:00</SessionBegin>
    <SessionEnd>2000-01-01T00:00:00</SessionEnd>
    <DecompressMethod>Method1</DecompressMethod>
    <TradeFromBar>10</TradeFromBar>
    <MaxCandels>0</MaxCandels>
    <RtUpdates>false</RtUpdates>
    <CalcForEachSecurity>false</CalcForEachSecurity>
    <NotUsePositions>false</NotUsePositions>
    <InitDeposit>0</InitDeposit>
    <LabCalcType>Default</LabCalcType>
    <TradeMode>All</TradeMode>
  </Options>
  <Mappings>
    <Sources>
      <Source DataSourceName="DataTXT" SecurityId="GAZP_131122_151120" Name="Источник1" IsOption="false">
        <Records />
      </Source>
    </Sources>
    <Parameters />
    <ParameterGroups />
    <AutoParameters />
  </Mappings>
  <Iterations>100</Iterations>
  <OptParametersRecords />
  <OptParametersRecordsFolders />
</GraphDataBase>]]></Code>
  <Settings2><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<XmlLabSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Options>
    <DefEntryApprove>false</DefEntryApprove>
    <DefExitApprove>false</DefExitApprove>
    <AutoEntryBars>0</AutoEntryBars>
    <AutoCloseBars>0</AutoCloseBars>
    <Slippage>0</Slippage>
    <SlippagePct>0</SlippagePct>
    <TakeProfitNoSlippage>false</TakeProfitNoSlippage>
    <OpenPositionNoSlippage>false</OpenPositionNoSlippage>
    <ByMarketAsLimt>false</ByMarketAsLimt>
    <InvalidStopsByMarket>false</InvalidStopsByMarket>
    <RemoveInactivePositions>true</RemoveInactivePositions>
    <WarnSkippedOpenPositions>true</WarnSkippedOpenPositions>
    <NotOpenIfHasSkippedExit>false</NotOpenIfHasSkippedExit>
    <NoCalcInfo>false</NoCalcInfo>
    <MaxBarsForSignal>0</MaxBarsForSignal>
    <WaitExecutionExitBars>0</WaitExecutionExitBars>
    <WaitExecutionEntryBars>0</WaitExecutionEntryBars>
    <SimulatePositionOrdering>true</SimulatePositionOrdering>
  </Options>
  <Mappings>
    <Sources />
    <Parameters />
    <ParameterGroups />
    <AutoParameters />
  </Mappings>
  <AppearanceOptions>
    <Background>
      <A>255</A>
      <R>245</R>
      <G>245</G>
      <B>245</B>
      <ScA>1</ScA>
      <ScR>0.913098633</ScR>
      <ScG>0.913098633</ScG>
      <ScB>0.913098633</ScB>
    </Background>
    <Foreground>
      <A>255</A>
      <R>0</R>
      <G>0</G>
      <B>0</B>
      <ScA>1</ScA>
      <ScR>0</ScR>
      <ScG>0</ScG>
      <ScB>0</ScB>
    </Foreground>
    <ShowCaption>true</ShowCaption>
    <FontSize>11</FontSize>
  </AppearanceOptions>
  <Layout>&lt;XmlLabLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
	&lt;MainChartWindow Id="Main"&gt;
		&lt;Docking&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&amp;lt;DockSiteLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SerializationFormat="All"&amp;gt;&amp;lt;AutoHideHost /&amp;gt;&amp;lt;Content xsi:type="Workspace" AutoHideSize="1918,935" DockedSize="1918,935" DocumentSize="1918,935" FloatingSize="1918,935" Size="1918,935"&amp;gt;&amp;lt;Content xsi:type="TabbedMdiHost"&amp;gt;&amp;lt;Content xsi:type="TabbedMdiContainer" AutoHideSize="1918,935" DockedSize="1918,935" DocumentSize="1918,935" FloatingSize="1918,935" Size="1918,935" SelectedWindowUniqueId="388b099d-d3a0-4cff-8ecc-c8b5a80eaa67"&amp;gt;&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="388b099d-d3a0-4cff-8ecc-c8b5a80eaa67" /&amp;gt;&amp;lt;/Content&amp;gt;&amp;lt;/Content&amp;gt;&amp;lt;/Content&amp;gt;&amp;lt;DocumentWindows&amp;gt;&amp;lt;DocumentWindow UniqueId="388b099d-d3a0-4cff-8ecc-c8b5a80eaa67" AutoHideSize="1918,935" DockedSize="1918,935" DocumentSize="1918,935" FloatingSize="1918,935" Size="1918,935" IsOpen="true" LastState="Document" Name="Graph" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;&amp;lt;/DocumentWindows&amp;gt;&amp;lt;/DockSiteLayout&amp;gt;&lt;/Docking&gt;
	&lt;/MainChartWindow&gt;
	&lt;Docking&gt;&amp;lt;DockSiteLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SerializationFormat="All"&amp;gt;
	&amp;lt;AutoHideHost /&amp;gt;
	&amp;lt;Content xsi:type="Workspace" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973"&amp;gt;
		&amp;lt;Content xsi:type="TabbedMdiHost"&amp;gt;
			&amp;lt;Content xsi:type="TabbedMdiContainer" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" SelectedWindowUniqueId="58511ec2-f548-4b09-82ce-2d5d11858974"&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="58511ec2-f548-4b09-82ce-2d5d11858974" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="dfcdb969-b99d-4a2f-a234-5671c7a72377" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="c17dae15-22a6-4c5b-a5a0-67727887dcc9" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="729b517a-b986-421f-a4b2-eb2d9c02c91b" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="bfaada0d-9907-430c-bf75-57b928693d4b" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="78aa0543-e6c9-450b-8d91-4a78e9bcdf50" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="8753677f-3c55-43c4-97a9-ba7b8061b5f3" /&amp;gt;
				&amp;lt;UIElement xsi:type="DocumentWindowRef" UniqueId="519c5a5c-9583-42f7-a8b9-653514e4b552" /&amp;gt;
			&amp;lt;/Content&amp;gt;
		&amp;lt;/Content&amp;gt;
	&amp;lt;/Content&amp;gt;
	&amp;lt;DocumentWindows&amp;gt;
		&amp;lt;DocumentWindow UniqueId="58511ec2-f548-4b09-82ce-2d5d11858974" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Editor" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="dfcdb969-b99d-4a2f-a234-5671c7a72377" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Graph" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="c17dae15-22a6-4c5b-a5a0-67727887dcc9" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Performance" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="729b517a-b986-421f-a4b2-eb2d9c02c91b" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Profit" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="bfaada0d-9907-430c-bf75-57b928693d4b" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Trades" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="78aa0543-e6c9-450b-8d91-4a78e9bcdf50" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Optimization" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="8753677f-3c55-43c4-97a9-ba7b8061b5f3" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Parameters" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
		&amp;lt;DocumentWindow UniqueId="519c5a5c-9583-42f7-a8b9-653514e4b552" AutoHideSize="1918,973" DockedSize="1918,973" DocumentSize="1918,973" FloatingSize="1918,973" Size="1918,973" IsOpen="true" LastState="Document" Name="Log" StandardMdiBounds="0,0,300,200" Type="TSLab.Controls.ContentPane, TSLab.Controls" State="Document" /&amp;gt;
	&amp;lt;/DocumentWindows&amp;gt;
&amp;lt;/DockSiteLayout&amp;gt;&lt;/Docking&gt;
	&lt;LabWindows /&gt;
&lt;/XmlLabLayout&gt;</Layout>
  <ControlPaneLayout />
  <WindowBarSizes>
    <XmlKeyValueOfStringDouble Key="" Value="28" />
  </WindowBarSizes>
  <GraphPaneSizes>
    <XmlKeyValueOfStringDouble Key="ПанельГрафика" Value="33.333333333333329" />
    <XmlKeyValueOfStringDouble Key="ПанельГрафика1" Value="66.666666666666657" />
    <XmlKeyValueOfStringDouble Key="ПанельГрафика2" Value="33.333333333333329" />
  </GraphPaneSizes>
</XmlLabSettings>]]></Settings2>
</ExportScriptData>