Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Three-Bar Inside Bar Pattern for Amibroker (AFL)
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
Indicator / Formula
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