100 pips

 
Files:
 

Parameters

What pair, timeframe, etc do you find works best?

Strategy Tester Report

100 pips v3

Symbol EURUSD (Euro vs US Dollar)

Period 15 Minutes (M15) 2004.12.16 00:00 - 2005.12.30 00:00

Model Every tick (based on all available least timeframes with fractal interpolation of every tick)

Parameters stopLoss=50; lTakeProfit=20; sTakeProfit=15; lTrailingStop=10; sTrailingStop=10; clOpenBuy=Blue; clCloseBuy=Aqua; clOpenSell=Red; clCloseSell=Violet; clModiBuy=Blue; clModiSell=Red; Name_Expert="100 pips"; Slippage=2; UseSound=true; NameFileSound="shotgun.wav"; Lots=0.1;

Bars in test 37942 Ticks modelled 577467 Modelling quality 90.00%

Initial deposit 50000.00

Total net profit -1402.00 Gross profit 189.00 Gross loss -1591.00

Profit factor 0.12 Expected payoff -77.89

Absolute drawdown 1402.00 Maximal drawdown (%) 1591.00 (3.2%)

Total trades 18 Short positions (won %) 7 (100.00%) Long positions (won %) 11 (90.91%)

Profit trades (% of total) 17 (94.44%) Loss trades (% of total) 1 (5.56%)

Largest profit trade 20.00 loss trade -1591.00

Average profit trade 11.12 loss trade -1591.00

Maximum consecutive wins (profit in money) 17 (189.00) consecutive losses (loss in money) 1 (-1591.00)

Maximal consecutive profit (count of wins) 189.00 (17) consecutive loss (count of losses) -1591.00 (1)

Average consecutive wins 17 consecutive losses 1

 

Stoploss

with the stoploss set to 50 under the user input tab, the ea doesn't set the SL when entering the order. see attached gif.

Files:
3_2.gif  13 kb
 
 

About the time frame ~

Hi ...

If you read the code, The time frame is M5. But there is no specific pair !.

Hope this helps a little !

 

I do not obtain to understand language MQL, but I am using in timeframe 1hr

oshaban:
Hi ...

If you read the code, The time frame is M5. But there is no specific pair !.

Hope this helps a little !
 

Ah Ha!

oshaban:
Hi ...

If you read the code, The time frame is M5. But there is no specific pair !.

Hope this helps a little !

I see...

double diClose0=iClose(NULL,5,0);

double diMA1=iMA(NULL,5,7,0,MODE_SMA,PRICE_OPEN,0);

double diClose2=iClose(NULL,5,0);

double diMA3=iMA(NULL,5,6,0,MODE_SMA,PRICE_OPEN,0);
 

which would be the code to modify for one hour?

fxid10t:
I see...
double diClose0=iClose(NULL,5,0);

double diMA1=iMA(NULL,5,7,0,MODE_SMA,PRICE_OPEN,0);

double diClose2=iClose(NULL,5,0);

double diMA3=iMA(NULL,5,6,0,MODE_SMA,PRICE_OPEN,0);
 
rodrigokaus:
which would be the code to modify for one hour?

I do not know exactly but think the following:

just change

5[/CODE]

on to

Timeframe

And in the beginning of the code insert the following:

[CODE]extern double Timeframe = 60;

But I am not sure.

 

modified

the attached ea has the timeperiod=0; by default, meaning it will use the period of the chart it is attached to. Also, fixed the StopLoss bug, and changed trailing stop default parameter to the minimum accepted by the author's origional coding...

extern int timeframe=0;

extern double stopLoss = 50;

extern double lTakeProfit = 20;

extern double sTakeProfit = 15;

extern double lTrailingStop = 10;

extern double sTrailingStop = 10;

extern color clOpenBuy = Blue;

extern color clCloseBuy = Aqua;

extern color clOpenSell = Red;

extern color clCloseSell = Violet;

extern color clModiBuy = Blue;

extern color clModiSell = Red;

extern string Name_Expert = "100 pips";

extern int Slippage = 2;

extern bool UseSound = true;

extern string NameFileSound = "shotgun.wav";

extern double Lots = 0.1;[/CODE]

[CODE]void OpenBuy() {

double ldLot, ldStop, ldTake;

string lsComm;

ldLot = GetSizeLot();

ldStop = Ask-Point*stopLoss;

ldTake = GetTakeProfitBuy();

lsComm = GetCommentForOrder();

OrderSend(Symbol

(),OP_BUY,ldLot,Ask,Slippage,ldStop,ldTake,lsComm,0,0,clOpenBuy);

if (UseSound) PlaySound(NameFileSound);

}

void OpenSell() {

double ldLot, ldStop, ldTake;

string lsComm;

ldLot = GetSizeLot();

ldStop = Bid+Point*stopLoss;

ldTake = GetTakeProfitSell();

lsComm = GetCommentForOrder();

OrderSend(Symbol

(),OP_SELL,ldLot,Bid,Slippage,ldStop,ldTake,lsComm,0,0,clOpenSell);

if (UseSound) PlaySound(NameFileSound);

}

for some reason, this expert only seems to place trades when the timeframe is set to 5... and if you set a hard stoploss of 50, watch out below, cause thats where account equity is falling...

Files:
 

backtest default setting results

Strategy Tester Report

100 pips v3.1

Symbol EURUSD (Euro vs US Dollar)

Period 1 Hour (H1) 2004.12.16 00:00 - 2005.12.30 00:00

Model Every tick (based on all available least timeframes with fractal interpolation of every tick)

Parameters timeframe=5; stopLoss=1000; lTakeProfit=20; sTakeProfit=15; lTrailingStop=10; sTrailingStop=10; clOpenBuy=Blue; clCloseBuy=Aqua; clOpenSell=Red; clCloseSell=Violet; clModiBuy=Blue; clModiSell=Red; Name_Expert="100 pips"; Slippage=2; UseSound=true; NameFileSound="shotgun.wav"; Lots=0.1;

Bars in test 16806 Ticks modelled 504163 Modelling quality 90.00%

Initial deposit 50000.00

Total net profit -1203.00 Gross profit 291.00 Gross loss -1494.00

Profit factor 0.19 Expected payoff -46.27

Absolute drawdown 1203.00 Maximal drawdown (%) 1403.00 (2.8%)

Total trades 26 Short positions (won %) 12 (100.00%) Long positions (won %) 14 (85.71%)

Profit trades (% of total) 24 (92.31%) Loss trades (% of total) 2 (7.69%)

Largest profit trade 20.00 loss trade -1000.00

Average profit trade 12.13 loss trade -747.00

Maximum consecutive wins (profit in money) 15 (200.00) consecutive losses (loss in money) 1 (-1000.00)

Maximal consecutive profit (count of wins) 200.00 (15) consecutive loss (count of losses) -1000.00 (1)

Average consecutive wins 12 consecutive losses 1