﻿<?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">algorithmic trading. StockSharp</title>
  <id>https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=algorithmic trading&amp;type=forum&amp;page=2</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-27T03:59:01Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=algorithmic trading&amp;type=forum&amp;page=2" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/topic/4429/</id>
    <title type="text">Charting Candles (received from Quik)</title>
    <published>2014-03-23T11:44:07Z</published>
    <updated>2014-03-23T11:44:07Z</updated>
    <author>
      <name>sunrising</name>
      <uri>https://stocksharp.com/users/50864/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <content type="html">&lt;p&gt;Dear Stock# community,&lt;/p&gt;
&lt;p&gt;We tried to lunch Sample SMA example with some minor personalization.&lt;/p&gt;
&lt;p&gt;The main problem we have is related to drawing candles received from quik real time.&lt;/p&gt;
&lt;p&gt;The code reported below is able to draw correctly history data but not the current one received from quik.(we report only a peace of code related to candle drawing, in case you need more information please tell us about it),&lt;/p&gt;
&lt;p&gt;Please might you suggest us where the error could be? (We have already set up permissions to administrator for both quik and C# project)&lt;/p&gt;
&lt;p&gt;Thank you very much for your help.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;// Trader creation
_trader = new QuikTrader(this.Path.Text);


// CONNECTION
_trader.Connected += () =&amp;gt;
{
	_candleManager = new CandleManager(_trader);
	
	//WHEN A NEW CANDLE IS RECEIVED
	_candleManager.Processing += (series, candle) =&amp;gt;
	{
		if (candle.State == CandleStates.Finished)
			this.GuiAsync(() =&amp;gt; ProcessCandle(candle));
	};
	
	_trader.Connect();
}



private void Start_Click(object sender, RoutedEventArgs e)
{
	if (_strategy == null)
	{
		// register our security and timeframe
		var series = new CandleSeries(typeof(TimeFrameCandle), _lkoh, _timeFrame);

		/*CREATION OF CANDLES FROM HISTORY *.txt*/
		IEnumerable&amp;lt;Candle&amp;gt; candles = File.ReadAllLines(&amp;quot;LKOH_history.txt&amp;quot;).Select(line =&amp;gt;
		{
			var parts = line.Split(',');
			//Returns a string array that contains the substrings that are delimited by ','.
			var time = (parts[0] + parts[1]).ToDateTime(&amp;quot;yyyyMMddHHmmss&amp;quot;);

			return (Candle)new TimeFrameCandle
			{
				OpenPrice = parts[2].To&amp;lt;decimal&amp;gt;(), //To&amp;lt;decimal&amp;gt;() is converter from string to decimal
				HighPrice = parts[3].To&amp;lt;decimal&amp;gt;(),
				LowPrice = parts[4].To&amp;lt;decimal&amp;gt;(),
				ClosePrice = parts[5].To&amp;lt;decimal&amp;gt;(),
				TimeFrame = _timeFrame,
				OpenTime = time,
				TotalVolume = parts[6].To&amp;lt;int&amp;gt;(),
				Security = _lkoh,
				State = CandleStates.Finished,
			};
		});

		var lastCandleTime = default(DateTime);
		
		// History candles drawing
		foreach (var candle in candles)
		{
			ProcessCandle(candle);
			lastCandleTime = candle.OpenTime;
		}
		
		/* now we try to get current data from quik */
		
		_candleManager.Start(series);

		// Calculation of time intervals of current candle
		var bounds = _timeFrame.GetCandleBounds(series.Security);

		// get candles from when quik started to the latest one
		candles = _candleManager.Container.GetCandles(series, new Range&amp;lt;DateTime&amp;gt;(lastCandleTime + _timeFrame, bounds.Min));

		// draw candles received from quik
		foreach (var candle in candles)
		{
			ProcessCandle(candle);
		}
	}
}
&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/4125/</id>
    <title type="text">lesson_faq</title>
    <published>2013-11-12T04:46:35Z</published>
    <updated>2013-11-12T04:46:35Z</updated>
    <author>
      <name>Lazyt3ch</name>
      <uri>https://stocksharp.com/users/39286/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <content type="html">&lt;p&gt;&lt;span style="font-size:24pt"&gt;Frequenly asked questions:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Are your training courses focused on &lt;a href="http://stocksharp.com/doc/?topic=html/769f74c8-6f8e-4312-a867-3dc6e8482636.htm"&gt;QUIK&lt;/a&gt;&lt;/strong&gt; only?
No, they are not. As a matter of fact, after completing our course, you will be able to create an algo strategy for any platform supported by S# (QUIK, Alfa-Direct, SmartCOM, etc.). That’s because you only need to modify a small portion of the source code to connect to a different trading terminal (&lt;a href="http://stocksharp.com/forum/yaf_postsm26662_Urok-1--Bystryi-start-StockSharp.aspx#post26662"&gt;see Lesson One&lt;/a&gt;). More video lessons are available. Watch them to learn about working with less popular trading platforms and about their peculiarities.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Can I get your video lessons on a DVD or other media?&lt;/strong&gt;
Sorry, we do not provide our lessons this way to prevent piracy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;For how long will I be able to access the lessons?&lt;/strong&gt;
After paying for a training course, you can access the main video lessons literally forever!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Can I buy a &lt;a href="http://stocksharp.com/lesson/wealth.aspx"&gt;S#.WealthLab&lt;/a&gt; adapter without buying any training courses?&lt;/strong&gt;
Yes, you can. In this case, you will get the adapter without any technical support or updates, with a 50 percent discount from the WealthLab main course’s regular price.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Can I buy the C# course from you?&lt;/strong&gt;
We do not sell the C# course separately, but only as an addition to the S# or WealthLab courses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How long does it take to learn C#?&lt;/strong&gt;
By polling our students, we found out that it usually takes one or two months. You can always find a C# teacher at our &lt;a href="http://stocksharp.com/forum/yaf_forum10_Obuchieniie.aspx"&gt;forum&lt;/a&gt; or in &lt;a href="http://stocksharp.com/forum/yaf_postst3722_Alghotrieidingh--TFS--proiekty--chaty--komandnaia-rabota.aspx"&gt;online chats&lt;/a&gt;!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Can I attend the S# or WealthLab courses if I have no programming skills at all?&lt;/strong&gt;
Surely you can! The first part of the S# and WealthLab courses is a C# course for beginners.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;There are some video lessons with restricted access on the forum. How can I watch them?&lt;/strong&gt;
You can access them as soon as you pay for the courses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span style="color:green"&gt;How can I pay for the courses?&lt;/span&gt;&lt;/strong&gt;
Submit a request for attending a course of your choice, pay the specified sum, and we will open you access to the restricted resources (video lessons and software). You can pay via the &lt;a href="http://www.platron.ru/" rel="nofollow" target="_blank"&gt;Platron&lt;/a&gt; integrated system, which supports a lot of payment options.&lt;/li&gt;
&lt;/ol&gt;
</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/4121/</id>
    <title type="text">lesson</title>
    <published>2013-11-12T04:37:02Z</published>
    <updated>2013-11-12T04:37:02Z</updated>
    <author>
      <name>Lazyt3ch</name>
      <uri>https://stocksharp.com/users/39286/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <content type="html">&lt;div style="text-align:center"&gt;&lt;p&gt;&lt;span style="font-size:24pt"&gt;&lt;span style="color:green"&gt;Welcome to StockSharp training courses!&lt;/span&gt;&lt;/span&gt;
&lt;em&gt;Send us an e-mail or call us: lesson@stocksharp.com +7(499)653-82-24&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="text-align:center"&gt;&lt;iframe src="https://www.youtube.com/embed/Cn4tdZgG4lo" width="640" height="390" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;We started training students in 2011, and we have already trained more than 300 people. We work together with our students, develop new projects, and have our algo community.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:green"&gt;&lt;span style="font-size:24pt"&gt;Main &lt;a href="http://stocksharp.com/lesson/bonus/"&gt;bonuses&lt;/a&gt; for our students:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="float:left"&gt;&lt;img src="/file/102929/1.png" alt="" /&gt;&lt;/span&gt;&lt;strong&gt;Distance learning&lt;/strong&gt;. Distance learning using video lessons. You can find our training courses in the special section of our &lt;a href="http://stocksharp.com/forum/tags/%D0%9E%D0%B1%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5/"&gt;forum&lt;/a&gt;. There you can watch video lessons, ask questions, talk with other students, and solve interesting problems to better learn new things.&lt;/p&gt;
&lt;p&gt;&lt;span style="float:left"&gt;&lt;img src="/file/102930/2.png" alt="" /&gt;&lt;/span&gt;&lt;strong&gt;Algo strategy repository&lt;/strong&gt;. We continue developing and improving our algo strategies. Together with our students, we make the strategies better. We already have more than 10 ready-to-use algo strategies.&lt;/p&gt;
&lt;p&gt;&lt;span style="float:left"&gt;&lt;img src="/file/102561/chat.png" alt="" /&gt;&lt;/span&gt;&lt;strong&gt;We are a team!&lt;/strong&gt; Now our students can discuss algo trading with their colleagues in online chats and watch for changes in projects! They can find first-line support here, too. &lt;a href="http://stocksharp.com/lesson/chat/"&gt;Read more...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="float:left"&gt;&lt;img src="/file/102146/robot_testing.png" alt="" /&gt;&lt;/span&gt;&lt;strong&gt;S#.Shell&lt;/strong&gt; is a simplified version of S#.Studio that lets you edit source code. Use S#.Shell as a powerful, ready-made shell for your algo strategy! &lt;a href="http://stocksharp.com/products/shell/"&gt;Read more...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="float:left"&gt;&lt;img src="/file/102442/2.png" alt="" /&gt;&lt;/span&gt;&lt;strong&gt;S#.WealthLab&lt;/strong&gt;. By using our adapter, you can send signals from WealthLab to any S# connectors (Russia, the United States, or Forex). &lt;a href="http://stocksharp.com/products/wld/"&gt;Read more...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:green"&gt;&lt;span style="font-size:24pt"&gt;You don’t have to &lt;a href="http://stocksharp.com/lesson/feedback/"&gt;take our word&lt;/a&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;PavelS:&lt;/strong&gt; I completed the Advanced S# Course almost one year ago. From time to time, I watch the old webinars again, which always remind me how great was Artem at helping students.   I am still an amateur programmer, and my algo strategies are simple and primitive, but I have already tried arbitrage between MICEX and LSE (ADR), pairs trading, counter-trend strategies, and more. I did all that based on Artem’s course. I’m happy to see that the training course and the library are being extended and improved.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Federigo:&lt;/strong&gt; Good evening! The courses are AMAZING!!! Big thanks to the whole StockSharp team. I loved the course, which helped me a lot. I’ve been looking for a “launch pad” to start programming algo strategies for a year, and haven’t found an alternative to StockSharp. Special thanks to Artem!!! He explained everything in the smallest detail, and gave answers to all questions. It was very interesting :)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div style="text-align:center"&gt;&lt;p&gt;&lt;span style="font-size:24pt"&gt;&lt;span style="color:green"&gt;&lt;a href="http://stocksharp.com/lesson/feedback/"&gt;Corporate testimonials&lt;/a&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/file/101815/благодарность.png" alt="OAO Chelyabenergosbyt" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/file/102435/290513-page-001.jpg" alt="OLMA investment firm" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:24pt"&gt;&lt;span style="color:green"&gt;Our training courses: &lt;a href="http://stocksharp.com/lesson/stocksharp/"&gt;S#&lt;/a&gt;, &lt;a href="http://stocksharp.com/lesson/wealth/"&gt;Wealth-Lab&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/4021/</id>
    <title type="text">Information about development s#</title>
    <published>2013-10-02T07:34:29Z</published>
    <updated>2013-10-02T07:34:29Z</updated>
    <author>
      <name>auriou</name>
      <uri>https://stocksharp.com/users/50064/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <content type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm French developer c # and I find your trading tool very well developed. I would like to understand how it works to develop an investment strategy in the Forex market.
I have a few questions before I start in developing around your platform.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is it expected you to translate your software S # studio in English?&lt;/li&gt;
&lt;li&gt;Is it possible to use the Forex European market, there he was impossibilities that are related to the specifics of the Russian market?&lt;/li&gt;
&lt;li&gt;Will it among the suppliers of data you have, a European broker that I began to educate myself on your platform (FxConnect, Dukascopy)?&lt;/li&gt;
&lt;li&gt;I want to develop a strategy based on my analysis of indicators of several currencies (several graphs or instruments) with different time scales to trigger my orders to a value, is this possible?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Francais :&lt;/p&gt;
&lt;p&gt;Bonjour,&lt;/p&gt;
&lt;p&gt;Je suis français développeur c# et je trouve votre outil de trading très bien développé. J’aimerais comprendre son fonctionnement pour développer une stratégie d’investissement sur le marché du Forex.
J’ai quelques questions avant de me lancer dans le développement autour de votre plateforme.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Est-il prévu que vous traduisiez votre logiciel S# studio en anglais ?&lt;/li&gt;
&lt;li&gt;Est-ce qu’il est possible de l’utiliser sur le marché du Forex Européen, y a-t-il des impossibilités qui seraient liées aux spécificités du marché russe ?&lt;/li&gt;
&lt;li&gt;Y a-t-il parmi les fournisseurs de données que vous avez, un broker européen pour que je commence a me former sur votre plateforme (FxConnect , Dukascopy ) ?&lt;/li&gt;
&lt;li&gt;Je souhaite développer une stratégie en me basant sur l’analyse d’indicateurs de plusieurs devises (plusieurs graphes ou instruments) avec différentes échelles de temps pour déclencher mes ordres sur une valeur, est-ce possible ?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Merci.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/4019/</id>
    <title type="text">Trading FX with Interactive Brokers</title>
    <published>2013-10-01T22:33:20Z</published>
    <updated>2013-10-01T22:33:20Z</updated>
    <author>
      <name>ken123</name>
      <uri>https://stocksharp.com/users/49744/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <content type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don't speak and read Russian, sorry. But I like this Stocksharp and want to trade Forex on Interactive Brokers.&lt;/p&gt;
&lt;p&gt;Could somebody help me and explain how to add Forex contracts in Hydra and Studio (in Russian is ok so I can translate) for broker IB?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</content>
  </entry>
</feed>