#property indicator_chart_window extern string Font_Type = "Arial Bold"; extern int Text_Size = 34; extern string Text = "No Trade"; extern color Text_Color = Yellow; extern int X = 10; extern int Y = 200; extern int Corner = 0; #define INDICATOR_NAME "[RK_NOTE]" int init() { if(ObjectFind(INDICATOR_NAME) == -1) { int yAxis = Y + Text_Size + Text_Size * 2; int xAxis = X + 10; CreateText(INDICATOR_NAME, Text, xAxis, yAxis); } ObjectSetText(INDICATOR_NAME, Text, Text_Size, Font_Type, Text_Color); return(0); } int deinit() { ObjectDelete(INDICATOR_NAME); return(0); } int start() { return(0); } void CreateText(string labelName, string text, int xPos, int yPos) { ObjectCreate(labelName, OBJ_LABEL, 0, 0, 0); ObjectSet(labelName, OBJPROP_CORNER, Corner); ObjectSet(labelName,OBJPROP_XDISTANCE, xPos); ObjectSet(labelName,OBJPROP_YDISTANCE, yPos); }