Parameters : Price(Close), Display(3), Len1(5), Len2(10), Len3(20), Len4(60), Len5(80), Len6(120)

Value10=Round(Display,0) //去小數點--> 整數
if Value10 >=0 then
value1=MA(price,len1)
Draw1(Value1,"MA 1",-1,-1, iff(value1>Value1[1],2,1) )

end if

if Value10 >=2 then
value2=MA(price,len2)
Draw2(Value2,"MA 2",-1,-1, iff(value2>Value2[1],2,1) )

end if

if Value10 >=3 then
value3=MA(price,len3)
Draw3(Value3,"MA 3",-1,-1, iff(value3>Value3[1],2,1) )

end if

if Value10 >=4 then
value4=MA(price,len4)
Draw4(Value4,"MA 4",-1,-1, iff(value4>Value4[1],2,1) )
end if
if Value10 >=5 then
value5=MA(price,len5)
Draw5(Value5,"MA 5",-1,-1, iff(value5>Value5[1],2,1) )

end if
if Value10 >=6 then
value6=MA(price,len6)
Draw6(Value6,"MA 6",-1,-1, iff(value6>Value6[1],2,1) )

end if

 

 

螢幕截圖 2016-04-26 19.53.40  

arrow
arrow
    文章標籤
    程式交易
    全站熱搜

    shewerlu 發表在 痞客邦 留言(0) 人氣()