老师看下这个 [文华财经]
- 咨询内容: 老师能否翻译成文化,6和8都可以 */ #property copyright #property link extern int MinPrfofit = 1; extern int MaxLoss = 10; extern int Delta = 3; extern int BB_Period = 1; extern int BB_Deviation = 2; extern bool FixLotMM = FALSE; extern double FixLotSize = 0.1; extern double RiskPercent = 10.0; extern int Slippage = 2; extern string Comm = "微信 15889434153"; int G_magic_128; double G_stoplevel_132; double G_spread_140; double G_lotstep_148; double G_lots_156; double Gd_164; double Gd_172; double Gd_180; // D1F1DB447EF654C1839D0A416E1B4F67 double f0_0() { double point_0; if (Digits == 3) point_0 = 0.01; else { if (Digits == 5) point_0 = 0.0001; else point_0 = Point; } return (point_0); } // E37F0136AA3FFAF149B351F6A4C948E9 int init() { G_magic_128 = StringGetChar(Symbol(), 0) + 77704 + StringGetChar(Symbol(), 1) * 2 + 3 * StringGetChar(Symbol(), 3) + StringGetChar(Symbol(), 4) * 4 + 10000 * Period(); G_stoplevel_132 = MarketInfo(Symbol(), MODE_STOPLEVEL); G_spread_140 = MarketInfo(Symbol(), MODE_SPREAD); Gd_172 = MarketInfo(Symbol(), MODE_MAXLOT); Gd_180 = MarketInfo(Symbol(), MODE_MINLOT); G_lotstep_148 = MarketInfo(Symbol(), MODE_LOTSTEP); return (0); } // EA2B2676C28C0DB26D39331A336C6B92 int start() { double price_4; double price_12; double Ld_20; bool Li_28; bool Li_32; if (FixLotMM) G_lots_156 = FixLotSize; else G_lots_156 = AccountFreeMargin() / 1000.0 * (RiskPercent / 100.0); if (G_lots_156 < Gd_180) G_lots_156 = Gd_180; else { if (G_lots_156 > Gd_172) G_lots_156 = Gd_172; else { for (Gd_164 = Gd_180; Gd_164 <= G_lots_156; Gd_164 += G_lotstep_148) { } G_lots_156 = Gd_164 - G_lotstep_148; } } if (G_lots_156 > 2300.0) G_lots_156 = NormalizeDouble(G_lots_156, 0); for (int pos_0 = OrdersTotal() - 1; pos_0 >= 0; pos_0--) { OrderSelect(pos_0, SELECT_BY_POS); if (OrderSymbol() != Symbol() || OrderMagicNumber() != G_magic_128) continue; if (OrderType() == OP_BUY) { Ld_20 = Bid - OrderOpenPrice(); if ((MinPrfofit > 0 && Ld_20 >= MinPrfofit * f0_0()) || (MaxLoss > 0 && Ld_20 <= (-1 * MaxLoss) * f0_0())) { OrderClose(OrderTicket(), OrderLots(), Bid, Slippage, Purple); return (0); } } if (OrderType() != OP_SELL) return (0); Ld_20 = OrderOpenPrice() - Ask; if (!((MinPrfofit > 0 && Ld_20 >= MinPrfofit * f0_0()) || (MaxLoss > 0 && Ld_20 <= (-1 * MaxLoss) * f0_0()))) return (0); OrderClose(OrderTicket(), OrderLots(), Ask, Slippage, Red); return (0); return (0); } double ibands_36 = iBands(Symbol(), 0, BB_Period, BB_Deviation, 0, PRICE_OPEN, MODE_UPPER, 0); double ibands_44 = iBands(Symbol(), 0, BB_Period, BB_Deviation, 0, PRICE_OPEN, MODE_LOWER, 0); if (Close[0] > ibands_36 + Delta * f0_0()) Li_32 = TRUE; else Li_32 = FALSE; if (Close[0] < ibands_44 - Delta * f0_0()) Li_28 = TRUE; else Li_28 = FALSE; if (Li_28) { if (MaxLoss == 0) price_4 = 0; else price_4 = Ask - (MaxLoss + G_stoplevel_132) * f0_0(); if (MinPrfofit == 0) price_12 = 0; else price_12 = Ask + (MinPrfofit + G_stoplevel_132 + G_spread_140) * f0_0(); OrderSend(Symbol(), OP_BUY, G_lots_156, Ask, Slippage, price_4, price_12, Comm, G_magic_128, 16711680); } if (Li_32) { if (MaxLoss == 0) price_4 = 0; else price_4 = Bid + (MaxLoss + G_stoplevel_132) * f0_0(); if (MinPrfofit == 0) price_12 = 0; else price_12 = Bid - (MinPrfofit + G_stoplevel_132 + G_spread_140) * f0_0(); OrderSend(Symbol(), OP_SELL, G_lots_156, Bid, Slippage, price_4, price_12, Comm, G_magic_128, 255); } return (0); }
-
文华技术人员:
这个指标是什么软件的源码?
来源: WWW.CXH99.COM
-
文华客服:
网上看到的不清楚
-
网友回复:
需要说明这个指标原本是用哪个软件编写的,
这个指标与麦语言相差太大,不能直接修改,我们需要到对应软件查看函数,看下能否进行修改。
来源:程序化99
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容