May this code help you ?
I don't know how to plot the MA200 part under the last top (in your
example).
Best regards
// test Max Min VisibleBar
// by reinsley
lineshift = Param( "shift", 10, -20, 100, 1 );
function GetVisibleBarCount()
{
lvb = Status( "lastvisiblebar" );
fvb = Status( "firstvisiblebar" );
return Min( Lvb - fvb, BarCount - fvb );
}
VisibleBars = GetVisibleBarCount();
//_TRACE( "VisibleBars = " + VisibleBars );
yHHTOP = HHV( H, VisibleBars ) ;
yLLBOT = LLV( L, VisibleBars ) ;
//_TRACE( "yHHTOP = " + yHHTOP );
//_TRACE( "yLLBOT = " + yLLBOT );
expandline = yHHTOP + lineshift ;
//_TRACE( "LVexpandline = " + LastValue( expandline ) );
if ( LastValue( expandline ) > LastValue( yHHTOP ) )
{
Plot( C, "Price", colorBlack, styleBar );
// Plot( yHHTOP + lineshift , "Lineup", colorYellow, styleLine);
}
else
{
Plot( C, "Price", colorBlack, styleCandle );
Plot( yHHTOP + lineshift , "Lineup", colorBlack, styleLine );
}
/*
The following as a caveat : in the same pane, other plottings have a
floating scale because of styleOwnScale
//Plot( C, "Price", colorBlack, styleCandle | styleOwnScale, minvalue =
yLLBOT , maxvalue = yHHTOP , 0 );
//Plot( C, "Price", colorBlack, styleCandle | styleOwnScale, 3620 , 3860
, 0 );
*/
Yves a écrit :
>
> [Attachment(s) <#TopText> from Yves included below]
>
> I have a big problem with the MA200
>
> I'm like a graph with MA20, 50, 100 and 200, but
>
> When Amibroker(AB) plot the MA200
>
> The MA200 use 50% of the graph and I can't see the candlestick(look BAD
> MA200.gif with it)
>
> How plot the MA200 differently ?
>
>
> Merci
>
> YLTech ( Yves L. )
>
> Le présent message et les documents qui y sont joints sont réservés
> exclusivement au destinataire indiqué. Il est strictement interdit d'en
> utiliser ou d'en divulguer le contenu. Si vous recevez le présent
> message par erreur, veuillez le détruire S.V.P. et nous en aviser
> immédiatement afin que nous puissions corriger nos dossiers. Merci.
>
> This message and the attached documents may contain privileged or
> confidential information that are intended to the addressee only. Any
> unauthorized disclosure is strictly prohibited. If you happen to receive
> this message by error, please delete it and notify us immediately so
> that we may correct our internal records. Thank you.
>
> [email protected] <mailto:[email protected]>
>