請問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 軟體不同
請問有 高手大大知道要如何修改嗎 ?
TXT_New --> text_new() / text_new_s()
TXT_SetString -->text_setstring()
但其函數用法請自行到 MultiCharts 官網查尋.. {:4_196:}
感謝mewmi 幫忙
獲益良多 小弟再研究
頁:
[1]