© 本贴为 pengjhl 原创/首发,严谨抄袭!
最后由 pengjhl 于 2022-11-5 08:13 编辑
这是一款基于两个货币对的正相关ea,在一个货币对上,ea只开多单;在另一个货币对上,ea只开空单。如果出现亏损,EA开始通过开仓量比原始交易小得多的交易来解决它。
货币对:GBPUSD、EURUSD
周期:M5
参数说明:
SYMBOL_1 = ” EURUSD”;
SYMBOL_2 = “GBPUSD”;
Step = 50; – minimum step between orders
ProfitClose = 1.00; – profit in the currency at which we bite off the averaging
SumProfitClose = 10.00; – profit in the currency at which we close everything
LevelAverag = 300; – distance to the clearing order in points
LotRUL = 0.01;/ / first lot of the clearing (averaging) order
K_Lot = 2.5;/ / increase coefficient of the averaging order
Max_Lot = 100.0;
StartLot = 0.05; – auto
trade lot time filter
TimeStart = 0,
TimeEnd = 24;
BarsCorrelation=300;
TimeFrames=0;
OpenDeltaPercent = 80; – percentage of the maximum Delta at which the first positions are opened
MagicPlus = 0; – addition to the calculated magic
scale = 1.2 ;- size of the information window
Font_Size = 10; – font size
StopLossDelta = false-closing positions with reverse Delta
Volume_adjustment = false – adjustment of volume
CAP = false; //close accumulated profit ( CAP) – close part of the market at the expense of accumulated profit
LossPercentCAP = 10 – the percentage at which the CAP is enabled |