Ichimoku with Alligator and oscillators Strategy

Strategies are published here.

Moderator: admin

Ichimoku with Alligator and oscillators Strategy

Postby Apprentice » Thu Jan 25, 2018 3:12 pm

1.png

Based on the request.
viewtopic.php?f=27&t=65674&p=117266#p117266

Open Long
AO> 0
AC> 0
1. Alligator Lips cross and is above 2. Alligator Lips
Tenkan-sen curve cross and is above Kijun-sen

Exit Long
Stop when ONE of these conditions appears
AO <0
1. Alligator Lips cross and is below 2. Alligator Lips
Tenkan-sen curve is below Kijun-sen

Vice versa for Short

User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Ichimoku with Alligator and oscillators Strategy

Postby Utawafr » Fri Jan 26, 2018 12:21 pm

Hello,
Thank you for this code, but doing the backtest I realize that it does not respect all the orders that I would like it to apply.
Indeed, as you can see in the screenshot attached, there is for example a situation where all conditions were met to make a sell order. I may have misrepresented previously, but the order does not have to be done only when all the conditions arrive at the same time, but rather that the order is done when all the conditions are met, that is a small nuance I think that has its importance suddenly ...
With this baktest I could see that there are many opportunities that have not been seized ...
Can you update this code please?
thank you in advance
cordially
Attachments
Exemple.png
Utawafr
 
Posts: 15
Joined: Thu Jun 02, 2016 8:31 am

Re: Ichimoku with Alligator and oscillators Strategy

Postby Apprentice » Fri Jan 26, 2018 1:35 pm

Can you review entry order code?
Code: Select all
  if   Alligator1.Lips[period+LipsS1] > Alligator2.Lips[period+LipsS2]
   and Alligator1.Lips[period+LipsS1-1] <= Alligator2.Lips[period+LipsS2-1]
   and  AC.DATA[period]>0
   and  AO.DATA[period]>0
   and  ICH.SL[period]> ICH.TL[period]
   and  ICH.SL[period-1]<= ICH.TL[period-1]
   then   
          --Open Long
    elseif Alligator1.Lips[period+LipsS1] < Alligator2.Lips[period+LipsS2]
   and Alligator1.Lips[period+LipsS1-1] >= Alligator2.Lips[period+LipsS2-1]
   and  AC.DATA[period]<0
   and  AO.DATA[period]<0
   and    ICH.SL[period]< ICH.TL[period]
   and  ICH.SL[period-1]>= ICH.TL[period-1]
      then
       --Open Short   
    end
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Ichimoku with Alligator and oscillators Strategy

Postby Utawafr » Mon Jan 29, 2018 11:21 am

Hello,
Yes it's the good traduction of my demand, and it's why i don't understand why sometimes we haven't order of buy or sell with the backtest like you can see on the screenshot before ! I don't know what to do think about this and what we must improve for respect my strategy ! Help me please ;)
Utawafr
 
Posts: 15
Joined: Thu Jun 02, 2016 8:31 am


Return to Custom Strategies

Who is online

Users browsing this forum: Google [Bot] and 21 guests