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

V4.NIRMAL INDICATOR for Amibroker (AFL)

Rating:
3 / 5 (Votes 3)
Tags:
amibroker, future, zig zag

NIRMAL INDICATOR V3 IS MODIFIED FOR THOSE WHO WANTED BEST BACK TEST RESULTS. I HAD TO TAKE HELP FROM ZIGZAG FOR BEST BACK TEST RESULTS. PLEASE CHECK AND RATE IT. PLEASE LEAVE YOUR COMMENTS.

Screenshots

Similar Indicators / Formulas

Buy Sell Nifty ver 2
Submitted by ajeet over 12 years ago
Valid ZZ
Submitted by casoni over 11 years ago
Zig Zag with valid entry and exit points
Submitted by mada8181 over 14 years ago
NAKSHATRA MODIFIED
Submitted by vinay over 12 years ago
Oscillator composite
Submitted by aashish51 over 12 years ago

Indicator / Formula

Copy & Paste Friendly
MYVOL= IIf(((V-EMA(V,7))/EMA(V,7))*100>10,0,1);
VOLPERCENT=((V-EMA(V,7))/EMA(V,7))*100;
MYGAPUP=IIf(O>Ref(C,-1) AND O>Ref(O,-1) AND C>O AND ((C-Ref(C,-1))/Ref(C,-1))*100>1,1,0);
MYVALUE=IIf(MYGAPUP==1 AND Ref(MYGAPUP,-1)==1,1,0);
HPLUSL=EMA((H+L)/2,3);
OPLUSC=EMA((O+C)/2,3);
RSIM=(RSI(7)-Ref(RSI(7),-1))/Ref(RSI(7),-1);

P = ParamField( "Price field" );
change = Param("% change",5,0.1,25,0.1);
Plot( Zig(P, change), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
Buy=(Zig(p,Change)>Ref(Zig(p,Change),-1) AND Ref(Zig(p,Change),-1)<Ref(Zig(p,Change),-2)AND ((C-Ref(C,-1))/Ref(C,-1))*100<=6 AND MFI(7)>=HHV(MFI(7),3))OR(Zig(p,Change)>Ref(Zig(p,Change),-1) AND Ref(Zig(p,Change),-2)<Ref(Zig(p,Change),-3)AND ((C-Ref(C,-1))/Ref(C,-1))*100<=6 AND MFI(7)>=HHV(MFI(7),3));

Sell=Zig(p,Change)<Ref(Zig(p,Change),-1) AND Ref(Zig(p,Change),-1)>Ref(Zig(p,Change),-2);










shapebuy=Buy*shapeUpArrow;
shapesell=Sell*shapeDownArrow;

color=IIf(Buy,colorGreen,IIf(C>Ref(C,-1),colorGreen,IIf(Sell,colorRed,colorBlack)));
Plot(Close,"close",Color,styleCandle);
PlotShapes(shapebuy,colorGreen,0,Low,Offset=-15);

VOLBUY=Buy AND VOLPERCENT>=20;

shapevol=VOLBUY*shapeUpTriangle;

VOLSELL=Sell AND VOLPERCENT>-20;

shapevolsell=VOLSELL*shapeDownTriangle;



AlertIf( shapevol, "", "BUY @ " + C, 1 );
PlotShapes(shapevol,colorBlue,0,Low,Offset=-25);
PlotShapes(shapesell,colorRed,0,High,Offset=-15);
PlotShapes(shapevolsell,colorOrange,0,High,Offset=-25);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"**********NIRMAL INDICATOR V4********" +EncodeColor( colorRed )
+ " OPEN.... " + O + "... HIGH... " + H + "... LOW... " + L + " ...CLOSE.... "+ C + "...VOLUME INC. %..." + ((V-EMA(V,7))/EMA(V,7))*100 + "\n";

12 comments

1. ocil

Never Use ZigZag. i will give you indicator with ZIGZAG 100% profit no loss then what is the use of that backtest?

2. chatpurpose

buy logic doesnt depend only on zigzag. proper care is however taken
to give correct buy signals only. kindly check. however your suggestion
shall be taken positively.

3. r.siva79

looks in to the future quotes, no use of this indicator while backtesting it gives outstanding results this is not good for trading

4. chatpurpose

ok..i stopped using zigzag since then.I am still learning…expert afl writers if any
kindly clarify….
I checked for bar code replay, there was no repainting of buy, sell signals.
scanned for today. It is giving results. Then, what exactly is “looks into future”,
and how my afl code is affected. I still feel, i only had taken some help from zigzag,but not used zigzag directly for generating signals.
This is a great learning experience here in this website. Thanks to admin for
providing such a wonderful platform.

5. chatpurpose

Admin, please clarify. Waited for clarification from others, but nobody has
come forward. Your clarification shall be a big learning for me.

6. administrator

Bar replay would be the correct way to find out. If signals don’t change I think it would be safe.

7. chatpurpose

This clarification boosted my confidence levels. Thanks a lot admin for the clarification.

8. administrator

Just a warning that sell signal looks like it is definitely future looking.

9. chatpurpose

yes sir…I checked with more scrips and found very very few instances of repainting.
I shall try to repair the code. Thanks a lot.
Earned 7 % yesterday and 3 % today. Logic I followed. scan for buy signals using
this NIRMAL V4. Select a few. check them with SARVANI.V5 AND GUPPY ULTIMATE, before
buying.

10. chatpurpose

Hi..repair of the code is complete.
the link….
http://www.wisestocktrader.com/indicatorpasties/758-v4-nirmal-indcator-modified

now, the sell signal should not repaint. Buy signal is further strengthened so
that rare possibility of repaint if any is removed. However, I still advise
to check the scanned stocks with any of your favourite afl. I check with
SARVANI.V5 AND GUPPUY ULTIMATE.

What I have learnt is that ZIG ZAG CAN DEFINITELY BE USED CAREFULLY BY TAKING
SUPPORT OF OTHER INDICATORS.

11. Mehmudd

Hi Chatpurpose,

I tried using this afl, its not throwing any error but at the same time, its not showing anything except some horizontal line. If you can please give your mail id, I would like to send the screen shot. My id is altaf.cloud9@gmail.com. I’m using Ami5.6 version.

I like zig-zag based indicators very much as I use BB for my trade. Blend of both works better for me.

Your reply is much awaited….

12. STOCKSTOPP

how to remove zz based repainting?

Leave Comment

Please login here to leave a comment.

Back