- This topic has 0 ข้อความตอบกลับ, 1 เสียง, and was last updated 9 years, 2 months มาแล้ว by .
-
กระทู้
-
คือผมเขียน text ให้มันเปลี่ยนสีตามเงื่อนไขต่างๆ แต่มันไม่เห็นเปลี่ยนเลยครับ ไม่ทราบว่าผิดตรงไหน – –
/*Plot text on chart*/
CellHeight = 20;
CellWidth = 200;
GfxSelectFont( “Tahoma”, CellHeight/2 );
function PrintInCell( string, row, Col )
{
GfxDrawText( string, Col * CellWidth, row * CellHeight, (Col + 1 ) * CellWidth, (row + 1 ) * CellHeight,0 );
}set=ROC(Foreign(“SET”,”C”),20);
stock=ROC(C,20);plus=ROC(Foreign(“SET”,”C”),20)>ROC(C,20);
IIf(set/stock > 1,GfxSetTextColor(colorGreen),GfxSetTextColor(colorRed));
PrintInCell( “Rate of Change : 1 month” , 2, 0 );
PrintInCell( “SET = ” +ROC(Foreign(“SET”,”C”),20) , 3, 0 );
PrintInCell( “Stock = ” +ROC(C,20), 4, 0 );
- คุณต้องเข้าสู่ระบบเพื่อตอบกลับกระทู้นี้