Dear All
I have the following doubt regarding Amibroker exploration/scan.
Where the parameters can be modified from the parameter window, how does the exploration/scan work on the modified parameters?
The Chart changes to reflect the change ,but how do we modify the exploration/scan to reflect what parameters we want?
In such a case does the exploration use the min values defined in the code to give the results.
A sample code indicating this.
How can we explore the above code to get Buy/Sell for a crossover of 20/50 MA and another for 50/100,etc
I have the following doubt regarding Amibroker exploration/scan.
Where the parameters can be modified from the parameter window, how does the exploration/scan work on the modified parameters?
The Chart changes to reflect the change ,but how do we modify the exploration/scan to reflect what parameters we want?
In such a case does the exploration use the min values defined in the code to give the results.
A sample code indicating this.
Code:
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
MAHighPeriod=Param("MA High Period",5,5,150,1);
MALowPeriod=Param("MA Low Period",20,5,150,1);
Price=Close;
MAHigh=MA(Close,MAHighPeriod); // Replace MA with EMA if you want Exponential MA
MALow=MA(Close,MALowPeriod); // MA with EMA for exponential
Plot(MAHigh,"MA-High", colorRed,styleLine,styleThick);
Plot(MALow,"MA-Low", colorGreen,styleLine,styleThick);
Buy = Cross(Price,MAHigh);
Sell = Cross(MALow,Price);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,Graph0);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1);