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

Notification

Icon
Error

Options
Go to last post Go to first unread
writetoevv  
#1 Posted : Wednesday, July 20, 2016 10:10:41 AM(UTC)
writetoevv

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 10/30/2015(UTC)
Posts: 7

Could some one convert it to Metastock From Amibroker Q = Param( "% Change", 2, 0.1, 10, 0.1 ); Z = Zig( C , q ) ; HH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( z, q, 1 ) > Peak( Z, q, 2 ) ) ); LH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( Z, q, 1 ) < Peak( Z, q, 2 ) ) ); HL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) > Trough( Z, q, 2 ) ) ); LL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) < Trough( Z, q, 2 ) ) ); GraphXSpace = 5; dist = 0.5 * ATR( 20 ); for ( i = 0; i < BarCount; i++ ) { if ( HH[i] ) PlotText( "HH", i, H[ i ] + dist[i], colorYellow ); if ( LH[i] ) PlotText( "LH", i, H[ i ] + dist[i], colorYellow ); if ( HL[i] ) PlotText( "HL", i, L[ i ] - dist[i], colorPink ); if ( LL[i] ) PlotText( "LL", i, L[ i ] - dist[i], colorPink ); }
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.