Simple MA Cross w RSI and Stochastic filter - page 2

 

this thread is good, the system is simple, but the author have left it...

what a pity thread is ...

Regards,

IIN

 
iboersma:

... TRUE CROSS - LONG ENTRY

5EMA movesabove 10WMA by at least 2 pips

RSI > 50 Stochastic < 80

Ian

Ian's 2pips: kinda like that?

... && (lineA > lineB + 2*Point) ?

p.s. let's tell on him if he don't show up!

 
 
iboersma:
Hi,

OK, after trying to code this one myself with mixed success, I'm looking to see if anyone else can do it more successfully than me (I'm not a programmer). It's a 5EMA / 10LWMA cross system with an RSI and stochastic filter. It's also an "always in the market" swing trading system that I believe will work best on the majors during the 1H timeframe. so when I'm closing out of a LONG position, I not only close that position, but also open up a SHORT position.

The key here is that I don't want the BUY/SELL entry orders to be triggered simply by the MA cross; I want to make sure the cross is real, so I need the MAs to have at least 2 pips between them.

Here is a summary of the logic:

ENTRY CONDITIONS:

1) TRUE CROSS - LONG ENTRY

5EMA moves above 10WMA by at least 2 pips

RSI > 50

Stochastic < 80

2) TRUE CROSS - SHORT ENTRY

5EMA moves below 10WMA by at least 2 pips

RSI < 50

Stochastic > 20

3) 5EMA "TAKEOFF" - LONG ENTRY

5EMA moves above 10WMA after having been within 1 to 2 pips for past couple of periods

RSI > 50

Stochastic < 80

4) 5EMA "TAKEOFF" - SHORT ENTRY

5EMA moves below 10WMA after having been withing 1 to 2 pips for past couple of periods

RSI < 50

Stochastic > 20

EXIT CONDITIONS:

1) LONG CLOSE

5EMA moves below 10WMA by at least 2 pips

2) SHORT CLOSE

5EMA moves above 10WMA by at least 2 pips

3) STOP LOSS TRIGGERED (TRAILING)

4) TAKE PROFIT TRIGGERED

It would also be great if I could have the MAs visible, Arrows (large) showing entries and exits and an audible alert for entries.

Can anyone help with this?

Thanks!

Ian

You did not state time frame !

but trade on 5 secs.

The system is not profitable .I have tested it.I have an E A for a similiar system.

El cid

 

Hi,

I can program this EA for you if their is still interest in it. The 5EMA 10LWMA cross with at least 2 pips difference must it be on the close price or the current price. This can make a huge difference.

Best regards

Derik

 
derikb:
Hi,

I can program this EA for you if their is still interest in it. The 5EMA 10LWMA cross with at least 2 pips difference must it be on the close price or the current price. This can make a huge difference.The 5EMA 10LWMA cross with at least 2 pips difference must it be on the close price

Best regards

Derik

Derik

Fancy coding this

https://www.mql5.com/en/forum/175824

Add a rsi and sto and we can kill two birds with one stone

add the following to the properties

extern int TakeProfit = 130;

extern int Stoploss = 45;

extern int PendOrdGap = 25; // Gap for Pending Orders from Open in pips

extern bool FridayTrade = false; // Trades will be allowed on Fridays

extern int StartHour = 5;

extern int StartMinute = 5;

extern double Lots = 0.1; // Lots used for orders

extern string indy = "==== Stochastic Settings ====";

extern bool StochasticEntries = false;

extern int StochCheckBar = 1;

extern int Method = 0; // 0: Simple moving average

// 1: Exponential moving average

// 2: Smoothed moving average

// 3: Linear weighted moving average

extern int PriceField = 0; // 0: Low/High

// 1: Close/Close

extern int Fast_KPeriod = 8;

extern int Fast_DPeriod = 3;

extern int Fast_Slowing = 3;

extern int Slow_KPeriod = 14;

extern int Slow_DPeriod = 3;

extern int Slow_Slowing = 3;

extern string rsi=";

extern bool Filter_RSI = false;

extern int RSICheckBar = 1;

extern int MaxValForSell = 0; // Short orders are disabled if it rises above X

extern int MinValForBuy = 0; // Long orders are disabled if it drops below X

extern string autolot="==== Automatic Lots ====";

extern int AutoLot_MODE = 0; // If 1 or 2, lots are automatically calculated

extern double MaxAllowedLotSize = 0; // User specified maximum Lot Size for orders

extern string a1="== MODE 1 AutoLot Settings ==";

extern double MMRisk = 0.15; // Risk Factor

extern double LossMax = 1000; // Maximum Loss by 1 Lot

extern string a2="== MODE 2 AutoLot Settings ==";

extern double RiskPercentage = 2; // Percentage of equity to be used for each position

extern string manage="==== Stop Management ====";

extern int BreakEven = 0; // Set Stoploss to breakeven (order's open price) at X pips profit

extern int MoveBreakEven = 0; // Move the breakeven point up or down around

// the order open price

extern int TrailingStop = 70; // Stoploss follows behind current price by X pips

extern bool OnlyTrailProfits = false; // Trailing Stop will only trail when order is profitable

extern string closing="==== Close Times ====";

extern bool CloseOnTime = false;

extern string ClosingDay = "ANY"; // Day of week to activate; used for CloseOnTime;

// Input should be uppercase or lowercase ("FRIDAY", "friday", "ANY", "any")

// Three letter abbreviation may also be used ("FRI", "fri", "ANY", "any")

extern string ClosingTime = "19:00";

extern string id="==== Identity Settings ====";

extern int ExpertID = 7015; // Magic number: for identifying the EA's orders

extern bool TimeSpecific = false; // If true, Time Frames are considered when determining

// whether an order belongs to the EA or not

extern bool Disable_Comments = false; // EA will not display comments on screen

extern bool ShowConditionTable = false; // EA will display system values and variables

extern int LoopTry = 3; // Number of attempts used by order sending functions

int Slippage = 2;

string ExpertName =

Once you code the above you may find a profitable system

Regards

El cid

 

Hi El cid,

I didn't had time to implement your ideas.

Best regards

Derik

 

EA for Simple MA Cross with RSI and Stoch filter

Hi Ian,

I've programmed your reqeust. I didn't have time to test it but please post the results of some back testing. Maybe you must optimize the stoploss, takeprofit and the MA_trigger.

Best regards

Derik

 
derikb:
Hi Ian,

I've programmed your reqeust. I didn't have time to test it but please post the results of some back testing. Maybe you must optimize the stoploss, takeprofit and the MA_trigger.

Best regards

Derik

Some feedback please

Did u find any settings?

El

 

I didn't find anything promising yet. I think most EA's are over complicated. Most time is spend on adding new or more indcators instead of trying to understand why the system doesn't perform well in the first place. Fixing this may help in finding a profitable system. I'm spending time on my own trading systems and optimize them. I've only programmed this to help this thread - spare time.

Best regards

Derik

Reason: