[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Using Letter instead of shapes over the chart.



PureBytes Links

Trading Reference Links

You would use the PlotText function, I got this code from the PlotText 
example and
slightly modified it:

Plot(MA(C,20),"MA20", colorRed );

Buy=Cross( C, MA(C,20 ) );
Sell= Cross( MA( C, 20 ), C );

dist = 1.5*ATR(10);

for( i = 0; i < BarCount; i++ )
{
if( Buy[i] ) PlotText( "M" , i, L[ i ]-dist[i], colorGreen );
if( Sell[i] ) PlotText( "M", i, H[ i ]+dist[i], colorRed, colorYellow );
}

PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, 
colorGreen, colorRed ) );





softnews2003 wrote:
>
> Hi,
>
> Is it passable to use letter's instead of shapes in cross. For 
> example: when MACD cross signal we use green "*M*" letter instead of 
> green shapeUpArrow, and when signal cross MACD we use red "*M*" letter 
> instead of red shapeDownArrow.
>
> This can help to easily identify more than one shape over the chart.
>
> If it passable please helps at least with cross MACD.
>
> With the best Regards,
>
> 
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007 7:47 PM
>   


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007 7:47 PM