﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>ActFX Algorithmic Trading » ActFX » Trading Strategy Interface and General Functionality  » How to get time interval of the chart?</title><generator>InstantForum.NET 2012-1</generator><description>ActFX Algorithmic Trading</description><link>http://www.forum.actfx.com/</link><webMaster>ActFX Algorithmic Trading</webMaster><lastBuildDate>Tue, 22 May 2012 18:36:36 GMT</lastBuildDate><ttl>20</ttl><item><title>How to get time interval of the chart?</title><link>http://www.forum.actfx.com/FindPost1694.aspx</link><description>Hello, I need to store the time interval of the chart in a variable.&lt;br&gt;I using the same robot in all time intervals... so, to avoid the duplicate order tags, I am using manually the follow tag:&lt;br&gt;&lt;br&gt;var&lt;br&gt; Period: String;&lt;br&gt;&lt;br&gt;OnCreate&lt;br&gt;  AddStringSetting(@Period, 'Period', '1M'); // for 1 minute chart interval&lt;br&gt;...&lt;br&gt;CreateOrder(History.Instrument, Account, Amount, bsBuy, NullRate, NullRate, 1, StrategyName+Period);&lt;br&gt;&lt;br&gt;I would Like to do this automaticly. Is it possible?</description><pubDate>Tue, 20 Jul 2010 23:50:29 GMT</pubDate><dc:creator>Rodorush</dc:creator></item><item><title>RE: How to get time interval of the chart?</title><link>http://www.forum.actfx.com/FindPost1795.aspx</link><description>Hi Rodorush.&lt;/P&gt;&lt;P&gt;If you want to use different time frames in your strategies you have to describe all these time frames in the head of listing. But I think you can use array for this problems. Unfortunately I have not done it yet.&lt;BR&gt;Regards Den</description><pubDate>Tue, 20 Jul 2010 23:50:29 GMT</pubDate><dc:creator>Den</dc:creator></item><item><title>RE: How to get time interval of the chart?</title><link>http://www.forum.actfx.com/FindPost1793.aspx</link><description>ok, for exemple:&lt;br&gt;I have a robot called "RHamari". I will run this robot in "EURUSD" pair. I will put it to run in 15 min., 30 min., 1h, 2h, 4h and 8h. All at same time and at same account. How I have this line to create the orders: CreateOrder(History.Instrument, Account, Amount, bsBuy, NullRate, NullRate, 1, StrategyName+Period);&lt;br&gt;&lt;br&gt;The only thing that difference the others is my variable "period" that I have to type manually before start all robots. It´s very boring to do this. So I would like to set the variable "Period" automaticaly with time the chart interval. I have to do this to avoid the robots to make mistakes between themselves. I just want a tag to create difference themselves.</description><pubDate>Tue, 20 Jul 2010 16:44:17 GMT</pubDate><dc:creator>Rodorush</dc:creator></item><item><title>RE: How to get time interval of the chart?</title><link>http://www.forum.actfx.com/FindPost1792.aspx</link><description>Hi, Rodorush.&lt;br&gt;It depends where you want to use the period. If you want to change period of the indicator, you need to apply every new period and recalculate. As for strategy, you can use as much period variables as you want.&lt;br&gt;</description><pubDate>Tue, 20 Jul 2010 05:08:59 GMT</pubDate><dc:creator>eMoe</dc:creator></item></channel></rss>
