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)
EliStern
about 13 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
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 about 13 years ago
Kase Peak Osc. V2 batu
Submitted by batu1453 over 9 years ago
Kase CD V2batu
Submitted by batu1453 over 9 years ago
Ichimoku
Submitted by prashantrdx over 9 years ago
EMA System Ribbon
Submitted by yo123 about 13 years ago
LANDIS Modified
Submitted by isfandi about 13 years ago

Indicator / Formula

Copy & Paste Friendly
SetTradeDelays( 1,1,1, 1 );
SetOption( "InitialEquity", 200000);
SetOption("FuturesMode" ,True);
SetOption("MinShares",1);
SetOption("CommissionMode",2);
SetOption("CommissionAmount",100);
SetOption("AccountMargin",10);
SetOption("RefreshWhenCompleted",True);
SetPositionSize(150,spsShares);
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 );

0 comments

Leave Comment

Please login here to leave a comment.

Back