<?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="250 0" TypeName="TradableSecuritySourceItem">
          <EditItem Guid="a0fff750-c382-4ad8-9f78-20a01a233f40" CodeName="symbol" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" />
        </Block>
        <Block Key="close" Category="TradeMath" Location="255 85" TypeName="ConverterItem">
          <EditItem Guid="393f2a7e-1626-4508-8269-c0bbc39da268" CodeName="close" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.Close, TSLab.Script.Handlers, Version=1.1.7.42, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="EMA" Category="Indicators" Location="258 163" TypeName="ConverterItem">
          <EditItem Guid="76f0fa92-fb77-465a-959d-e84b523a6997" CodeName="EMA" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.EMA, TSLab.Script.Handlers, Version=1.1.7.42, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="exp_1" Category="TradeMath" Location="225 286" TypeName="TwoInputsItem">
          <EditItem Guid="39c81855-5567-461b-a48c-f60d841234d4" CodeName="exp_1" IsParametersVisible="true" OnlyValueHandlersCanUsed="false" HandlerTypeName="TSLab.Script.Handlers.CrossOver, TSLab.Script.Handlers, Version=1.1.7.42, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="accum" Category="ValueUpdater" Location="254 378" TypeName="ValueUpdater">
          <EditItem Guid="bd4c64d6-34e8-46cf-a1af-d3d7a08af381" CodeName="accum" IsParametersVisible="true" OnlyValueHandlersCanUsed="true" HandlerTypeName="TSLab.ScriptEngine.Template.ValueUpdater+Handler, TSLab.ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
        </Block>
        <Block Key="incr" Category="Formula" Location="416 281" TypeName="DoubleCustomHandlerItem" Width="120" Height="60" ResizablePartWidth="143" ResizablePartHeight="80" OpenParams="true">
          <EditItem Guid="afa2704e-ed91-49d1-a814-91d24af00913" CodeName="incr" IsParametersVisible="true" OnlyValueHandlersCanUsed="true" HandlerTypeName="TSLab.ScriptEngine.Template.DoubleCustomHandlerItem+Handler, TSLab.ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
            <Parameters>
              <Parameter Name="Expression" TypeName="String" Value="(accum&lt;10) ? (accum+1) : 0" />
            </Parameters>
          </EditItem>
        </Block>
        <Pane Key="Главное" Category="GraphPane" Location="0 80" Order="0" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="-1" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Pane Key="Pane2" Category="GraphPane" Location="0 200" Order="1" IsVisible="true" HideLegend="false" LeftAxisPrecision="-1" LeftAxisByPercents="false" LeftDownHysteresis="0" LeftUpHysteresis="0" RightAxisPrecision="-1" RightAxisByPercents="false" RightDownHysteresis="0" RightUpHysteresis="0" />
        <Link From="symbol" To="close" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="close" To="EMA" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <Link From="close" To="exp_1" FromPort="Out" ToPort="1" ToPortNum="0" />
        <Link From="EMA" To="exp_1" FromPort="Out" ToPort="2" ToPortNum="1" />
        <Link From="exp_1" To="accum" FromPort="Out" ToPort="Eq" ToPortNum="1" />
        <Link From="accum" To="incr" FromPort="Out" ToPort="1" ToPortNum="0" />
        <Link From="incr" To="accum" FromPort="Out" ToPort="Src" ToPortNum="0" />
        <GraphLink From="symbol" To="Главное" 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="-12549582" AltColor="-6224635" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <GraphLink From="EMA" To="Главное" 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="-65279" AltColor="-16777216" Opacity="0" HideLastValue="false" Thickness="1" AltThickness="1" PaneSide="RIGHT" Visible="true" ShowTrades="true" CandleFillStyle="Decreasing" Autoscaling="true">
              <Points />
            </GraphData>
          </Data>
        </GraphLink>
        <GraphLink From="accum" 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="-11513717" AltColor="-16777216" 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>83e2d303-811f-423c-8911-b7a4c1f4ec8a</Id>
  <Options xsi:type="LabOptions">
    <BarSizes>
      <BarSize Key="" Value="1.401975597925569" />
    </BarSizes>
    <PaneSizes>
      <PaneSize Key="Главное" Value="50" />
      <PaneSize Key="Pane2" Value="50" />
    </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>255</A>
        <R>215</R>
        <G>215</G>
        <B>215</B>
      </Default>
    </LegendForegroundColor>
    <ChartBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>255</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>255</A>
        <R>255</R>
        <G>255</G>
        <B>255</B>
      </Default>
    </ChartForegroundColor>
    <ChartGridColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>255</A>
        <R>49</R>
        <G>49</G>
        <B>49</B>
      </Default>
    </ChartGridColor>
    <ChartBorderColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>255</A>
        <R>49</R>
        <G>49</G>
        <B>49</B>
      </Default>
    </ChartBorderColor>
    <ChartRulerBackgroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>255</A>
        <R>73</R>
        <G>73</G>
        <B>73</B>
      </Default>
    </ChartRulerBackgroundColor>
    <ChartRulerForegroundColor>
      <Value>
        <A>0</A>
        <R>0</R>
        <G>0</G>
        <B>0</B>
      </Value>
      <IsChanged>false</IsChanged>
      <Default>
        <A>255</A>
        <R>255</R>
        <G>255</G>
        <B>255</B>
      </Default>
    </ChartRulerForegroundColor>
    <IntervalBase>MINUTE</IntervalBase>
    <Interval>1</Interval>
    <GraphListVisibilities />
    <VerticalScales />
    <RecalcInterval>INTERVAL</RecalcInterval>
    <DateFrom>0001-01-01T00:00:00</DateFrom>
    <UseDateFrom>false</UseDateFrom>
    <DateTo>2010-07-02T00:02:00</DateTo>
    <UseDateTo>false</UseDateTo>
    <DateReload>2020-05-28T00: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="binance" SecurityId="BTCUSDT" Name="a0fff750-c382-4ad8-9f78-20a01a233f40" VisualTypeName="Tradable instrument" IsOption="false">
        <Records />
      </Source>
    </Sources>
    <Parameters>
      <Parameter xsi:type="IntOptimData" ItemName="76f0fa92-fb77-465a-959d-e84b523a6997" BlockName="EMA" Name="Period" InvariantName="Period" CodeName="EMA_Period" UsedInOptimization="false" IsCalculable="false" Value="20" TypeName="Int32" MinValue="10" MaxValue="100" Step="5" ControlMinValue="10" ControlMaxValue="100" ControlStep="5" />
    </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=\"1920,832\"&gt;&lt;UIElement xsi:type=\"Workspace\"&gt;&lt;Content xsi:type=\"TabbedMdiHost\"&gt;&lt;Content xsi:type=\"TabbedMdiContainer\" SelectedWindowUniqueId=\"7b3676c3-7e5f-462a-a3ea-7b1244968941\"&gt;&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"7b3676c3-7e5f-462a-a3ea-7b1244968941\" /&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-05-28T12:03:15.3465826+03:00\" UniqueId=\"7b3676c3-7e5f-462a-a3ea-7b1244968941\" /&gt;&lt;/UIElement&gt;&lt;/Content&gt;&lt;ToolWindows&gt;&lt;ToolWindow UniqueId=\"7b3676c3-7e5f-462a-a3ea-7b1244968941\" SerializationId=\"Graph\" IsOpen=\"true\" LastActiveDateTime=\"2020-05-28T12:03:15.4210918+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,879\" SelectedWindowUniqueId=\"f9852b36-156f-4190-9edb-bf0f0671ed02\"&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"eef2258f-54f4-41cc-bb99-fe136fe03c69\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"f9852b36-156f-4190-9edb-bf0f0671ed02\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"4cbc46bd-a92f-4db0-8f9b-facd8feac52c\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"e2c63bcb-bef4-4621-8164-f50520f79c31\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"330448be-f615-4ea7-816f-a4b87f0f90b9\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"4a7c94ad-8a05-4760-922a-f212f156fd5c\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"cb9b987b-1698-41fe-945a-941850ae809b\" /&gt;\r\n\t\t\t\t&lt;UIElement xsi:type=\"ToolWindowRef\" UniqueId=\"3c6bd4de-a5ee-4c61-a3b6-0ee608cad7a0\" /&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=\"eef2258f-54f4-41cc-bb99-fe136fe03c69\" SerializationId=\"EditorViewModel\" Name=\"Editor\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" LastActiveDateTime=\"2020-05-28T12:02:22.9638428+03:00\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"f9852b36-156f-4190-9edb-bf0f0671ed02\" SerializationId=\"ChartViewModel\" Name=\"ChartViewModel\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" LastActiveDateTime=\"2020-05-28T12:03:15.297225+03:00\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"4cbc46bd-a92f-4db0-8f9b-facd8feac52c\" SerializationId=\"PerformanceViewModel\" Name=\"Performance\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"e2c63bcb-bef4-4621-8164-f50520f79c31\" SerializationId=\"TradesViewModel\" Name=\"Trades\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"330448be-f615-4ea7-816f-a4b87f0f90b9\" SerializationId=\"OptimizationViewModel\" Name=\"Optimization\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"4a7c94ad-8a05-4760-922a-f212f156fd5c\" SerializationId=\"ParametersViewModel\" Name=\"Parameters\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"cb9b987b-1698-41fe-945a-941850ae809b\" SerializationId=\"LogViewModel\" Name=\"Log\" ContainerDockedSize=\"1920,879\" IsOpen=\"true\" State=\"Document\" Type=\"TSLab.Controls.ContentPane, TSLab.Controls\" /&gt;\r\n\t\t&lt;ToolWindow UniqueId=\"3c6bd4de-a5ee-4c61-a3b6-0ee608cad7a0\" SerializationId=\"ProfitModel\" Name=\"Profit\" ContainerDockedSize=\"1920,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>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>
  <Comment><![CDATA[]]></Comment>
  <Tags />
  <CreationData>0001-01-01 00:00:00</CreationData>
  <ModificationData>2020-05-28 12:04:10</ModificationData>
</ExportScriptData>