Skip to main content

Oscillator composite for Amibroker (AFL)

aashish51 almost 14 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    trading system, amibroker, zig zag

Enjoy this indicator

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("zigExplorer");

//z_ZigZagValid
// ******** CHARTING 
PercentChange = Param("Zig1",1.50,0,5,0.05);

ZZ = Zig(H,LastValue(PercentChange)) ; 

//Plot ZigZag
//Plot(ZZ,"ZigZag", colorLightGrey,styleLine|styleThick|styleNoLabel);
//Plot(ZZ," ", BarColors,styleDots|styleNoLine);
//Plot(ROC(ZZ,1),"ZZ",colorRed,styleLine|styleOwnScale);
PivotLow = Ref(IIf(Ref(ROC(ZZ,1),-1) < 0 AND ROC(ZZ,1) > 0, 1, Null),1);
PivotHigh = Ref(IIf(Ref(ROC(ZZ,1),-1) > 0 AND ROC(ZZ,1) < 0, 1, Null),1);

/*
Buy_Valid = IIf(C>(1+(LastValue(PercentChange)/100))*(ValueWhen(PivotLow, C,1))
AND ROC(ZZ,1) > 0,1,0); 
Sell_Valid = IIf(C<(1-(LastValue(PercentChange)/100))*(ValueWhen(PivotHigh, C,1))
AND ROC(ZZ,1) < 0,1,0); 
*/

Buy_Valid = IIf(C>(1+(PercentChange/100))*(ValueWhen(PivotLow, C,1))
AND ROC(ZZ,1) > 0,1,0); 
Sell_Valid = IIf(C<(1-(PercentChange/100))*(ValueWhen(PivotHigh, C,1))
AND ROC(ZZ,1) < 0,1,0); 

Buy_Valid = ExRem(Buy_Valid,Sell_Valid);
Sell_Valid = ExRem(Sell_Valid,Buy_Valid);

//Plots the arrows
PlotShapes( shapeSmallUpTriangle*Buy_Valid, colorGreen,0, L, -12); 
PlotShapes( shapeSmallDownTriangle*Sell_Valid, colorRed,0,H, -12) ;





BarColors = 
IIf(BarsSince(Buy_Valid) < BarsSince(Sell_Valid) 
AND BarsSince(Buy_Valid)!=0, colorGreen,
IIf(BarsSince(Sell_Valid) < BarsSince(Buy_Valid)
AND BarsSince(Sell_Valid)!=0,  colorRed, colorBlue));

//Plot the Candlestick charts
Plot(C, "Close", BarColors,  styleCandle ) ; 


Title = Name() + " " + Date() + " Op=" + Open + " Hi=" + High + " Lo=" + Low + " C=" + Close + WriteIf(PivotLow, " Up Pivot
","")+WriteIf(PivotHigh," Down Pivot ","")+ WriteIf(Buy_Valid, " Buy Point ",
"") + WriteIf(Sell_Valid, " Sell Point ", "") ;
_SECTION_END();

15 comments

almost 14 years ago

DEAR ADMINISTRATOR,
I WANT TO KNOW WHY THIS FORMULA HAS NOT BEEN UPLOADED ON YOUR WEBSITE FOR OTHER MEMBERS AS THIS FORMULA IS TOTALLY ORIGINAL.

almost 14 years ago

Dear aashish51,
Am try to see the “Oscillator composite for Amibroker (AFL)”
but not opened..!
(am already contribute some AFL to this site)
pls. give me details about.. how to open ?!!!
thank u.

almost 14 years ago

Yes Admin Why This Afl Is Not Enable For Users Who Already Shared Afls To This Site

Can We Know ?

Thank You

almost 14 years ago

Mr. Admin it is the reason we r interested in if not the formula.
ur site ur rule….!

thanx.

almost 14 years ago

Almost 100% the same formula as http://www.wisestocktrader.com/indicators/881-zig-zag-indicator-with-valid-entry-and-exit-points

I don’t think this site needs more Zig Zag trading system formulas.

almost 14 years ago

thanx….! admin for ur kind reply.

And really no more Zig-Zag plz….

almost 14 years ago

This formula is totally different form (http://www.wisestocktrader.com/indicators/881) and it does not look into future. kindly recheck it.

almost 14 years ago

Sir, Plz open this formula. I and also many other interested this formula. I search but this formula not in u r website.

11. kv_maligi
almost 14 years ago

Dear Admin,

Why do not you open this as the creator aashish51 is telling that its different from whats referred.

I believe, as you said, it is referring to future in one or otherway as you are more knowledgable & good decision maker.

Lets traders decide on their own & your help in contributing tradres is always appeciated.

My best regards,
Viswanath

almost 14 years ago

Dear Admin, still the above formula not approved..
am try to use, but end result failed…
need ur help. thx

almost 14 years ago

Dear aashish,
thank u for ur indicator, which time frame is best one for this ?
waiting for ur reply. thank u.

Leave Comment

Please login here to leave a comment.