Collaboration Dolly + Isakas + Nina System - page 35

 

I think it's a normal if someone's EA being tested and someone else want to make it better. THat's the point I make this thread... No one should force his way through...

Ok, then let's have what's already we have here and we work together to make an EA which is following DIN system, means no buy order from EA while everybody should go sell, or sell order EA while everybody wants it go buy..

 

New EA rule

ANCOLL:
I think it's a normal if someone's EA being tested and someone else want to make it better. THat's the point I make this thread... No one should force his way through...

Ok, then let's have what's already we have here and we work together to make an EA which is following DIN system, means no buy order from EA while everybody should go sell, or sell order EA while everybody wants it go buy..

New rule to fix the ea from placing the "Bad" trades you posted.

I do not know if this will work or not because the trade might be places just before news or a sudden reversal.

For buy using signal from 30 minute chart.

Check for Bull candle on 15 minute chart

if (iClose(NULL,15,1) > iOpen(NULL,15,1) rule = true;

For sell

Check for Bear candle on 15 minute chart

if (iClose(NULL,15,1) < iOpen(NULL,15,1)) rule = true;

Another possible solution is to use

for buy

if (Bid > iClose(NULL,15,1)) rule = true;

for sell

if (Bid < iClose(Null,15,1)) rule = true;

The idea is to check that the pair is still going in the same direction as the signal to buy or sell.

If everyone will realize that the EAs place trades on the signal from closed candles I will continue to work on this ea. That means the trade is open based on the signals from the prior candle.

Robert

 

Thanks a lot mr Pip

I will take a careful study at your rule

 

Rules used in my EAs

Rules checked in DIN_Kuskus_v1.1

Here is the actual code from the EAs.

cmd is either OP_BUY or OP_SELL.

Each indicator function checks the recent CLOSED candle not the current OPEN candle.

For entry all 3 indicators are checked.

For exit only the indicators with the exit switch set to 1 are used.

bool CheckEntryCondition(int cmd)

{

bool rule1, rule2, rule3;

rule1 = true;

rule2 = true;

rule3 = true;

// The rules are checked this way for speed

rule1 = CheckHeikenAshi(cmd);

if (rule1)

{

rule2 = CheckBBStop(cmd);

if (rule2)

{

rule3 = CheckFish(cmd);

if (rule3)

{

return(true);

}

}

}

return (false);

}

//+------------------------------------------------------------------+

//| CheckExitCondition |

//| Uses OP_BUY as cmd to check exit sell |

//| Uses OP_SELL as cmd to check exit buy |

//+------------------------------------------------------------------+

bool CheckExitCondition(int cmd)

{

bool rule1, rule2, rule3;

rule1 = true;

rule2 = true;

rule3 = true;

// The rules are checked this way for speed

if (useHeikenAshiExit == 1) rule1 = CheckHeikenAshi(cmd);

if (rule1)

{

if (useFishExit == 1) rule2 = CheckFish(cmd);

if (rule2)

{

if (useBBStopExit == 1) rule3 = CheckBBStop(cmd);

if (rule3) return (true);

}

}

return (false);

}

Rules as used in DIN_Kiskus_v2.0

For entry all 3 from Kuskus indicators are checked.

In addition the additional indicators are used if the appropriate swith is set to 1.

For exit only the indicators with the exit switch set to 1 are used.

//+------------------------------------------------------------------+

//| CheckEntryCondition |

//+------------------------------------------------------------------+

bool CheckEntryCondition(int cmd)

{

bool rule1, rule2, rule3, rule4, rule5, rule6;

rule1 = true;

rule2 = true;

rule3 = true;

rule4 = true;

rule5 = true;

rule6 = true;

// The rules are checked this way for speed

rule1 = CheckHeikenAshi(cmd);

if (rule1)

{

rule2 = CheckBBStop(cmd);

if (rule2)

{

rule3 = CheckFish(cmd);

if (rule3)

{

if (useNinaEMA == 1) rule4 = CheckNinaEMA(cmd);

if (rule4)

{

if (useTrendEntry == 1) rule5 = CheckTrend(cmd);

if (rule5)

{

if (useStepMA == 1) rule6 = CheckStepMA(cmd);

if (rule6) return(true);

}

}

}

}

}

return (false);

}

//+------------------------------------------------------------------+

//| CheckExitCondition |

//| Uses OP_BUY as cmd to check exit sell |

//| Uses OP_SELL as cmd to check exit buy |

//+------------------------------------------------------------------+

bool CheckExitCondition(int cmd)

{

bool rule1, rule2, rule3, rule4, rule5;

rule1 = true;

rule2 = true;

rule3 = true;

rule4 = true;

rule5 = true;

// The rules are checked this way for speed

if (useHeikenAshiExit == 1) rule1 = CheckHeikenAshi(cmd);

if (rule1)

{

if (useFishExit == 1) rule2 = CheckFish(cmd);

if (rule2)

{

if (useBBStopExit == 1) rule3 = CheckBBStop(cmd);

if (rule3)

{

if (useTrendExit == 1) rule4 = CheckTrend(cmd);

if (rule4)

{

if (useStepMAExit == 1) rule5 = CheckStepMA(cmd);

if (rule5) return (true);

}

}

}

}

return (false);

}

Robert

 

Thanks a lot guys, MrPip, Shinigami, ANCOLL, frantacech for your contribution to this great effort. May pips go with you all,

alan

 

Trailing EA

As requested I have taken the code for the trailing stop functions from the EA and created an ea for trailing open positions on the chart where attached.

No use of magic number.

This has not been tested.

I have also posted this on the Yahoo MTE&I group.

Might be better to discuss this trailing ea in another thread.

Robert

 
MrPip:
As requested I have taken the code for the trailing stop functions from the EA and created an ea for trailing open positions on the chart where attached.

No use of magic number.

This has not been tested.

I have also posted this on the Yahoo MTE&I group.

Might be better to discuss this trailing ea in another thread.

Robert

Well done, thanks for your work, mate. By the way Robert, where can we find this newly modified EA with new rules to be tested? On the first post or just somewhere else?

Regards,

alan

 

Trailing EA

Chrisstoff,

That link is where I got a lot of the code for the trailing ea. I plan to check the other ideas at that link and add as time allows.

Just thought it would be nice to have all of the ideas in one ea.

As far as the DIN EAs I have not made the changes yet. I was hoping more for responses if it was thought this would even work.

Other ideas include waiting for an increase of x pips after the signal to enter the trade. That would cut down on profit but might help to avoid losses.

Kind of like a DIN_Kuskus breakout.

What do you think?

Robert

 
 

EA into 3 pieces

MiniMe,

That will be easy. I just need to put the booleans back for useFisher, useHA and useBands. I actually use 0int with 0 and 1 for switches to make it possible to run backtest trying all combinations.

The backtester wil do the tests for the combinations.

Basically a truth table of 3x3 testing

0,0,0

0,0,1

0,1,0

0,1,1

1,0,0

1,0,1

1,1,0

1,1,1

Busy right now but will make the changes and release soon.

Robert

Reason: