AUDJPY was a looser pair and now reach 260% in 2011-2012 with a profit factor of 3.45 !
I also add a StochSlow control to avoid some bad trade.
so for sell conditions :
Code: Select all
//Sell
if ( NbTradeSell < MACD_NbTradeMax[kk]) and (NbTradeBuy = 0) and
( PaireMACD_D1Main[kk,1] < PaireMACD_D1Main[kk,2]) and ( PaireMACD_D1Main[kk,2] < PaireMACD_D1Main[kk,3]) and
( _STOD1SLOW[kk,1] >= 100-MACD_StochLevelToTrade[kk]) and ( _STOD1FAST[kk,1] < _STOD1SLOW[kk,1])
and ( _STOD1FAST[kk,1] < _STOD1FAST[kk,2]) and ( _STOD1SLOW[kk,1] < _STOD1SLOW[kk,2]) and
( PaireMA5[kk,1] < PaireMA5[kk,2]) and ( PaireMA5[kk,2] < PaireMA5[kk,3]) and ( PaireMA25[kk,1] - PaireMA25[kk,2] < MACD_DeltaPipsMA25[kk]*Point ) and
((MonNbHour > MACD_HOURDELAY[kk] ) or (MonNbHour=9999)) and ((MonNbHourHistoBUY > MACD_HOURDELAY2[kk] ) or (MonNbHourHistoBUY=9999)) and
( (PaireMACD_D1Main[kk,3] >= MACD_LevelMinTotrade[kk]) or (PaireMACD_D1Main[kk,1] <= -MACD_LevelMinTotrade[kk]) ) then
beginCode: Select all
//Buy
if ( NbTradeBuy < MACD_NbTradeMax[kk]) and (NbTradeSell = 0) and
( PaireMACD_D1Main[kk,1] > PaireMACD_D1Main[kk,2]) and ( PaireMACD_D1Main[kk,2] > PaireMACD_D1Main[kk,3]) and
( _STOD1SLOW[kk,1] <= MACD_StochLevelToTrade[kk]) and ( _STOD1FAST[kk,1] > _STOD1SLOW[kk,1]) and ( _STOD1FAST[kk,1] > _STOD1FAST[kk,2]) and
( _STOD1SLOW[kk,1] > _STOD1SLOW[kk,2]) and
( PaireMA5[kk,1] > PaireMA5[kk,2]) and ( PaireMA5[kk,2] > PaireMA5[kk,3]) and ( PaireMA25[kk,2] - PaireMA25[kk,1] < MACD_DeltaPipsMA25[kk]*Point ) and
((MonNbHour > MACD_HOURDELAY[kk] ) or (MonNbHour=9999)) and ((MonNbHourHistoBUY > MACD_HOURDELAY2[kk] ) or (MonNbHourHistoBUY=9999)) and
( (PaireMACD_D1Main[kk,1] >= MACD_LevelMinTotrade[kk]) or (PaireMACD_D1Main[kk,3] <= -MACD_LevelMinTotrade[kk]) ) then- Put Fixed lot parameter
- Spread Max to take trade for Buy and Close Trade for Sell
- New Param Stoch OBOS level instead of fix 10/90
- Option to use Filter Trade with Fractal ( false by default)
Time to bed for me...