Jump to content

İchimoku Strategy Convert Metastock to Amibroker AFL


epictetus

Recommended Posts

Hello guys, I'm trying to switch from the metastock program to Amibroker completely. Metastock has an Ichimoku based strategy that I use. I have had very effective results on weekly charts as an example, especially in long time frames. Can anyone translate this search formula into AFL? It would be really cool!

 

Metastock Formula:

 

COL A : If((C<SenkouSpanA(26,52,26) AND C<SenkouSpanB(26,52)) OR (C>SenkouSpanA(26,52,26) AND C<SenkouSpanB(26,52)) OR (C<SenkouSpanA(26,52,26) AND C>SenkouSpanB(26,52)),1,0)

 

COL B : If(C>KijunSen(26) AND Ref(ChikouSpan(26),-26)>Ref(C,-26),1,0)

 

COL C : If(Cross(Ref(ChikouSpan(26),-26),Ref(C,-26)),3,If(Cross(Ref(C,-26),Ref(ChikouSpan(26),-26)),2,If(Ref(ChikouSpan(26),-26)>Ref(C,-26),4,1)))

 

COL D : ValueWhen(1,Cross(Ref(ChikouSpan(26),-26),Ref(C,-26)),C)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...