Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

SPSO - Standard Particle Swarm Optimizer for Amibroker (AFL)
almost 5 years ago
Amibroker (AFL)

3 / 5 (Votes 2)
amibroker, optimize

Standard Particle Swarm Optimizer is based on SPSO2007 code that is supposed to produce good results provided that correct parameters (i.e. Runs, MaxEval) are provided for particular problem.

Picking correct options for the PSO optimizer can be tricky therefore results may significantly vary from case to case.

Indicator / Formula

Copy & Paste Friendly
// finding optimum value in 1000 tests within search space of 10000 combinations

OptimizerSetOption("Runs", 1 );
OptimizerSetOption("MaxEval", 1000 );

sl = Optimize("s", 26, 1, 100, 1 );
fa = Optimize("f", 12, 1, 100, 1 );

Buy = Cross( MACD( fa, sl ), 0 );
Sell = Cross( 0, MACD( fa, sl ) );


Leave Comment

Please login here to leave a comment.