<?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="Закрытие" Category="TradeMath" Location="427 69" TypeName="ConverterItem">
          <EditItem Guid="416419ef-ba8a-4aca-a761-afdadc703050" CodeName="Закрытие" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Close, TSLab.Script.Handlers, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="ТоргуемИнструм" Category="TradableSecurity" Location="31.823282506727992 51.548068206638618" TypeName="TradableSecuritySourceItem">
          <EditItem Guid="d084fbc0-2ca1-4b57-912d-633e3d1657cf" CodeName="ТоргуемИнструм" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" />
        </Block>
        <Block Key="Формула" Category="Formula" Location="845.90099562500041 151.79150781249996" TypeName="DoubleCustomHandlerItem" Width="120" Height="60" ResizablePartWidth="195" ResizablePartHeight="84" OpenParams="true">
          <EditItem Guid="b033a80b-fe55-491a-92d0-8c29483f0ee7" CodeName="Формула" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.ScriptEngine.Template.DoubleCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Expression" TypeName="String" Value="((МаксимумЗа-Закрытие) / (МаксимумЗа-МинимумЗа)) * -100" />
              <Parameter Name="StartIndex" TypeName="Int32" Value="0" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="МинимумЗа" Category="Indicators" Location="612.38752968750055 268.06778937499996" TypeName="ConverterItem">
          <EditItem Guid="97be1cd5-30e5-43a6-9a7e-cb9f75f21488" CodeName="МинимумЗа" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Lowest, TSLab.Script.Handlers, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Period" TypeName="Int32" Value="4200" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="Минимум" Category="TradeMath" Location="431 291.00000000000011" TypeName="ConverterItem">
          <EditItem Guid="8c9cc2b6-9b29-4b5e-968a-0c5fc315f778" CodeName="Минимум" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Low, TSLab.Script.Handlers, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="МаксимумЗа" Category="Indicators" Location="613.689503860157 158.47007356328129" TypeName="ConverterItem">
          <EditItem Guid="eebbdf6e-e39e-4a1b-a4ce-b13cac5f58e1" CodeName="МаксимумЗа" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Highest, TSLab.Script.Handlers, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Period" TypeName="Int32" Value="4200" />
            </Parameters>
          </EditItem>
        </Block>
        <Block Key="Максимум" Category="TradeMath" Location="429.74319661874983 181.14200845312496" TypeName="ConverterItem">
          <EditItem Guid="f1ba54e3-a740-4fd3-85b5-05b456e48c6a" CodeName="Максимум" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.High, TSLab.Script.Handlers, Version=2.1.15.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Pane Key="Главная2" Category="GraphPane" Location="39.0268840106346 367.48114188632621" Order="0" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="-1" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Pane Key="Главная1" Category="GraphPane" Location="36.000793073134219 215.3291146988264" Order="1" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="-1" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Link From="ТоргуемИнструм" To="Закрытие" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="Закрытие" To="Формула" FromPort="Out" ToPortNum="10" />
        <GraphLink From="ТоргуемИнструм" To="Главная1" 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" LineStyle="SOLID" Color="-13355980" AltColor="-13355980" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <GraphLink From="Формула" To="Главная2" 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="-65536" AltColor="-65536" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <Link From="Минимум" To="МинимумЗа" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="Максимум" To="МаксимумЗа" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="МинимумЗа" To="Формула" FromPort="Out" ToPortNum="11" />
        <Link From="МаксимумЗа" To="Формула" FromPort="Out" ToPortNum="12" />
        <Link From="ТоргуемИнструм" To="Максимум" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="ТоргуемИнструм" To="Минимум" FromPort="Out" ToPort="Src" ToPortNum="0" />
      </Model>
    </ViewModel>
  </EditData>
  <Id>70e0a935-5b13-4bb7-a526-da8c06a5592a</Id>
  <Options xsi:type="LabOptions">
    <BarSizes>
      <BarSize Key="" Value="0.16469267345801275" />
    </BarSizes>
    <PaneSizes>
      <PaneSize Key="Главная2" Value="39.428616734499684" />
      <PaneSize Key="Главная1" Value="60.571383265500316" />
    </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>SECONDS</IntervalBase>
    <Interval>1</Interval>
    <GraphListVisibilities />
    <VerticalScales />
    <RecalcInterval>INTERVAL</RecalcInterval>
    <DateFrom>2022-01-05T00:00:00+03:00</DateFrom>
    <UseDateFrom>true</UseDateFrom>
    <DateTo>2022-02-05T00:00:00+03:00</DateTo>
    <UseDateTo>false</UseDateTo>
    <DateReload>2022-02-05T00: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>
    <ScriptEditorShowLinks>true</ScriptEditorShowLinks>
    <TradeFromBar>0</TradeFromBar>
    <IsSplittedProfitByInstruments>false</IsSplittedProfitByInstruments>
    <NotUsePositions>false</NotUsePositions>
    <InitDeposit>0</InitDeposit>
    <LabCalcType>Default</LabCalcType>
    <TradeMode>All</TradeMode>
    <IsShowedBlockNumbers>false</IsShowedBlockNumbers>
    <LimitOrderExecutionMode>Touch</LimitOrderExecutionMode>
  </Options>
  <Mappings>
    <Sources>
      <Source DataSourceName="Брент 1 янв - 3 февр 1 м" SecurityId="Брент 28 января тики" Name="d084fbc0-2ca1-4b57-912d-633e3d1657cf" 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,"OrderExpirationDays":2,"RemoveInactivePositions":true,"WarnSkippedOpenPositions":true,"NotOpenIfHasSkippedExit":false,"NoCalcInfo":false,"MaxBarsForSignal":0,"ExitSignalOnlyForLastBar":false,"WaitExecutionExitBars":0,"WaitExecutionEntryBars":0,"SimulatePositionOrdering":true,"UseCommissionInProfit":false,"EventOrderRejected":false,"EventOrderFilled":false,"EventOrderCanceled":false,"EventOrderQtyChanged":false,"EventPositionOpening":false,"EventPositionClosing":false,"EventTradingIsStarted":true,"EventTradingIsStopped":false,"EventBarClosedNoTrades":true,"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=\"Workspace\"&gt;&lt;Content xsi:type=\"TabbedMdiHost\"&gt;&lt;Content xsi:type=\"TabbedMdiContainer\" DockedSize=\"1920,809\" SelectedWindowUniqueId=\"288cc70d-f9a4-4ce3-9e07-9357a3eab8d0\"&gt;&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"288cc70d-f9a4-4ce3-9e07-9357a3eab8d0\" /&gt;&lt;/Content&gt;&lt;/Content&gt;&lt;/Content&gt;&lt;ToolWindows&gt;&lt;ToolWindow UniqueId=\"288cc70d-f9a4-4ce3-9e07-9357a3eab8d0\" SerializationId=\"Graph\" ContainerDockedSize=\"1920,809\" IsOpen=\"true\" LastActiveDateTime=\"2022-02-05T11:16:03.128459+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=\"TabbedMdiContainer\" DockedSize=\"1920,861\" SelectedWindowUniqueId=\"59d8674e-f1fb-4a59-8fba-7dae42fe1e6f\"&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"044cd521-4bdf-40fa-a1fe-38daa665bcc6\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"59d8674e-f1fb-4a59-8fba-7dae42fe1e6f\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"6f3cc9e2-aeb2-4129-9098-d14f693159c6\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"af07272b-d9fb-4be4-a6a3-fd6819ebdd83\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"59b68789-b559-49c1-8c63-1a55b3c9b988\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"676c09b7-c0ac-4ead-8134-75d7bbfa5288\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"b4824c7f-c52d-48fc-9833-9bf954f1b93c\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"6fdc93e6-d3be-42be-9a1e-374ff19d4773\" /&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=\"044cd521-4bdf-40fa-a1fe-38daa665bcc6\" SerializationId=\"EditorViewModel\" Name=\"Editor\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" LastActiveDateTime=\"2022-02-05T11:34:49.5569101+03:00\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"59d8674e-f1fb-4a59-8fba-7dae42fe1e6f\" SerializationId=\"ChartViewModel\" Name=\"ChartViewModel\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" LastActiveDateTime=\"2022-02-05T11:34:58.6687035+03:00\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"6f3cc9e2-aeb2-4129-9098-d14f693159c6\" SerializationId=\"PerformanceViewModel\" Name=\"Performance\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"af07272b-d9fb-4be4-a6a3-fd6819ebdd83\" SerializationId=\"TradesViewModel\" Name=\"Trades\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"59b68789-b559-49c1-8c63-1a55b3c9b988\" SerializationId=\"OptimizationViewModel\" Name=\"Optimization\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"676c09b7-c0ac-4ead-8134-75d7bbfa5288\" SerializationId=\"ParametersViewModel\" Name=\"Parameters\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"b4824c7f-c52d-48fc-9833-9bf954f1b93c\" SerializationId=\"LogViewModel\" Name=\"Log\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"6fdc93e6-d3be-42be-9a1e-374ff19d4773\" SerializationId=\"ProfitModel\" Name=\"Profit\" ContainerDockedSize=\"1920,861\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Docking.ContentPane, TSLab.Docking\" /&gt;\r\n\t&lt;/ToolWindows&gt;\r\n&lt;/DockSiteLayout&gt;</Docking>\r\n\t<ActiveWindow>ChartViewModel</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":{}}]]></Settings2>
</ExportScriptData>