Zitat:
Zitat von max232
Ich will , dass den Swap aller Paare ausliest und in Textfelder die bereits in allen Profilen vorhanden sind (Name: "TextSwap") den Long und Short-Swap reinschreibt.
|
Code:
string name="TextSwap";
ObjectCreate(0,name,OBJ_LABEL,0,0,0);
ObjectSetInteger(0,name,OBJPROP_XDISTANCE,10);
ObjectSetInteger(0,name,OBJPROP_YDISTANCE,30);
ObjectSetString(0,name,OBJPROP_TEXT,"TextSwap"+
":SWAPLONG:"+DoubleToString(MarketInfo(Symbol(),MODE_SWAPLONG),5)+
":SWAPSHORT:"+DoubleToString(MarketInfo(Symbol(),MODE_SWAPSHORT),5));
ObjectSetString(0,name,OBJPROP_FONT,"Arial");
ObjectSetInteger(0,name,OBJPROP_FONTSIZE,28);
ObjectSetInteger(0,name,OBJPROP_COLOR,clrLime);
in Textfelder die bereits in allen Profilen vorhanden sind
reinschreiben
Code:
+
":SWAPLONG:"+DoubleToString(MarketInfo(Symbol(),MODE_SWAPLONG),5)+
":SWAPSHORT:"+DoubleToString(MarketInfo(Symbol(),MODE_SWAPSHORT),5)[/SIZE]