How about an Equity based stoploss? That would seem to solve your problem.
The problem is that this EA is trading during the news time as well and i tried sl = 70 and it was not enough. But to have stop loss 70 if the profit level is 5 only - difficult. It should be stop loss = 10 or 20, or without stop loss. Anyway I am testing it and in the end of the week will post this EA with explanation and charts.
I tried many versions. It works for som period of time but then big drawdown.
So finally I did the following:
double Sell3_1 = iSAR(NULL, 0, 0.001, 0.05, 2);
double Sell3_2 = iSAR(NULL, 0, 0.001, 0.05, 1);
double Buy3_1 = iSAR(NULL, 0, 0.001, 0.05, 2);
double Buy3_2 = iSAR(NULL, 0, 0.001, 0.05, 1);
double Sell4_1 = iSAR(NULL, 0, 0.02, 0.2, 2);
double Sell4_2 = iSAR(NULL, 0, 0.02, 0.2, 1);
double Buy4_1 = iSAR(NULL, 0, 0.02, 0.2, 2);
double Buy4_2 = iSAR(NULL, 0, 0.02, 0.2, 1);
if(Close<diRound_big-(BDistance*Point) && iClose(NULL,30,1) < diRound_big30 && diStepStomain1 < diStepStosig1 && diStepStomain1 d24 && diRSIFilterdown1 Sell3_2 && Sell4_1 > Sell4_2 && ScanTrades() < MaxOrders) SELLme=true;
if(Close>diRound_big+(BDistance*Point) && iClose(NULL,30,1) > diRound_big30 && diStepStomain1 > diStepStosig1 && diStepStomain1 > d23 && diStepStomain1 d22 && Buy3_1 < Buy3_2 && Buy4_1 < Buy4_2 && ScanTrades() < MaxOrders) BUYme=true;
So what I did exactly?
This EA is using M30 and M5 timeframes.
What does it mean?
It means that buy is valid if:
- 1st close bar on M30 is above the line of RoundPriceNE_big indicator;
- the main line (StepSto_v2 indicator) is above signal ine and main line is between 50% and 70% (50%<value<70%).
Opposite for sell confirmation.
It is M30 timeframe. This timeframe is using just for confirmation only. It means that no one order will be opened on M5 timeframe if the above mentioned condition on M30 is not met.
Buy and sell condition.
This EA is trading on M5 timeframe. So condition for the sell is the following:
- 1st close bar is below (the value of RoundPriceNE_big - 7):
- RSIFilter_v1 indicator is showing downtrend:
- Parabolic SAR with the settings 0.001 and 0.05 is showing downtrend:
[CODE]double Sell3_1 = iSAR(NULL, 0, 0.001, 0.05, 2);
- Parabilic SAR with the other settings (0.02 and 0.2) is on downtrend as well:
[CODE]double Sell4_1 = iSAR(NULL, 0, 0.02, 0.2, 2);
Opposite for sell.
It was trading rules on M5.
So the order will be open if all the condition will be met on M5 (this post) with confirmation on M30 (see last post).
So please find EA (attached). It is 4 EAs for 4 majors. M5 timeframe. I am using default settings.
This EA is not working without indicators (attached). You should have these indicators in /indicators folder.
It is not necessary to attach indicators to the chart. Just open EURUSD M5, GBPUSD M5, USDJPY M5 and UDCHF M5 timeframe and attach the EAs. That's all.
If you want to see how this EA works so use template attached (M5 is trading timeframe and M30 for confirmation). I created two templates for M30 but you may use any of them.
As I said few posts later it is difficult to backtest this EA. Because a lot of indicators programmed inside. And I am not using any stop loss and it may be the problem as well.
unzip 30 min. confirm
This looks like a super-EA. Could you post the 30 min. confirm file without compression. I have not been able to unzip it. Perhaps the problem is this operator, rather than the file. The others unzipped nicely.
this week trades very good
I started with blockbuster sun last 29 jan on demo account
29 wins no loser up from 3000 to 3247 in 3 days
the thing that worries me is a
few trades are in and out in 3/5 min [15 pips]
will interbank allow the trades
update on trading
well after the very good run to yesterday I am now running
approx eurusd -500 and -500 with the usdjpy we will see if it pulls back.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.