2016年9月27日 星期二

【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;





沒有留言:

張貼留言