﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Как преобразовать decimal в DecimalIndicatorValue</title>
  <id>~/topic/4930/kak-preobrazovat-decimal-v-decimalindicatorvalue/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-11T10:08:46Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4930" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/32885/</id>
    <title type="text"> new DecimalIndicatorValue(yourIndicator, yourDecimalValue) </title>
    <published>2015-03-16T15:06:56Z</published>
    <updated>2015-03-16T15:06:56Z</updated>
    <author>
      <name>RomSunZ</name>
      <uri>https://stocksharp.com/users/6384/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;pre&gt;&lt;code class="language-csharp"&gt;
new DecimalIndicatorValue(yourIndicator, yourDecimalValue)

&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/32884/</id>
    <title type="text">Добрый день! Как можно преобразовать decimal в DecimalIndicatorValue? Пробовал различные варианты: 1...</title>
    <published>2015-03-16T14:35:58Z</published>
    <updated>2015-03-16T14:35:58Z</updated>
    <author>
      <name>vazgaz31</name>
      <uri>https://stocksharp.com/users/62622/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Добрый день!&lt;/p&gt;
&lt;p&gt;Как можно преобразовать decimal в DecimalIndicatorValue?&lt;/p&gt;
&lt;p&gt;Пробовал различные варианты:
1 - ```csharp
new DecimalIndicatorValue(candle.ClosePrice)&lt;/p&gt;
&lt;pre&gt;&lt;code class="language--"&gt;
2 - ```csharp
(DecimalIndicatorValue)candle.ClosePrice
``` - ошибка: Преобразование типа &amp;quot;decimal&amp;quot; в &amp;quot;StockSharp.Algo.Indicators.DecimalIndicatorValue&amp;quot; невозможно
&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>