this is my first ea...
i did modify another code
this ea work with only 2 indy's "goldminer 1" and "fx sniper's ergodic"
test it on usd chf usd jpy and eur usd last 3 months on H4
simply open a position when both indy's are agree and close position when fx sniper's is disagree
DEFAULT SETTINGS
EAName "Goldminer System EA"
S1a="----------------
Goldminer1 Settings";
RISK=1;
CountBars1=300;
S1b="----------------
FX Snipers ergodic cci Settings";
pq=2;
pr=3;
ps=3;
trigger=3;
S2="----------------
Money Management";
Lots=0.1;//|-----------------------lots size
RiskMM=false;//|---------------------risk management
RiskPercent=1;//|------------------risk percentage
Martingale=false;//|-----------------martingale
Multiplier=2.0;//|-----------------multiplier martingale
MinProfit=50;//--------------------minimum profit to apply the martingale
BasketProfitLoss=false;//|-----------use basket loss/profit
BasketProfit=100000;//|---------------if equity reaches this level, close trades
BasketLoss=9999;//|-------------------if equity reaches this negative level, close trades
S3="----------------
Order Management";
ExitOnG2=true;//|-------------------exit at opposite fxsniper's
StopLoss=0;//|------------------------stop loss
TakeProfit=0;//|----------------------take profit
HideSL=false;//|---------------------hide stop loss
HideTP=false;//|---------------------hide take profit
TrailingStop=0;//|--------------------trailing stop
TrailingStep=0;//|--------------------trailing step
BreakEven=0;//|-----------------------break even
MaxOrders=100;//|---------------------maximum orders allowed
Slippage=3;//|------------------------slippage
eMagic=2009;//|------------------------magic number
S4="----------------
MA Filter";
MAFilter=false;//|-------------------moving average filter
MAPeriod=20;//|-----------------------ma filter period
MAMethod=0;//|------------------------ma filter method
MAPrice=0;//|-------------------------ma filter price
S5="----------------
Time Filter";
TradeOnSunday=true;//|---------------time filter on sunday
MondayToThursdayTimeFilter=false;//|-time filter the week
MondayToThursdayStartHour=0;//|-------start hour time filter the week
MondayToThursdayEndHour=24;//|--------end hour time filter the week
FridayTimeFilter=false;//|-----------time filter on friday
FridayStartHour=0;//|-----------------start hour time filter on friday
FridayEndHour=21;//|------------------end hour time filter on friday
S6="----------------
Extras";
Hedge=false;//|----------------------enter an opposite trade
HedgeSL=0;//|-------------------------stop loss
HedgeTP=0;//|-------------------------take profit
ReverseSystem=false;//|--------------buy instead of sell, sell instead of buy
ReverseAtStop=false;//|--------------buy instead of sell, sell instead of buy
Expiration=240;//|--------------------expiration in minute for the reverse pending order
Comments=true;//|--------------------allow comments on chart
UPGRADE 1.1
function basket profit loss added
TEMPLATE
you can download template of this image here :
http://www.forex-tsd.com/302367-post24.html