2016年9月30日 星期五
2016年9月27日 星期二
【MultiCharts】【指標】多空關卡價
inputs:
ah((((highd(1)+lowd(1)+closed(1))/3)*2)-lowd(1)),
al((((highd(1)+lowd(1)+closed(1))/3)*2)-highD(1));
plot1(ah,"up");
plot2(al,"down");
ah((((highd(1)+lowd(1)+closed(1))/3)*2)-lowd(1)),
al((((highd(1)+lowd(1)+closed(1))/3)*2)-highD(1));
plot1(ah,"up");
plot2(al,"down");
【MultiCharts】【訊號】站上均線買進,跌破布林通道賣出
input:len1(61),s1(0.025),aa(11),bb(2.575);
value1=BollingerBand(close,aa,bb);
value2=BollingerBand(close,aa,-bb);
if close cross over Average(close,len1) then
buy next bar at market;
if close cross under Average(close,len1) then
sellshort next bar at market;
if marketposition> 0 then
sell next bar at entryprice*(1-s1) stop;
if marketposition<0 then
buytocover next bar at entryprice*(1+s1) stop;
if marketposition> 0 and close cross under value1 then
sell next bar at entryprice*(1-s1) stop;
if marketposition<0 and close cross over value2 then
buytocover next bar at entryprice*(1+s1) stop;
value1=BollingerBand(close,aa,bb);
value2=BollingerBand(close,aa,-bb);
if close cross over Average(close,len1) then
buy next bar at market;
if close cross under Average(close,len1) then
sellshort next bar at market;
if marketposition> 0 then
sell next bar at entryprice*(1-s1) stop;
if marketposition<0 then
buytocover next bar at entryprice*(1+s1) stop;
if marketposition> 0 and close cross under value1 then
sell next bar at entryprice*(1-s1) stop;
if marketposition<0 and close cross over value2 then
buytocover next bar at entryprice*(1+s1) stop;
【MultiCharts】【訊號】昨天收黑K,並且今天開高就進場的策略
昨天收黑K,並且今天開高就進場的策略,以60分K來看
input:len1(-1),len2(1);
value1 = closed(1)-opend(1);
value2 = opend(0)-closed(1);
condition1=len1*value1>0 and len2*value2>0;
condition2=len1*value1<0 and len2*value2<0;
if condition1 then
buy next bar at market;
if condition2 then
sellshort next bar at market;
input:len1(-1),len2(1);
value1 = closed(1)-opend(1);
value2 = opend(0)-closed(1);
condition1=len1*value1>0 and len2*value2>0;
condition2=len1*value1<0 and len2*value2<0;
if condition1 then
buy next bar at market;
if condition2 then
sellshort next bar at market;
2016年9月24日 星期六
【MultiCharts】【指標】以20根K棒算出多空平均價
以最近的20根K棒,找出 (最高價+最低價) /2,來算出最近的平均價格
若再線上,則為多,反之,則為空
input: Barlookback(20) ;
Vars: HighBand(0),LowBand(0);
HighBand = Highest(High,BarLookBack) ;
LowBand = Lowest(Low,BarLookBack) ;
for Value1 =1 to Barlookback Begin
if Close[Value1] > HighBand then HighBand = Close[Value1] ;
End;
Plot1((HighBand +LowBand) /2 , "NearBarHigh" ) ;
若再線上,則為多,反之,則為空
input: Barlookback(20) ;
Vars: HighBand(0),LowBand(0);
HighBand = Highest(High,BarLookBack) ;
LowBand = Lowest(Low,BarLookBack) ;
for Value1 =1 to Barlookback Begin
if Close[Value1] > HighBand then HighBand = Close[Value1] ;
End;
Plot1((HighBand +LowBand) /2 , "NearBarHigh" ) ;
【MultiCharts】布林通道
Inputs: blen(20),bnum(2);
Inputs: slen(20),snum(2);
value1 = BollingerBand(close,blen,bnum);
value2 = BollingerBand(close,slen,-snum);
if close cross over value1 then
buy next bar at market;
if close cross under value2 then
sellshort next bar at market;
Inputs: slen(20),snum(2);
value1 = BollingerBand(close,blen,bnum);
value2 = BollingerBand(close,slen,-snum);
if close cross over value1 then
buy next bar at market;
if close cross under value2 then
sellshort next bar at market;
【MultiCharts】MA
if close cross over Average(close,60) then
buy next bar at market;
if marketposition>0 and close<Average(close,60) then
sellshort next bar at market;
buy next bar at market;
if marketposition>0 and close<Average(close,60) then
sellshort next bar at market;
訂閱:
文章 (Atom)




