您现在的位置:好股网 >> 股票公式 >> 金字塔公式 >> 一键转帖:逐K线模式的模型,用免费版下单交易的方法(金字塔软件、源码)

逐K线模式的模型,用免费版下单交易的方法(金字塔软件、源码)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2016-03-31 19:55:00
公式简介:

金字塔软件逐K线模式的模型,用免费版下单交易的方法
runmode:0;
variable:cc=0;
ma5:=ma(c,5);
ma20:=ma(c,20);
entertime:=time>100000 and time<144500;
exitlong:cc<>1,tfilter;
exitshort:cc<>-1,tfilter;
enterlong:ref(cc,1)<>1 and cc=1,tfilter;
entershort:ref(cc,1)<>-1 and cc=-1,tfilter;
if cc>0 and ma5<ma20 then cc:=0;
if cc<0 and ma5>ma20 then cc:=0;
if cc=0 and ma5>ma20 and entertime then cc:=1;
if cc=0 and ma5<ma20 and entertime then cc:=-1;
if time>=150000 then cc:=0;

原理是,用全局变量cc记录仓位,然后根据仓位的变化情况来确定下单信号


 



[url=http://www.goodgupiao.com/gupiaogongshi/40750.html][B]逐K线模式的模型,用免费版下单交易的方法(金字塔软件、源码)[/B][/url]