bbdcd 發表於 12-8-18 14:27

請問MA 扣抵值

MA 扣抵值


HTS 語法是


IF LastBarOnChart AND (ViewCut=1)THEN begin

str1 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len1,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)

value1 = TXT_New( Date , Time, lowest(low,Len1-1), "" )

TXT_SetString( value1, str1);

str2 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len2,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value2 = TXT_New( Date , Time, lowest(low,Len2-1), "" )
TXT_SetString( value2, str2);

str3 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len3,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value3 = TXT_New( Date , Time, lowest(low,Len3-1), "" )
TXT_SetString( value3, str3);

str4 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len4,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value4 = TXT_New( Date , Time, lowest(low,Len4-1), "" )
TXT_SetString( value4, str4);

str5 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len5,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value5 = TXT_New( Date , Time, lowest(low,Len5-1), "" )
TXT_SetString( value5, str5);

end;

小弟 想 改為 MultiCharts



IF LastBarOnChart AND (ViewCut=1)THEN begin

str1 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len1,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)

value1 = TXT_New( Date , Time, lowest(low,Len1-1), "" )

TXT_SetString( value1, str1);

str2 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len2,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value2 = TXT_New( Date , Time, lowest(low,Len2-1), "" )
TXT_SetString( value2, str2);

str3 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len3,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value3 = TXT_New( Date , Time, lowest(low,Len3-1), "" )
TXT_SetString( value3, str3);

str4 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len4,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value4 = TXT_New( Date , Time, lowest(low,Len4-1), "" )
TXT_SetString( value4, str4);

str5 = "|r|n"+"?"+ NumToStr(Month( Date ),0) +"/"+NumToStr(DayOfMonth( Date ),0)+"|r|n"+NumToStr(Len5,0)+"EMA"+"|r|n"+"? "+NumToStr(Close,0)
value5 = TXT_New( Date , Time, lowest(low,Len5-1), "" )
TXT_SetString( value5, str5);

end;

但其中
TXT_New


TXT_SetString
2函數
似乎 2 軟體不同

請問有 高手大大知道要如何修改嗎 ?


mewmi 發表於 12-8-18 17:51

TXT_New --> text_new() / text_new_s()

TXT_SetString -->text_setstring()

但其函數用法請自行到 MultiCharts 官網查尋.. {:4_196:}

bbdcd 發表於 12-8-20 07:28

感謝mewmi 幫忙
獲益良多 小弟再研究
頁: [1]
查看完整版本: 請問MA 扣抵值