﻿<?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 Strategies  » Pivot Point</title><generator>InstantForum.NET 2012-1</generator><description>ActFX Algorithmic Trading</description><link>http://forum.actfx.com/</link><webMaster>ActFX Algorithmic Trading</webMaster><lastBuildDate>Sun, 20 May 2012 22:47:13 GMT</lastBuildDate><ttl>20</ttl><item><title>Pivot Point</title><link>http://forum.actfx.com/FindPost1925.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I'm testing a strategy that start from a distance of Pivot Point ( at the half or 50% ) with 1 day chart and setting for 6 days.&lt;/P&gt;&lt;P&gt;So I'm changing everyday the price of pivot point and I modify the price to start open position. &lt;/P&gt;&lt;P&gt;May someone help me to add the script for an automatic trading?&lt;/P&gt;&lt;P&gt;My strategy is :&lt;/P&gt;&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #dddddd"&gt;const&lt;BR&gt;  StrategyName = 'Pivot';&lt;BR&gt;var    &lt;BR&gt;  History: TCandleHistory;&lt;BR&gt;  Account: TAccount;&lt;BR&gt;  Amount,Equitylevel:double; Point: Double;&lt;BR&gt;  ESPrice, ELPrice: Integer;&lt;BR&gt;  Stop, Limit: Integer;&lt;BR&gt;  &lt;BR&gt;procedure OnCreate;&lt;BR&gt;begin&lt;BR&gt;  AddCandleHistorySetting(@History, 'Storico Candele', 'EURUSD', CI_1_Minute, 1);   &lt;BR&gt;  History.OnNewCandleEvent := @NuovaCandela;    &lt;BR&gt;  AddAccountSetting(@Account, 'Account', '');  &lt;BR&gt;  AddFloatSetting(@Amount, 'Lotti', 2);   &lt;BR&gt;  AddIntegerSetting(@ESPrice, 'Entry Stop Distance', 26);   &lt;BR&gt;  AddIntegerSetting(@ELPrice, 'Entry Limit Distance', 20);  &lt;BR&gt;  AddIntegerSetting(@Stop, 'Stop Loss', 400);     &lt;BR&gt;  AddIntegerSetting(@Limit, 'Margine', 8);  &lt;BR&gt;end;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #dddddd"&gt;procedure NuovaCandela;&lt;BR&gt;begin&lt;BR&gt;Point := History.Instrument.PointSize;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT style="BACKGROUND-COLOR: #dddddd"&gt;if (History.Last(1).Close&amp;gt;1.3215)and (History.Last(1).Close&amp;lt;1.3235)&lt;BR&gt;then&lt;BR&gt;begin&lt;BR&gt;Equitylevel:= &lt;FONT color=#ff1111&gt;xxxxx&lt;/FONT&gt; ;EquityLevel ;&lt;BR&gt;if (account.EquityLevel&amp;gt;35000)  &lt;BR&gt;then&lt;BR&gt;  begin      &lt;BR&gt;  CreateOrder     (History.Instrument, Account, Amount, bsSell,&lt;BR&gt;                     History.Instrument.Buy + 400*Point,&lt;BR&gt;                     History.Instrument.Buy - Point*Limit, otELimit,'EntryLimitSell');&lt;BR&gt;  end;                 &lt;BR&gt; end; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you very much</description><pubDate>Fri, 26 Nov 2010 04:32:08 GMT</pubDate><dc:creator>medebaby</dc:creator></item><item><title>RE: Pivot Point</title><link>http://forum.actfx.com/FindPost2390.aspx</link><description>Hi, I don't really understand what you meant but I suppose this topic will help you http://forum.actfx.com/Topic591-14-1.aspx?Highlight=pivot+point&lt;br&gt;&lt;br&gt;If you explain in more details probably I'll be able to help you</description><pubDate>Fri, 26 Nov 2010 04:32:08 GMT</pubDate><dc:creator>rezist</dc:creator></item></channel></rss>
