logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
khaledalmousawi  
#1 Posted : Monday, July 20, 2015 3:34:16 PM(UTC)
khaledalmousawi

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 7/20/2015(UTC)
Posts: 1

hi 

i need help to convert amiproker afl to meatastock , please help me  

who can do it and convert it  , please 



this is afl amibroker formla

====================================================


SetChartBkGradientFill(1,23);
_SECTION_BEGIN("Finder");
 
ttttt2 = Ref(C,-1);
ttttt3=Ref(C,30);
trrrrr2 = MA(ttttt2,30);
trrrrr3=MA(ttttt3,30);
Sl1=((trrrrr3+trrrrr2)*trrrrr3)/200;
Plot(Sl1,"sl1",colorGold,styleLine+styleDots|styleThick);

ttttt4 = Ref(C,-7);
ttttt5=Ref(C,45);
trrrrr3 = MA(ttttt4,45);
trrrrr2=MA(ttttt5,45);
Sl2=((trrrrr2+trrrrr3)*trrrrr2)/200;
Plot(Sl2,"sl2",colorGreen,styleLine+styleDots|styleThick);
Plot(150,"",colorWhite,styleLine);
_SECTION_END()
;SetSortColumns(-2);


uy= nwbull=sl1 > 150 AND sl2 > 150 ; 
ell=nwbear=sl1 < 150 AND sl2 < 150 ;
uy = ExRem( uy, ell );
ell = ExRem( ell, uy );
PlotShapes(IIf(uy,shapeUpArrow,Null),colorGreen,0,150,-10); 
PlotShapes(IIf(ell,shapeDownArrow,Null),colorRed,0,150,-10); 


Edited by user Monday, July 20, 2015 3:35:54 PM(UTC)  | Reason: Not specified

henry1224  
#2 Posted : Saturday, July 25, 2015 10:11:26 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)

With the use of 2 Forward Ref( functions) , this will never plot on the most current day plotted, thus making it useless!

ttttt2:= Ref(C,-1);
ttttt3:=Ref(C,30);
trrrrr2:= Mov(ttttt2,30,S);
trrrrr3:=Mov(ttttt3,30,S);
Sl1:=((trrrrr3+trrrrr2)*trrrrr3)/200;

ttttt4:= Ref(C,-7);
ttttt5:=Ref(C,45);
trrrrr3:= Mov(ttttt4,45,S);
trrrrr2:=Mov(ttttt5,45,S);
Sl2:=((trrrrr2+trrrrr3)*trrrrr2)/200;


Signal:=If(sl1 > 150 AND sl2 > 150,1, 
If(sl1 < 150 AND sl2 < 150,-1,0));
Signal;

 

The most recent signal is 45 days behind the current bar

Edited by user Saturday, July 25, 2015 10:54:39 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.