PureBytes Links
Trading Reference Links
|
Nand,
Suppose you buy at cross(stochd(),30) and
you sell at cross(70,stochd()) and you want to
optimize days of stochd that give the best result.
You will test days from 10 to 18, step 1.
Paste in AA the
d1 = optimize( "%D days", 14, 10, 18, 1 );
buy = cross( stochd(d1),30);
sell = cross( 70,stochd(d1));
Select a certain stock, select all days and hit
optimize.
Dimitris Tsokakis
--- In amibroker@xxxx, nkishor@xxxx wrote:
> Can someone please post an example code
> needed to call optimization. I don't know
> how to work this new feature.
>
> nand
|