How former Highs & Lows filter UniMA EA setups

9 August 2022, 12:01
Heiko Kendziorra
0
119

   

The Universal Moving Average Expert Filters avoid opening trades triggered by the basic setup explained in part 1 >>

Filters that improve the result are found optimizing in the setting  FilterTest and then given in in the set Filters. 

The Filters add a condition to trigger a trade.

Most of these conditions refer to the lines the EA draws into the chart: Highs & Lows of former days, weeks & months.

The lines drawn in the chart are the same as explained in the free indicator: Resistance Support Levels >> 


The list below shows what means a filter number.

In best case setting a filter improves the backtest result - and hopefully the live trading result.

A good example is the filter nr 48 in the latest set file for GBPUSD M5 sell scalping.


Nr 48 exceeds: c1<hhm2  - close of the last finished candle (c1) must be below the highest high of month 2


A close over that high would mean that the symbol is in a strong medium term uptrend.

It is nearly self explaining that opening sell trades in that case should cause loss. 

A several years backtest with & without that filter shows the high impact of that filter for the trading result.

Of course there's also win trades suppressed by the filter, but the overall result improves a lot with the filter.


But the use of that filter means that as long as the price is over that 2 month high there's no trade triggered - that may last several month.

In a system trading only this one symbol and strategy this would be fairly bad - but as we trade a handful or more symbols it is no problem.


But the filters also allow to optimize for just that case that in the "general" setting is suppressed:

Activating filter 47: c1>=hhm2 would show in a backtest with the given settings of the  "general" setting a overall loss, of course.

But modifying the "general" settings may lead to a backtest with profit even in that special market fase.

This just to give you an idea what is possible.

Right now and already for several months many USD related currency pairs are under llm2 (lowest low of month 2).

Maybe it makes sense to create 2 set files for the same chart, one with c1<llm2 set as condition (current situation) and one with  c1>=llm2 (filter 45)

Maybe with different setting for SL & TP etc. the overall test result for both cases can be improved (a lot).

I'll check that later.

Then more info will follow.

Good trades!  :-)


Filter number  Filter condition

   001 c1>=hhd1

    002 c1<hhd1
   
   
   003 c1>=hld1
  
   004 c1<hld1
   
   
   005 c1>=lld1
  
   006 c1<lld1
   
   
   007 c2>=o2
  
   008 c2<o2
   
   
   009 c3>=o3
  
        010 c3<o3
   
   
   
        011 c1>=hhd2
  
        012 c1<hhd2
   
   
        013 c1>=lld2
  
        014 c1<lld2
   
   
        015 c1>=hhd3
  
        016 c1<hhd3
   
   
        017 c1>=lld3
  

   018 c1<lld3


  019 body of candle > atrv (average true range value)   

  020 body of candle > atrv*2 (average true range value) x 2   

   
      
        021 c1>=hhw1
  
        022 c1<hhw1
   
   
        023 c1>=hlw1
  
        024 c1<hlw1
   
   
        025 c1>=llw1
  
        026 c1<llw1 
   
   
        027 h1==hhd  - high of last candle (bar) must be the high of the current day
  
        028 h1!=hhd  -  high must not be the high of the current day
   
   
        029 l1==lld    low must be the low of the current day
  
        030 l1!=lld   -  low must not be the low of the current day
   
   
   
        031 c1>=hhw2
  
        032 c1<hhw2
   
   
        033 c1>=llw2
  
        034 c1<llw2
   
   
        035 c1>=hhw3
  
        036 c1<hhw3
   
   
        037 c1>=llw3
  
        038 c1<llw3
   
   
        039 c1>=hhw4
  
        040 c1<hhw4
   
   
        041 c1>=llw4
  
        042 c1<llw4
   
   
   
        043 c1>=hhm1
  
        044 c1<hhm1
   
   
        045 c1>=llm1
  
        046 c1<llm1
   
   
        047 c1>=hhm2
  
        048 c1<hhm2
   
   
        049 c1>=llm2
  
        050 c1<llm2
   

   

After nr 50 the filters are more complicated. Here an example, Filter 51, it sums up 3 conditions.

More info about the compound filters later.

     

   51  (hhd<hhd1) + (hhd1<hhd2) + (lld>lld1)  - only when all 3 conditions are met the EA suppresses a trade

A later version may allow users to compound filters on their own, using the above mentioned filters.

Share it with friends: