Top 10 Tips Every Coder needs to know for Strategy Trader. #1. How do I make my strategy intra-bar?



Similar documents
My EA Builder 1.1 User Guide

How to Find Your Fortune in the Forex Markets by Tom Willmott

Aggressive Day Trading Strategy for Forex

Client Time Analysis Dashboard Users Guide

Forex Trade Copier 2 User manual

LOYEX TRADING STATION

By Andreas Kirchberger

SQ TRADING STATION User Guide & Installation

Basic Introduction. GMFX MetaTrader 4.0. Basic Introduction

Metatrader 4 Tutorial

Conservative Day Trading Strategy for Forex

KeltnerPro Manual

Forex SoftBot Advisor:

Installation Guide. AKTrend the Market Analysis Software. ( AKTrend 5.7v )

MetaTrader 4 and MetaEditor

FOREX PLATFORM USER S GUIDE

Website: Twitter:

START-UP MANUAL FOR MTI 4.0 TECHNICAL ANALYSIS CHARTING

The FOREX Master Plan

Table of Contents. Introduction to ForexGridMaster. ForexGridMaster Forum

MET ATRADER 5 Guid e version 1.0 January 2013

MetaTrader 4 and MetaEditor

Trader Manual. NatureForex.com

SaxoTraderGO. Saxo Academy. Placing Forex Trade Orders. academy.tradingfloor.com

iphone Application User Guide

WallStreet FOREX Robot User Guide

FOREXTrader PRO. User Guide. Version REF V4UK

One Click Trader. Manual

MetaTrader 4 Backtesting & Optimization

FxPro MT4 Backtest. A backtesting guide for MetaTrader 4. User Guide

COWABUNGA EXPERT ADVISOR USER MANUAL

Configuration for Professional Client Access

Forex Diamond EA. User Guide - 1 -

Diver-Office Backup and Restore the Database

Opera 3 Installation & Upgrade Guide

DEALING HANDBOOK FOR FX TRADERS

WallStreet FOREX Robot User Guide

MetaTrader 4 for Android TM Guide

Chapter 2.1. Charting Basics

Forex Benz AUDNZ Expert Advisor

NO REPRODUCTION AND OR TRANSLATION OF ANY PART OF THIS WORK BY ANY MEANS ELECTRONIC OR MECHANICAL WITHOUT THE PRIOR WRITTEN PERMISSION.

FX Growth Manager Manual

User Guide. For more information us on:

NEXGEN DEMO TRADING & EDUCATIONAL PLAN SIMPLIFIED

FOREX OVERDRIVE YOUR GUIDE TO RESIDUAL FOREX INCOME Forex Overdrive

A powerful dashboard utility to improve situational awareness of the markets, place precise orders, and graphically monitor trading positions.

FP Markets MetaTrader 4 Platform Guide Issue Date: 31 March First Prudential Markets Pty Ltd ABN AFSL fpmarkets.com.

- ActivTrades MetaTrader5 User Guide

VisionMate Flat Bed Scanner 2D Tube Barcode Reader

KM Metering Inc. EKM Dash User Manual. EKM Metering Inc. (831)

User Manual Forex CashFlow Method Trade Executor

MET ATRADER 4 Guid e version 1.0 January 2013

TECHNICAL SUPPORT GUIDE

Project Statistics Dashboard Users Guide

Forex Basics brought to you by MatrasPlatform.com

TSM Studio Server User Guide

fxmiracle.com WINNING PIPS SYSTEM

A. P. A. M. I. Instruction Manual

D.O.T.S. Method Indicator v.5

MOLANIS STRATEGY BUILDER 3.2 User Manual

Evaluation of Super Trend indicator s parameters for major FOREX pairs over 12 years

How To Install Winning Solution System On A Metatrader 4 (Winning Solution System)

Downloading MetaTrader 4 3. First Login to MetaTrader 4 7. Login to MetaTrader 4 7. Changing the language 8. Changing your password 9

Documentation. HiPath 1100 Small Hotel Application Operating Instructions. Communication for the open minded

Copyright 2009 Forex Transporter EA, All Rights Reserved

Copyright Information

- ActivTrades - MetaTrader4 User Guide

ifundtraders Automated Trade- Management System Pro (ift ATMS Pro ) User Manual

Tading Platform Manual

easy-forex MT4 User Manual Version: Date: April 2010

DoubleInADay Expert Advisor. User's Guide

SWISSQUOTE MT4 TERMINAL

Table of Contents. Introduction Opening A Demo Account Overview Market Watch (Quotes Window) Charts Navigator

O.K lets get started.

WebSphere Business Monitor

Contents Risk Disclaimer... 3 Introduction... 4 Choosing the Right Broker... 4 The Financial Markets... 5 The Forex Market...

AUTOCHARTIST TRADE IDEAS

FxPro ctrader User Guide

Lesson 5: The Trading Station

How to Excel with CUFS Part 2 Excel 2010

Smart Trading Apps: Market Entry App User Guide

DealBook 360. User Manual. Version 1.0. gftforex.com/ / LIVE CHAT 24/7 TOLL FREE INTERNATIONAL

SUPER TREND PROFIT. (Trend Indicator with alert popup and alert) DISCLAIMER

Survey Designer USER MANUAL. Version 1.2

Trading Station II User Guide. To the No Dealing Desk Forex Execution Platform

FOREX GRID TRADER EA (FGT) User Manual. 1 P a g e

LMT-Forex-Formula.com

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

1. Install into C drive and name it C:\MT4_slave_1 (do not install into program files)

Forex Pair Performance Strength Score

Nobeltec TZ: Microsoft SQL Server problems

Synthetic Monitoring Scripting Framework. User Guide

Technical bulletin_ma VW Spotlight Plugin v2.x short manual_d4.doc. MA Vectorworks Export Plugin V2.x

Live Trading Webinar and Daily Trading Plan Setups Log

Forex Trend Detector User Guide

SPOT FX Trading Strategies. Copyright Powerup Capital Sdn Bhd

Table of contents. 1. About the platform MetaTrader 4 platform Installation Logging in 5 - Common log in problems 5

Installation and User Guide

sqore.swissquote.eu EURUSD USER GUIDE sqore.swissquote.eu OILUSD USDJPY OILUSD 1

Transcription:

Top 10 Tips Every Coder needs to know for Strategy Trader #1. How do I make my strategy intra-bar? One forex trading platforms, for most settings things are controlled at either the platform level or at the strategy level. Strategy Trader controls this at the platform level. Most Strategies then can be enabled by simply selecting Format Strategy Advisor then selecting Format. In the following screen you can make the changes below. #2. Iseries/Iseria... What's that? Often on trading platforms how things like historical pricing, historical indicators, historical swaps is handled behind the scenes. With Strategy Trader being based upon an open standard like C#, these are all handled within the strategy, out in the open for the coder to be able to see. Basically Iseries are arrays. Normally with an array, the oldest value is at position 0. With an Iseries, its different in that position 0 is

the newest bar. You can think of positive incrementing bars in an Iseries as bars back from the current bar and handle them as you would any other array once you have them created. #3. How do I save a setup file for the inputs of a strategy? Strategy Trader has setup files that allow someone to save the settings of a strategy on a chart. In Strategy Trader we call them Study Templates. To save one, right click on the screen and select Format Study Templates Once you give the template a name, you can then export it and send it to a friend, or keep it saved for future use. #4. Multi-Currency or Multi Timeframe Strategies Often in strategy platforms you have the ability to call current or historical data for any available instrument or timeframe from the chart your strategy is running on. Getting a daily moving average on GBPJPY for my 5 minute EURUSD strategy is as easy as calling it in a function. Below is a hypothetical example of how often platforms would treat an example like this. string myinstrument = "GBPYJPY"; string mytimeframe = "1DAY"; integer mynumberofperiods = 10; string mypricevalue = "CLOSE"; integer mybarshift = "0"; double SIMPLE_Moving_Average(myINSTRUMENT, mytimeframe, mynumberofperiods, mypricevalue, mybarshift); Strategy Trader does this in a manner that is very flexible, but a little bit different. Strategy Trader uses something called subcharts. Basically you can add any subchart you want to a chart. You can do this by right clicking on the chart and selecting "Insert Chart", and then selecting the subchart options, just like you would when creating a regular chart. Once you have done this, the change to the code is simple. myvalue = Bars.Close.Value Would change to: myvalue = BarsOfData(2).Close.Value #5. How do I set a SL and TP using pips instead of dollar amount? Strategy Trader can easily do stops and limits a set number of pips away from the market. That said, how strategy trader does this is a little different than you may be used to. With trading platforms often stops are set as a dollar amount, or a price. Strategy Trader does this on dollar amount, but this is easily harnessed to create a stop loss or take profit using pips. Below it multiplies the pip value in dollars time the number of pips away the stop loss is supposed to be. Once it has the dollar value of this stop loss, we can then generate it using GenerateStopLoss or GenerateProfitTarget functions. GenerateStopLoss(stop_loss*Bars.Info.PointValue*10); GenerateProfitTarget(profit_target*Bars.Info.PointValue*10);

#6. How to use Visual Studio for debugging? The first step is to select the debug menu and select attach process. From this menu you need to attach the process STStrategyTrader.exe. The next step is to reference the following DLL s in StrategyLanguageTypes.dll ManagedStudiesProxy.dll ManagedBuiltInFunctions.dll Fx2GoCommon.dll Finally open the raw C# files available to the Strategy Trader editor. For Windows XP, those can be found at the following location. C:\Documents and Settings\All Users\Application Data\FXCM\FXCM Strategy Trader\SLServer\Techniques\Src #7. How to use historical Ask pricing for more accurate backtesting and strategy development. Adding ask to a chart allows your backtests to have a new level of accuracy. To do this, simply add a subchart like you did for FAQ #4. The difference is that the subchart has the same periodicity, instrument, and window of time. The one big difference is that you will need to change the quote field to Ask from Bid.

Once this is complete, in the Strategy Properties window select Extended and then choose the data series as I have below.

#8. Creating Strategies based upon Open or Close. This is a feature that is not easily implemented on some trading platforms. Most platforms that are intrabar by default have to generate an order based upon the first tick of new bars, using the change in the bar time as the trigger to check this. In Strategy Trader you have the option to choose either. You can do this using OrdersFactory, either CreateBarMarketNextBar or CreateMarketThisBar. Both are demonstrated below. buy_order = OrdersFactory.CreateMarketNextBar(new OrdersCreateParams(Lots.Default, "CCI_Buy_Order", OrderAction.Buy));

buy_order = OrdersFactory.CreateMarketThisBar(new OrdersCreateParams(Lots.Default, "CCI_Buy_Order", OrderAction.Buy)); #9. How to create a trailing stop? profit_target=profit_target1; stop_loss=stop_loss1; if (CurrentPosition.ProfitPerContract>pips_move_up*Bars.Info.PointValue*10) // Trailing Stop { GenerateDollarTrailing((pips_move_uptrail_least_profit)*Bars.Info.PointValue*10); } #10. How to draw labels with dashboard like information? Below is code that allows a developer to put an object above the current bar and redraws this bar with every update. This allows you to have a information about your strategy above the current bar. // delete all previous drawings foreach (ITextDrw drw in new List<ITextDrw>(baseStrategyAdvisor.DrwText.TextDrws(EOrigin.CurrentTech))) { drw.delete(); } basestrategyadvisor.drwtext.create(new DrwCoordinate(baseStrategyAdvisor.Bars.TimeValue,baseStrategyAdvisor.Bars.Hig hvalue), "Supports GBPJPY and USDJPY only: 60mins or longer resolution.");