Ichi is a visual tool. not good for scan. If you want to scan for a stock in a good uptrend, scan for stock that has its rsi-21 above 50, adx is above 30 and rising, macd is greater than the signal line. Now observe the stock that the scan throw up in ichi and see if it is trading above the cloud. Then just buy with a stop loss at the kujoun line...
select 5 stocks, 2 might hit sL but the other 3 will give good profit. EOD, you'll be smiling...
Hi,
Linkon Da,
I am a novice in computers and its' languages.
With pure commonsense, trial and error I have tried to write a code (afl) for exploration on the basis of your above in-puts.
Will you please check it for its correctness and suggest modifications if any ?
Hi, tulika,
Hi, Minitrader,
Please help me in this matter. So far you supported me to reach up to this stage.
Comments from other Seniors very much required for the benifit of all
AFL goes like this
--------------------------------------------------------------------------
//-----------EXPLORE-ICHI--for BUY ONLY---------
_SECTION_BEGIN("ADX");
range = Param("Periods", 15, 2, 200, 1 );
Plot( ADX(range), _DEFAULT_NAME(), ParamColor( "ADX color", colorBlue ), ParamStyle("ADX style", styleThick ) );
Plot( PDI(range), "+DI", ParamColor( "+DI color", colorGreen ), ParamStyle("+DI style") );
Plot( MDI(range), "-DI", ParamColor( "-DI color", colorRed ), ParamStyle("-DI style") );
_SECTION_END();
_SECTION_BEGIN("MACD");
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), ParamColor("MACD color", colorCustom11 ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
_SECTION_END();
_SECTION_BEGIN("RSI");
SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 21, 1, 200, 1 );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorYellow ), ParamStyle("Style") );
//--------------EXPLORE-------------------
Buy = ADX(15) > 30 //---condition 1-ADX for 15 period is above 30
AND
ADX(15) > Ref(ADX(15),-1)//-- and ADX is rising
AND
RSI(21)> 50 //--condition 2-RSI for 21 period is above 50
AND
RSI(21) > Ref(RSI(21),-1)//--and RSI is rising
AND
MACD(12,26) > r3 AND MACD(12,26) > Ref(MACD(12,26),-1); /*--condition 3-MACD the difference between 26 period EMA (slow) AND 12 period EMA (fast) is
greater than the Signal line 9 period EMA = MACD(12,26) > r3 AND rising =MACD(12,26) > Ref(MACD(12,26),-1)*/
Filter = Buy;
AddColumn(IIf(Buy,66, 0),"ACTION REQUIRED", formatChar, colorWhite, bkcolor =IIf(Buy, colorGreen,colorDefault));
_SECTION_END();
--------------------------------------------------------------------------