Skip to main content

Asish's Stop Loss for Amibroker (AFL)

anjan almost 16 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    amibroker, stop loss

This is simple afl which indicates the where stop loss should after taking position.This also can be used to trail the stop loss following the signal line

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Stop Loss");
a=.0174532;
S1=sin(1*a)*C;
S2=sin(2*a)*Ref(C,-1);
S3=sin(3*a)*Ref(C,-2);
S4=sin(4*a)*Ref(C,-3);
S5=sin(5*a)*Ref(C,-4);
Num=S1+S2+S3+S4+S5;
Den=sin(a)+sin(2*a)+sin(3*a)+sin(4*a)+sin(5*a);
j1= Num/Den;
Plot(j1,"Stop Loss",ParamColor( "Color",13 ), styleLine | styleThick );
_SECTION_END();

1 comments

almost 16 years ago

this is sine weighted moving average taken from metastock.it has been made by , i think jose silva in metastock forums

Leave Comment

Please login here to leave a comment.