/*
Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
Website: http://purebeam.biz
E-mail : purebeam@gmail.com
*/
#property copyright "渔人趋势网格"
#property link ""
extern int GridMagic = 20081010;
extern int array = 1;
extern int Grid = 30;
extern int takeprofit = 10;
extern double new_AccountBalance = 0.0;
extern double profit_rate = 0.001;
extern double min_lots = 0.01;
extern double max_lots = 10.0;
extern double Balance = 10000.0;
extern double minBalance = 0.1;
extern int miniport = 2;
extern int Refresh = 0;
extern double profit_current = 0.0;
extern double profit_times = 0.0;
extern double special = 0.0;
extern int max_bs = 0;
int init() {
ObjectsDeleteAll();
return (0);
}
int deinit() {
return (0);
}
int start() {
double ld_unused_96;
double ld_unused_104;
int li_112;
double l_ord_open_price_116;
double l_ord_open_price_124;
double ld_unused_132;
double ld_unused_140;
int li_148;
string l_name_152;
string ls_unused_160;
double ld_168;
int li_unused_176;
int li_180;
int li_unused_184;
int li_192;
double ld_unused_200;
double ld_208;
bool li_216;
string ls_224;
string ls_232;
double ld_240;
double ld_248;
int li_256;
xianshi();
double ld_0 = 1;
int li_8 = 5;
int li_12 = 13;
int li_16 = 8;
int li_20 = 4;
int li_24 = 5;
int li_28 = 3;
int li_32 = 2;
bool li_36 = FALSE;
double ld_40 = 0;
int li_unused_48 = 1;
int li_52 = -1060400512;
double l_icustom_56 = iCustom(NULL, 0, "Alligator", li_12, li_16, li_20, li_24, li_28, li_32, 0, 0);
double l_icustom_64 = iCustom(NULL, 0, "Alligator", li_12, li_16, li_20, li_24, li_28, li_32, 1, 0);
double l_icustom_72 = iCustom(NULL, 0, "Alligator", li_12, li_16, li_20, li_24, li_28, li_32, 2, 0);
int l_count_84 = 0;
int l_ord_total_80 = OrdersTotal();
for (int l_pos_88 = 0; l_pos_88 < l_ord_total_80; l_pos_88++) {
OrderSelect(l_pos_88, SELECT_BY_POS);
if (OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) l_count_84++;
}
if (AccountNumber() == 1 || IsDemo()) {
if (100000000 * TimeYear(TimeCurrent()) + 1000000 * TimeMonth(TimeCurrent()) + 10000 * TimeDay(TimeCurrent()) + 100 * TimeHour(TimeCurrent()) + TimeMinute(TimeCurrent()) < li_52 ||
GlobalVariableGet("xx") <= 72.0) {
ld_unused_96 = 0;
ld_unused_104 = 0;
if (ld_40 == 0.0) ld_40 = AccountEquity();
if (ld_40 > AccountEquity()) ld_40 = AccountEquity();
if (new_AccountBalance == 0.0) new_AccountBalance = AccountEquity();
if (l_count_84 < 1) {
Alert( - GlobalVariableGet("xx"), "小时之后");
Alert("到期日为软件平台系统时间");
Alert("版权所有---渔人趋势网格--QQ:");
Alert("欢迎使用--渔人趋势网格EA 2020 版--!");
li_112 = GlobalVariablesTotal();
for (l_pos_88 = 0; l_pos_88 < li_112; l_pos_88++) GlobalVariableDel(GlobalVariableName(l_pos_88));
GlobalVariableSet("xx", 1);
GlobalVariableSet("Grid", Grid);
GlobalVariableSet("takeprofit", takeprofit);
GlobalVariableSet("new_AccountBalance", new_AccountBalance);
GlobalVariableSet("profit_rate", profit_rate);
GlobalVariableSet("profit_current", profit_current);
GlobalVariableSet("profit_times", profit_times);
GlobalVariableSet("special", special);
GlobalVariableSet("max_bs", max_bs);
GlobalVariableSet("profit", li_8);
GlobalVariableSet("Balance", Balance);
GlobalVariableSet("minBalance", minBalance);
if (l_icustom_72 > l_icustom_64) OrderSend(Symbol(), OP_BUY, readlots(), Ask, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
if (l_icustom_72 < l_icustom_64) OrderSend(Symbol(), OP_SELL, readlots(), Bid, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
for (int li_92 = 1; li_92 <= 5; li_92++) {
OrderSend(Symbol(), OP_BUYSTOP, readlots(), Bid + GlobalVariableGet("Grid") * li_92 * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
OrderSend(Symbol(), OP_SELLSTOP, readlots(), Ask - GlobalVariableGet("Grid") * li_92 * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
if (GlobalVariablesTotal() < 1) {
GlobalVariableSet("xx", 1);
GlobalVariableSet("Grid", Grid);
GlobalVariableSet("takeprofit", takeprofit);
GlobalVariableSet("new_AccountBalance", new_AccountBalance);
GlobalVariableSet("profit_rate", profit_rate);
GlobalVariableSet("profit_current", profit_current);
GlobalVariableSet("profit_times", profit_times);
GlobalVariableSet("special", special);
GlobalVariableSet("max_bs", max_bs);
GlobalVariableSet("profit", li_8);
GlobalVariableSet("Balance", Balance);
GlobalVariableSet("minBalance", minBalance);
}
l_ord_total_80 = OrdersTotal();
l_ord_open_price_116 = 0;
l_ord_open_price_124 = 1000;
ld_unused_132 = Low[0];
ld_unused_140 = High[0];
ObjectCreate("text", OBJ_LABEL, 0, 0, 0);
ObjectSetText("text", "渔人网格,就像渔人捕鱼一样,把网撒下去,就不断会有鱼儿冲进来,", 10, "arial", Turquoise);
ObjectSet("text", OBJPROP_CORNER, 0);
ObjectSet("text", OBJPROP_XDISTANCE, 70);
ObjectSet("text", OBJPROP_YDISTANCE, 30);
ObjectCreate("text1", OBJ_LABEL, 0, 0, 0);
ObjectSetText("text1", "当鱼儿达到一定数量,也将是它收网的时候!", 10, "arial", Turquoise);
ObjectSet("text1", OBJPROP_CORNER, 0);
ObjectSet("text1", OBJPROP_XDISTANCE, 70);
ObjectSet("text1", OBJPROP_YDISTANCE, 52);
li_148 = GlobalVariableGet("xx");
l_name_152 = "yuren_1";
ObjectDelete(l_name_152);
ObjectCreate(l_name_152, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_152, "试用时间还剩" + (( - li_148)) + "小时", 8, "Arial", LightCoral);
ObjectSet(l_name_152, OBJPROP_CORNER, 0);
ObjectSet(l_name_152, OBJPROP_XDISTANCE, 70);
ObjectSet(l_name_152, OBJPROP_YDISTANCE, 15);
if (Ask > l_icustom_72) {
ObjectDelete("down");
ObjectCreate("up", OBJ_ARROW, 0, Time[0], High[0] + 5.0 * Point);
ObjectMove("up", 0, Time[0], High[0] + 5.0 * Point);
}
if (Ask < l_icustom_72) {
ObjectDelete("up");
ObjectCreate("down", OBJ_ARROW, 0, Time[0], Low[0]);
ObjectSet("down", OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN);
ObjectSet("down", OBJPROP_COLOR, Gold);
ObjectMove("down", 0, Time[0], Low[0]);
}
if (array == 3) l_icustom_64 = l_icustom_72;
if (array != 2) {
ld_168 = 0;
l_ord_total_80 = OrdersTotal();
for (l_pos_88 = 0; l_pos_88 < l_ord_total_80; l_pos_88++) {
OrderSelect(l_pos_88, SELECT_BY_POS);
if (OrderOpenPrice() > l_ord_open_price_116 && OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) l_ord_open_price_116 = OrderOpenPrice();
if (OrderOpenPrice() < l_ord_open_price_124 && OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) l_ord_open_price_124 = OrderOpenPrice();
li_unused_176 = -1;
if (OrderSymbol() == Symbol() && OrderType() <= OP_SELL && OrderMagicNumber() == GridMagic) ld_168 += OrderProfit();
if (Ask > l_icustom_72) {
if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) {
if (OrderType() == OP_SELL) {
if (OrderOpenPrice() - Ask >= GlobalVariableGet("takeprofit") * Point) {
if (OrderClose(OrderTicket(), OrderLots(), Ask, 1)) {
ObjectCreate("profit_buy", OBJ_TEXT, 0, Time[0], High[0]);
ObjectSetText("profit_buy", "获利单平仓", 10, "arial", White);
ObjectMove("profit_buy", 0, Time[0], High[0]);
profit_current = GlobalVariableGet("profit_current") + OrderProfit();
GlobalVariableSet("profit_current", profit_current);
OrderSend(Symbol(), OP_BUYSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
}
}
if (l_icustom_72 > Ask) {
if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) {
if (OrderType() == OP_BUY) {
if (Bid - OrderOpenPrice() >= GlobalVariableGet("takeprofit") * Point) {
if (OrderClose(OrderTicket(), OrderLots(), Bid, 1)) {
ObjectCreate("profit_sell", OBJ_TEXT, 0, Time[0], High[0]);
ObjectSetText("profit_sell", "获利单平仓", 10, "arial", White);
ObjectMove("profit_sell", 0, Time[0], High[0]);
profit_current = GlobalVariableGet("profit_current") + OrderProfit();
GlobalVariableSet("profit_current", profit_current);
OrderSend(Symbol(), OP_SELLSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
}
}
}
}
l_ord_total_80 = OrdersTotal();
if (array != 2) {
li_180 = (l_ord_open_price_116 - Ask) / (GlobalVariableGet("Grid") * Point);
li_180 /= 1;
if (li_180 < 5 && l_ord_total_80 >= 1) {
for (l_pos_88 = 1; l_pos_88 <= 5 - li_180; l_pos_88++) {
if (Ask < l_ord_open_price_116) OrderSend(Symbol(), OP_BUYSTOP, readlots(), l_ord_open_price_116 + l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
else {
if (Ask > l_ord_open_price_116) {
OrderSend(Symbol(), OP_SELLSTOP, readlots(), l_ord_open_price_116 + l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
if (l_pos_88 == 5 - li_180) OrderSend(Symbol(), OP_BUYSTOP, readlots(), Ask + GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
}
li_180 = (Bid - l_ord_open_price_124) / (GlobalVariableGet("Grid") * Point);
li_180 /= 1;
if (li_180 < 5 && l_ord_total_80 >= 1) {
for (l_pos_88 = 1; l_pos_88 <= 5 - li_180; l_pos_88++) {
if (Bid > l_ord_open_price_124) OrderSend(Symbol(), OP_SELLSTOP, readlots(), l_ord_open_price_124 - l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
else {
if (Bid < l_ord_open_price_124) {
OrderSend(Symbol(), OP_BUYSTOP, readlots(), l_ord_open_price_124 - l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
if (l_pos_88 == 5 - li_180) OrderSend(Symbol(), OP_SELLSTOP, readlots(), Bid - GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
}
}
li_unused_184 = -1;
li_192 = GlobalVariableGet("profit_times") + 1.0;
if (AccountEquity() - GlobalVariableGet("new_AccountBalance") >= GlobalVariableGet("new_AccountBalance") * GlobalVariableGet("profit_rate")) {
ObjectCreate("profit", OBJ_TEXT, 0, Time[0], High[0]);
ObjectSetText("profit", "总体获利清单" + li_192 + "次", 10, "arial", White);
ObjectMove("profit", 0, Time[0], High[0]);
special = GlobalVariableGet("new_AccountBalance") * GlobalVariableGet("profit_rate");
GlobalVariableSet("special", special);
profit_times = GlobalVariableGet("profit_times") + 1.0;
GlobalVariableSet("profit_times", profit_times);
GlobalVariableSet("new_AccountBalance", AccountEquity());
GlobalVariableSet("profit_current", 0);
li_36 = TRUE;
}
if (number(OP_SELL) + number(OP_BUY) >= 1 && li_36 == TRUE) {
for (int l_pos_196 = 0; l_pos_196 < OrdersTotal(); l_pos_196++) {
OrderSelect(l_pos_196, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) {
if (OrderType() == OP_SELL && MathAbs(OrderOpenPrice() - Ask) >= GlobalVariableGet("profit") * Point) {
if (OrderClose(OrderTicket(), OrderLots(), Ask, 3))
if (OrderSend(Symbol(), OP_SELLSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green) == -1) OrderSend(Symbol(), OP_BUYSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
if (OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) {
if (OrderType() == OP_BUY && MathAbs(OrderOpenPrice() - Bid) >= GlobalVariableGet("profit") * Point) {
if (OrderClose(OrderTicket(), OrderLots(), Bid, 3))
if (OrderSend(Symbol(), OP_SELLSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green) == -1) OrderSend(Symbol(), OP_BUYSTOP, readlots(), OrderOpenPrice(), 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
if (number(OP_SELL) + number(OP_BUY) == 1) {
l_ord_total_80 = OrdersTotal();
for (l_pos_88 = 0; l_pos_88 < l_ord_total_80; l_pos_88++) {
OrderSelect(l_pos_88, SELECT_BY_POS);
if (OrderSymbol() == Symbol() && OrderType() <= OP_SELL && OrderMagicNumber() == GridMagic)
if (MathAbs(OrderOpenPrice() - Ask) <= GlobalVariableGet("profit") * Point) li_36 = FALSE;
}
}
if (number(OP_SELL) + number(OP_BUY) == 0) li_36 = FALSE;
}
l_ord_total_80 = OrdersTotal();
ld_unused_200 = 0;
ld_208 = NormalizeDouble((l_ord_open_price_116 - l_ord_open_price_124) / (GlobalVariableGet("Grid") * Point), 0);
if (l_ord_total_80 != ld_208 + 1.0 && l_ord_total_80 >= 1) {
for (l_pos_88 = 0; l_pos_88 < l_ord_total_80; l_pos_88++) {
li_216 = FALSE;
for (int l_pos_220 = 0; l_pos_220 < l_ord_total_80; l_pos_220++) {
OrderSelect(l_pos_220, SELECT_BY_POS);
if (MathAbs(OrderOpenPrice() - (l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point)) < GlobalVariableGet("Grid") / 2.0 * Point && OrderSymbol() == Symbol() &&
OrderMagicNumber() == GridMagic) li_216 = TRUE;
}
if (li_216 == FALSE) {
if (Bid > l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point && l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point > l_ord_open_price_124) OrderSend(Symbol(), OP_SELLSTOP, readlots(), l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
else
if (Bid < l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point && l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point < l_ord_open_price_116) OrderSend(Symbol(), OP_BUYSTOP, readlots(), l_ord_open_price_116 - l_pos_88 * GlobalVariableGet("Grid") * Point, 2, 0, 0, "Mars Grid QQ:99018487", GridMagic, 0, Green);
}
}
}
if (number(OP_BUY) > GlobalVariableGet("max_bs")) GlobalVariableSet("max_bs", number(OP_BUY));
if (number(OP_SELL) > GlobalVariableGet("max_bs")) GlobalVariableSet("max_bs", number(OP_SELL));
ld_240 = NormalizeDouble(Bid, 4);
ld_248 = NormalizeDouble(AccountEquity(), 2);
if (MathMod(TimeHour(TimeCurrent()), ld_0) == 0.0 && Refresh != TimeHour(TimeCurrent()) && TimeHour(TimeCurrent()) < 18 && TimeHour(TimeCurrent()) > 1) {
ls_224 = "时间:" + ((TimeHour(TimeCurrent()) + 6)) + "点";
ls_232 = Symbol() + "=" + NormalizeDouble(Bid, 4)
+ "\n"
+ "Buy单: " + number(OP_BUY) + "手"
+ "\n"
+ "Sell单: " + number(OP_SELL) + "手"
+ "\n"
+ "账户净值:" + ld_248
+ "\n"
+ "浮动赢亏:" + NormalizeDouble(AccountProfit(), 2);
li_256 = GlobalVariableGet("xx");
GlobalVariableSet("xx", li_256 + 1);
SendMail(ls_224, ls_232);
Refresh = TimeHour(TimeCurrent());
}
} else {
ls_unused_160 = "此EA已到期,功能全部暂停!";
Alert("请联系 渔人趋势网格 QQ: 获得继续使用权,谢谢!");
Alert("对不起,此EA已到期!");
}
} else Alert("帐号不匹配,该EA只能用于一个真实帐号,请联系QQ: ");
return (0);
}
double readlots() {
double ld_ret_0 = NormalizeDouble(AccountFreeMargin() * GlobalVariableGet("minBalance") / GlobalVariableGet("Balance"), miniport);
if (ld_ret_0 < min_lots) ld_ret_0 = min_lots;
if (ld_ret_0 > max_lots) ld_ret_0 = max_lots;
return (ld_ret_0);
}
int number(int a_cmd_0) {
int l_count_4 = 0;
for (int l_pos_8 = 0; l_pos_8 < OrdersTotal(); l_pos_8++) {
OrderSelect(l_pos_8, SELECT_BY_POS, MODE_TRADES);
if (OrderType() == a_cmd_0 && OrderSymbol() == Symbol() && OrderMagicNumber() == GridMagic) l_count_4++;
}
return (l_count_4);
}
void xianshi() {
string l_name_0 = "yuren_11";
ObjectDelete(l_name_0);
ObjectCreate(l_name_0, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_0, "伺服器时间::" + TimeToStr(TimeCurrent()) + "", 13, "Arial", White);
ObjectSet(l_name_0, OBJPROP_CORNER, 0);
ObjectSet(l_name_0, OBJPROP_XDISTANCE, 200);
ObjectSet(l_name_0, OBJPROP_YDISTANCE, 5);
string ls_8 = "渔人趋势网格2020版";
string l_name_16 = "yuren_12";
ObjectDelete(l_name_16);
ObjectCreate(l_name_16, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_16, "" + ls_8 + "", 15, "Arial", Yellow);
ObjectSet(l_name_16, OBJPROP_CORNER, 1);
ObjectSet(l_name_16, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_16, OBJPROP_YDISTANCE, 15);
string l_name_24 = "yuren_13";
ObjectDelete(l_name_24);
ObjectCreate(l_name_24, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_24, "M" + Period() + " 货币 " + Symbol() + "", 10, "Arial", Silver);
ObjectSet(l_name_24, OBJPROP_CORNER, 1);
ObjectSet(l_name_24, OBJPROP_XDISTANCE, 130);
ObjectSet(l_name_24, OBJPROP_YDISTANCE, 42);
string l_name_32 = "yuren_14";
ObjectDelete(l_name_32);
ObjectCreate(l_name_32, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_32, "" + DoubleToStr(Ask, Digits) + "::买上", 15, "Arial", Lime);
ObjectSet(l_name_32, OBJPROP_CORNER, 1);
ObjectSet(l_name_32, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_32, OBJPROP_YDISTANCE, 40);
string l_name_40 = "yuren_15";
ObjectDelete(l_name_40);
ObjectCreate(l_name_40, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_40, "" + DoubleToStr(Bid, Digits) + "::卖下", 15, "Arial", Lime);
ObjectSet(l_name_40, OBJPROP_CORNER, 1);
ObjectSet(l_name_40, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_40, OBJPROP_YDISTANCE, 60);
string l_name_48 = "yuren_16";
ObjectDelete(l_name_48);
ObjectCreate(l_name_48, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_48, "" + DoubleToStr(AccountBalance(), 2) + "::账面资金", 13, "Arial", Lime);
ObjectSet(l_name_48, OBJPROP_CORNER, 1);
ObjectSet(l_name_48, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_48, OBJPROP_YDISTANCE, 80);
string l_name_56 = "yuren_17";
ObjectDelete(l_name_56);
ObjectCreate(l_name_56, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_56, "" + DoubleToStr(AccountEquity(), 2) + "::净值资金", 13, "Arial", Lime);
ObjectSet(l_name_56, OBJPROP_CORNER, 1);
ObjectSet(l_name_56, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_56, OBJPROP_YDISTANCE, 100);
string l_name_64 = "yuren_18";
ObjectDelete(l_name_64);
ObjectCreate(l_name_64, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_64, "" + DoubleToStr(AccountMargin(), 2) + "::保证资金", 13, "Arial", Lime);
ObjectSet(l_name_64, OBJPROP_CORNER, 1);
ObjectSet(l_name_64, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_64, OBJPROP_YDISTANCE, 120);
string l_name_72 = "yuren_19";
ObjectDelete(l_name_72);
ObjectCreate(l_name_72, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_72, "" + DoubleToStr(AccountFreeMargin(), 2) + "::可用资金", 13, "Arial", Lime);
ObjectSet(l_name_72, OBJPROP_CORNER, 1);
ObjectSet(l_name_72, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_72, OBJPROP_YDISTANCE, 140);
string l_name_80 = "yuren_20";
ObjectDelete(l_name_80);
ObjectCreate(l_name_80, OBJ_LABEL, 0, 0, 0);
ObjectSetText(l_name_80, "" + DoubleToStr(AccountProfit(), 2) + "::账面盈亏", 13, "Arial", Lime);
ObjectSet(l_name_80, OBJPROP_CORNER, 1);
ObjectSet(l_name_80, OBJPROP_XDISTANCE, 15);
ObjectSet(l_name_80, OBJPROP_YDISTANCE, 160);
}
|
|