Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
To frantacech,
have you tried to hedge not by opening setting ReverseSignal = 1, but by setting in MT options for one window ONLY SHORT positions, and for another window ONLY LONG positions? EA choose the direction which can increase the probability of right enter, so when there will be absolute signal for buying, there will be one position in the market, and if the trend is up, EA will just buy without opening sell position for hedge by second window's EA. But when trend reverses, the first EA will be opening 0.2 0.3 0.5 etc., while the second EA will be trading by down trend. I belive, these manipulations will decrease the number of bad entries in a strong trend, as positions will be opening in accordance with the trend. However, in that case we should restrict opening too many positions in block.
As I mentioned in an earlier post the EA is set for FXDD times which are GMT + 2. I do not know what Velocity uses for their server times.
Also it looks like your trade is during the NY session and that is set to false by default. When did you start the EA?
Second, I am not using GMACD for trend as the default. I use HMA on 4 hr only by default.
Third, when both trends are used the default is 4 HR HMA and 60 minutes HMA. You would need to change the timeframe settings to 1440 and 240 for the 4 hr and 1 hr timeframe inputs.
To use GMACD and DigiStoch they need to be selected for the two filter methods. That is why I included string prompts. Otherwise it would be difficult to know which method to use by number.
As for limiting trades to first signal only that might miss some good trades if ther is a move up with a retrece closing the trade followed by another muve up that would reach profit.
That is why I am running the backtest to determine what combination of indicators might work best for entry and exit.
Robert
Quote:
Originally Posted by frantacech
I dont understand, why EA still buy gbpusd...no init first signal... no H4 and D1 trend long direct?
I think, open trade only first correct signal (first bar or second) and no anytime.
I have a method already in place to add scalping to the DIN EA. That will happen once the EA is at a better place as far as indicators to use and what to use for determining trend.
It is based on the TriplePlayTesting EA I developed for the yahoo group.
When a trend following trade is opened it opens scalp trades at 10 and 20 pips above/below the entry with take profit of 20 for the first and 10 for the second. It has worked well added to other EAs I have developed. I hesitate to make the takeprofit smaller as many brokers will not allow scalping. With 20 and 10 pip targets it usually takes longer fot the trade to close so there is no alert to the broker that you are scalping.
Also the orders are determined internally instead of using stop orders.
I also have code that will close trades at any profit level by using internal take profit.
As I mentioned in an earlier post the EA is set for FXDD times which are GMT + 2. I do not know what Velocity uses for their server times.
Also it looks like your trade is during the NY session and that is set to false by default. When did you start the EA?
Second, I am not using GMACD for trend as the default. I use HMA on 4 hr only by default.
Third, when both trends are used the default is 4 HR HMA and 60 minutes HMA. You would need to change the timeframe settings to 1440 and 240 for the 4 hr and 1 hr timeframe inputs.
To use GMACD and DigiStoch they need to be selected for the two filter methods. That is why I included string prompts. Otherwise it would be difficult to know which method to use by number.
As for limiting trades to first signal only that might miss some good trades if ther is a move up with a retrece closing the trade followed by another muve up that would reach profit.
That is why I am running the backtest to determine what combination of indicators might work best for entry and exit.
//+---------------------------------------------------+
//|Account functions |
//+---------------------------------------------------+
extern bool AccountIsMini = false; // Change to true if trading mini account
//+---------------------------------------------------+
//|Money Management |
//+---------------------------------------------------+
extern bool MoneyManagement = true; // Change to false to shutdown money management controls.
// Lots = 1 will be in effect and only 1 lot will be open regardless of equity.
extern double TradeSizePercent = 10; // Change to whatever percent of equity you wish to risk.
extern double Lots = 0.1; // standard lot size.
extern double MaxLots = 100;
//+---------------------------------------------------+
//|Profit controls |
//+---------------------------------------------------+
extern double StopLoss = 30; // Maximum pips willing to lose per position.
extern bool UseTrailingStop = true;
extern double TrailingStop = 28; // Change to whatever number of pips you wish to trail your position with.
extern double Margincutoff = 500; // Expert will stop trading if equity level decreases to that level.
extern int TakeProfit = 0; // Maximum profit level achieved.
extern int Slippage = 10; // Possible fix for not getting filled or closed
//+---------------------------------------------------+
//|Indicator Variables |
//| Change these to try your own system |
//| or add more if you like |
//+---------------------------------------------------+
extern string Expert_Name = "---- DIN_v2 ----";
extern int useTrend = 1;
extern int useHeikenAshi = 1;
extern int useBBStop = 1;
extern int useFish = 1;
extern int useStepMA = 1;
extern int useEMA = 0;
extern int useTrendExit = 0;
extern int useHeikenAshiExit = 1;
extern int useBBStopExit = 0;
extern int useFishExit = 0;
extern int useStepMAExit = 1;
extern string sD=" 4 Hr GMACD settings";
extern int T4_FastEMA = 8;
extern int T4_SlowEMA = 17;
extern int T4_SignalSMA = 9;
extern string sDS=" 4 Hr DigiStoch settings";
extern int T4_K_period = 8;
extern int T4_D_period = 3;
extern int T4_S_period = 3;
extern string ss=" 4 Hr MA settings";
extern int T4_Period=6;
extern double T4_Threshold=20;
extern int T4_PrevShift=3;
extern int T4_CurShift=1;
extern int T4_TimeFrame = 240;
extern int T4_SignalCandle = 0;
extern string s5=" 1 Hr GMACD";
extern int T1_FastEMA = 8;
extern int T1_SlowEMA = 17;
extern int T1_SignalSMA = 9;
extern string s5S=" 1 Hr DigiStoch settings";
extern int T1_K_period = 8;
extern int T1_D_period = 3;
extern int T1_S_period = 3;
extern string st=" 1 Hr MA settings";
extern int T1_Period=6;
extern double T1_Threshold=10;
extern int T1_PrevShift=3;
extern int T1_CurShift=1;
extern int T1_TimeFrame = 60;
extern int T1_SignalCandle = 0;
extern string s6="//====HMA settings====//";
extern int method = 0;
extern int price = 0;
extern bool UseTradingHours = false;
extern bool TradeAsianMarket = true;
extern int StartHour1 = 23; // Start trades after time GMT+1
extern int StopHour1 = 2; // Stop trading after time
extern bool TradeEuropeanMarket = true;
extern int StartHour2 = 8; // Start trades after time
extern int StopHour2 = 10; // Stop trading after time
extern bool TradeNewYorkMarket = false;
extern int StartHour3 = 14; // Start trades after time
extern int StopHour3 = 16; // Stop trading after time
Run M30 tf.
I think, EA dont respect pure rules ISAKAS.
I want... waiting correct signal and open trade at first or second bar.
And waiting at close and new correct signal, no open anytime, if heiky, fisher and bbstop red or blue.
Din_EA_V2 is not showing the dots for BBands all the way to the last candle. The last 7 or 8 candles don't have a dot above or below them. This also was happening with Kuskus_EA so I suppose it is a problem with BBands_Stop_v2
Here is the fixed version. In the version I was using all I changed was the usual code to check IndicatorCounted. That was what was causing the problem. The new version still does the check but if less than Nbars sets the limit to Nbars like the original. This version stil shows the bands all the way back through the chart.
I kept the same name so the ea will use the same indicator.
BTW the backtest so far is showing better results by NOT using trend.
I am testing all possible combinations of indicators to use both for entry and exit.
For those who want pure KusKus only set the useXxx to 1 for the indicators for that system. I think that is BBands_Stop, Fisher11 and Heiken Ashi. Everything else is either from Dolly or Nina and can be set to 0. The time for trades is another matter. I suppose you can change the times to be 1 hour from start to stop as mentioned a few posts back or just do not use trading hours. The default settings for trading hours are what I am currently testing.