自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

bruce的技术博客

一个学管理的技术爱好者,交易爱好者

  • 博客(17)
  • 收藏
  • 关注

转载 Object-Oriented Programming

Object-oriented programming (OOP) is programming primarily focused on data, while data and behavior are being inseparably linked. Data and behavior together constitute a class, while object are class ...

2018-05-14 11:42:51 733

原创 Variables in coding

No matter what computer languages you are coding, you have to know variables. I am going to discuss about variables in this essay.1. Initialization of variables  Any variable can be initialized du

2018-01-25 11:43:36 239

原创 写一个交易策略的基本框架

写一个交易策略的基本框架A framework to a trading strategy1. 仓位个数MaxSpread > 0 && (ASK - BID) > MaxSpreadCalculationModel !=0 && isNewBarif(MultiOrder) maxOrder =12. 条件 filter condition executi

2018-01-04 18:57:34 1471

原创 MT4 Trade functions

MT4 里面有一组函数 用来 管理 交易活动(Trading activities)OrderSelect() boolOrderSend()   return (-1  or ticket number)OrderClose()  booleanOrderCloseBy() booleanOrderModify() booleanOrderDelete() boole

2017-12-01 13:12:25 540

原创 MT4 Series array

时间序列datetime Time[]Series array that containsopen time of each bar of the current chart. Data like datetime represent time, inseconds, that has passed since 00:00 a.m. of 1 January, 1970.

2017-11-29 13:26:17 1217

原创 学习方法论

概念:方法论思维模型刻意练习心理表征:是一种与我们大脑正在思考的某个物体、某个观点、某些信息或者其他任何事物相对应的心理结构。套路:围棋的定式编程的算法律师的案例数学家公式科学家定律问题:如何成为一个很厉害的人?刻意练习比如:打拖拉机,高尔夫,下棋,格斗,为什么业余棋手总是下不过专业棋手?为什么武术爱好者肯定打不过格斗士?创业者和创业

2017-11-25 11:31:44 888

原创 How to use another indicator in your code?

1) Create an instance of the indicator in your prepare() function举例local mva7;local stream;function Prepare() mva7 = core.indicators:create("MVA", source, 7); stream = instance:addStream

2017-11-25 09:48:21 155

原创 Lua Tables

感觉lua最强大的功能是tablesarraytick_streambar_streamcontextcorehosthttp_loaderindicore3_ffian instance of bar_streamthe marketscope supports the following tags:group, 指标属于哪个组Tr

2017-11-24 20:23:48 215

原创 写技术指标的一般方法

写技术指标的一般方法:技术指标是什么?以均线为例,是数列,即array, 名称数量:位置排序一根Bar对应一个value,技术指标的计算:数据源data source (market price or output)计算方法(onBar, onTick, onTimer)技术指标参数:参数类型parameter attributes指标输出:

2017-11-24 17:08:35 7913

原创 用lua语言写技术指标

FXCM 技术指标可以自动生成大部分代码主要包括 Parameters 和 streams block两部分indicator:name("RSB");indicator:description("");indicator:requiredSource(core.Tick);indicator:type(core.Indicator);indicaotor.p

2017-11-23 15:20:59 519

原创 用MC写一个策略

策略开发概念1. 价格关卡2. 线性转折3. 交叉比较4. 权重平分 RSI MACD5. 通道偏差6. 形状颜色value1 = (high + low)/2;condition1 = close > Average(close, 10);condition2 = close < Average(close, 10);condition3 =

2017-11-20 18:02:37 1182

原创 交易软件设计

1. 了解计算机程序程序分类scriptcontinuous running我们开发的交易系统数据连续运行型事件驱动和时间驱动2. 时间驱动from time import sleepdef demo(): print "run demo every 1 second"while 1: demo() sleep(1

2017-11-15 12:47:20 268

原创 lua初印象

经常被几个问题困扰着:1. 究竟开发一个交易软件用什么软件最好? c++, java, c#, Python经常得到的一般答案是C++适合用来性能好(低延迟)的交易软件,c#适合用来做window平台的交易软件, Python是现在开发交易软件的趋势那么要做GUI吗?什么是最好的架构?可扩展性好具体表现在哪些方面?一堆问题都没有肯定的答案2. 为什么FXCM要用Lua来开发交易软件

2017-11-14 11:05:52 201

原创 What is REST

REST -- REpresentational State Transfer表现层状态转移A good explanation:URL定位资源,用HTTP动词(GET,POST,DELETE,DETC)描述操作。“资源”是REST架构或者说整个网络处理的核心Representational:某种表现形式,比如用JSON,XML,JPEG等;State

2017-10-20 21:01:23 346

原创 OpenAPI Specification

The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service with

2017-10-20 15:17:54 439

原创 Adapter (Wrapper) for different programming language?

Most programming languages and some scripting/interpreted languages (For example: python) have the capability of calling C functions in a DLL or .so file (i.e., a shared library). This is what usually

2017-10-19 17:48:20 235

原创 交易软件

探讨什么样的交易软件是一个好的交易软件,好的交易软件包括哪些组件,其他交易软件包括哪些组件,用什么语言开发交易软件最好

2017-10-19 11:57:00 254

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除