14

Against All Odds: Best Amibroker Exploration

Against all odds, written by Thierry HUITEL is based on Jim Varney’s work–CANDLESTOCHASTICS. This Amibroker Exploration is a scan for 24 different buy or sell signals that selects days when several bullish or bearish indicators are triggered at the same time. We have modified the original exploration AFL in order to add Buy/Sell signals. This exploration has high success probability as 24 indicators are tested simultaneously for confirmation. You can even add your own indicator in this system. The aim of the exploration is to find days when many bullish or bearish signs are triggered at the same time. If 5 indicators give a buy advice, it is more reliable than one. The symbols are sorted based on volume Index, which is the ratio of current day’s volume and 14 days average volume. The best signals are indicated when Volume Index is 2 or greater.

Please visit Trading Tuitions Academy to learn AFL coding and create your own Trading systems.

Below are the list of indicators used in this Amibroker Exploration:

PCL[up]: Piercing Line, “up” signifies Bullish.
MDS[up]: Morning Doji Star
BLE[up]: Bullish Engulfing
HAM[up]: Hammer
BRE[dn]: Bearish Engulfing, “dn” signifies Bearish.
DCC[dn]: Dark Cloud Cover
EDS[dn]: Evening Doji Star
TDREI[up] & [dn]: Tom DeMark’s Range Expansion Index
KUP[up] & [dn]: Keltner Bands -DIMITRIS TSOKAKIS
RSI[up] & [dn]: Relative Strength Index 14 periods
MFI[up] & [dn]: Money Flow Index
ST2[up] & [dn]: Stochastic Slow – Donald Dalley
DIV[up] & [dn]: % R divergence  -DIMITRIS TSOKAKIS
KST[up] & [dn]: MARTIN PRING’S KST MOMENTUM SYSTEM
COP[up]: Coppock Curve TJ
SMH[up] & [dn]: smash day pattern. DIMA
CHK[up] & [dn]: Chaikin Money Flow. Thierry Huitel

A “1” in the column signifies TRUE, a “0” indicates no signal.

Strategy Overview

Paramter Value
Preferred Timeframe Daily
Indicators Used 24 indicators as shown above
Buy Condition When there is Buy signal in 6 or more indicators.
Short Condition When there is Sell signal in 6 or more indicators.
Sell Condition When there is Sell signal in 4 or more indicators.
Cover Condition When there is Buy signal in 4 or more indicators.

Amibroker Exploration Code

Click here to download the AFL code for this exploration.

Amibroker Exploration Screenshot

Against All Odds

Against All Odds Exploration

Download more AFL codes for Amibroker Trading Systems at the below link:

https://tradingtuitions.com/category/categories/amibroker/trading-systems/

Disclaimer:

All the AFL’s posted in this section are for learning purpose. Trading Tuitions does not necessarily own these AFL’s and we don’t have any intellectual property rights on them. We might copy useful AFL’s from public forums and post it in this section in a presentable format. The intent is not to copy anybody’s work but to share knowledge. If you find any misleading or non-reproducible content then please inform us at support@tradingtuitions.com

Related Posts

14 Comments

    • Hi Deepi,

      Can you please let me know if you are facing any specific error?

  1. Hi Sir,

    This is Afl is working… But it mostly shows only Up arrow key .. Never seen any down arrow in any charts .

    Even dr reddy stock which felll badly . doesnt show any sell signal on the chart .

    Please clarify

  2. Please help. Using Amibroker version 6.19.
    Getting “Error 61. The number of format specifier(s) (%) does not match the number of arguments passed.” for the below line.

    _N(Title = StrFormat(“{{NAME}} {{-}} {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}”, O, H, L, C ));

    • try to use this string below 🙂
      SetChartOptions(0,chartShowArrows|chartShowDates);
      _N(Title = StrFormat(“{{NAME}} – {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}”, O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
      Plot( C, “Price”, colorWhite, styleCandle );

  3. Dear Admin,

    Its giving no results …probably any settings ?
    Like I run this on live market data
    Daily time frame
    Exploration

    Correct me if I am wrong or any settings to be changed

  4. /*CHAIKIN MONEY FLOW*/
    ICH = sum(((( C-L )-( H-C )) / ( H-L ))*V, 21 ) / sum(V,21);
    error is coming ,,division by zero.divisior arrary at [20] equal zero

    • Hi Raji,

      Can you verify your database once. I just checked and its working fine for me

Leave a Reply

Your email address will not be published.