any ideas?
--- In [email protected], "murthysuresh" <mo...@...> wrote:
>
> i have my trading strategy on the coded in afl. i want to use the same file 
> for indicator and scans and backtesting.
> 
> can i do it as a include file
> for eg
> INDICATOR=1;
> 
> 
> if(status("action")==INDICATOR)
> #include <magicformula.afl>
> plot(buy)
> plot(short)
> 
> else
> if(status("action")==backtester)
> TimeFrameSet( inDaily) ;
> #include <magicformula.afl>
> TimeFrameRestore();
> Buy=TimeFrameExpand(Buy_signal,inDaily,expandFirst);
> process signals.
>


Reply via email to