sometimes I use this but I never check if it's really useful
I mean: if I put inside the {} only plot or plotshape or title calls like
if ( Status( "action" ) == 1 )
{
_N( Title = StrFormat( "{{NAME}} - " + FullName() + " -{{INTERVAL}}
{{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol "
+ WriteVal( V, 1.0 ) + " " + " {{VALUES}}", O, H, L,
C, SelectedValue( ROC( C, 1 ) ) ) );
Plot( C, "Close", colorBlack, styleNoTitle |
LastValue( IIf( LastValue( L ) == LastValue( H ) AND LastValue( C )
== LastValue( O ), styleDots, styleCandle ) )/*GetPriceStyle()*/ );
Plot ( MA( C, Veloce ) , "Veloce", colorRed, styleLine );
Plot ( MA( C, Lenta ), "Lenta", colorBlack, styleDashed | styleLine );
}
I really speed up the backtest or AB, during a backtest, already ignores Plot
and similar calls?
did you do a test?
Tomasz, are you reading?
it's sure that putting inside {} all the calculations needed for plot is
useful, mu doubt if it is useful to do it also with functions that are used
only for plotting pourposes
thanks
Bisto
--- In [email protected], "j0etr4der" <j0etr4...@...> wrote:
>
> If you mean backtest or optimization speed then this could help...
>
> if ( Status( "action" ) == actionIndicator )
> {
> Plot(Foreign("ZZZZ", "Close")/Foreign(XYZ", "Close"), "ZZZZ/ZYX Ratio",
> colorGreen);
> //all of your plots, plotshapes and calculations specific to plotting...
> .
> .
> .
> }
>
>
> --- In [email protected], "potatosoupz" <potatosoupz@> wrote:
> >
> > Plot(Foreign("ZZZZ", "Close")/Foreign(XYZ", "Close"), "ZZZZ/ZYX Ratio",
> > colorGreen);
> >
> > I have a few of these and they seem to be slowing down the whole app. Is
> > that possible?
> >
>