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

Three-Bar Inside Bar Pattern for Amibroker (AFL)
almost 12 years ago
Amibroker (AFL)

5 / 5 (Votes 1)
trading system, amibroker

In ‘Three-Bar Inside Bar Pattern’ in this issue, author Johnan Prathap presents a simple trading system based on short-term candlestick patterns. Coding this system in AmiBroker Formula Language is straightforward. A ready-to-use formula for the article is shown below. To use the formula, enter it in the Afl Editor, then press the ‘Send to automatic analysis’ button. In Automatic Analysis, press the ‘Backtest’ button to perform a historical system test. Note that the formula has parameters set for the CL (crude oil) contract. You may need to modify them for testing different instruments.

Similar Indicators / Formulas

weighted moving average scan
Submitted by naninn almost 12 years ago
Kase Peak Osc. V2 batu
Submitted by batu1453 over 8 years ago
Kase CD V2batu
Submitted by batu1453 over 8 years ago
Submitted by prashantrdx over 8 years ago
EMA System Ribbon
Submitted by yo123 almost 12 years ago
LANDIS Modified
Submitted by isfandi almost 12 years ago

Indicator / Formula

Copy & Paste Friendly
SetTradeDelays( 1,1,1, 1 );
SetOption( "InitialEquity", 200000);
SetOption("FuturesMode" ,True);
SetOption( "AllowPositionShrinking", True );

Cond1 = Close > Ref( Close, -1 ); 
Cond2 = High < Ref( High, -1 ) AND Low > Ref( Low, -1 ); 
Cond3 = Close < Ref( Close, -1 ); 

Buy = Cond1 AND Ref( Cond2, -1 ) AND Ref( Cond1, -2 ); 
Short = Cond3 AND Ref( Cond2, -1 ) AND Ref( Cond3, -2 ); 

BuyPrice = ShortPrice = Open; 

Sell = Cover = False; // exits only by stops 

ApplyStop( stopTypeLoss, stopModePercent, 0.75, True ); 
ApplyStop( stopTypeProfit, stopModePercent, 6.5, True ); 

SetOption("ActivateStopsImmediately", False );


Leave Comment

Please login here to leave a comment.