non repainting afl thread...

casoni

Well-Known Member
#11
Hello ,
in any formula where you find
ref( C, 12 )

functions
Zig
Peak
Trough
PeakBars
TroughBars


all this looks into future.
it is not possible to post the list of formulas which looks into futures.
as there are many on net
best way is to check formula, >
[1 ]after applying formula > edit formula > Analysis > check ..
[2] read formula and check whether the formula uses any thing described above [ in dark red color text ]
thank you
 
#12
As per my exp i want to suggest some suggestion for new comers.

1. its not possible to make good money by following any afl or sws.

2. These sws can take as support only for ur analysis.

3. never take positions without hedging.

4. Ur emotions is big matter in trading.

5. Dont follow any analyst, sw, tipsprovider blindly.

6. imp point: never average when trend is against you.( or by guessing game)

7. never enter in any stocks cos its in low or in high prices.

8. you can play other games.. but you have to play after getting good exp and good profits.

9. dont search again and again for 90% accuracy afl or sw or tips provider.

10. lot of people lost money without following above points.

11. different people play different games. you have to choose whoich is suitable game for u.

12. dont love or hate any stocks or scripts.

more points there........... still continue
will add some more points when i have time.. or anyone can continue to my points.
 

casoni

Well-Known Member
#13
Hello ,
all functions which looks into future are not bad , they are good
if used properly
here's the example

http://i.imgur.com/emu4eqE.png

black bar indicates peak is confirmed
Yellow bar indicates trough is confirmed

HTML:
ch=Param("% change",0.25,0.25,2,0.01);
zz=Zig(C,Ch);
az=C;
Plot(ZZ," ", 2,32|styleNoLabel);

Buy_valid=Sell_valid=0;
percentchange=Optimize("Pk-Tr Conf %",Param("P-T Conf %",0.5,0.3,4,0.1),0.3,4,0.1);
PivotHigh = Ref(IIf(Ref(ROC(ZZ,1),-1) > 0 AND ROC(ZZ,1) < 0, 1, 0),1);
PivotLow = Ref(IIf(Ref(ROC(ZZ,1),-1) < 0 AND ROC(ZZ,1) > 0, 1, 0),1);
Buy_Valid = IIf(az>(1+(LastValue(PercentChange)/100))*(ValueWhen(PivotLow, az, 1)) AND ROC(ZZ,1) > 0,1,0); 
Sell_Valid = IIf(az<(1-(LastValue(PercentChange)/100))*(ValueWhen(PivotHigh, az, 1)) AND ROC(ZZ,1) < 0,1,0); 
Buy_Valid = ExRem(Buy_Valid,Sell_Valid);
Sell_Valid = ExRem(Sell_Valid,Buy_Valid);
Candlecol=IIf(BarsSince(Buy_Valid)<BarsSince(Sell_Valid) AND BarsSince(Buy_Valid)!=0,5,
          IIf(BarsSince(Buy_Valid)>BarsSince(Sell_Valid) AND BarsSince(Sell_Valid)!=0,4,1));
cc1=IIf(Buy_valid,colorYellow,IIf(Sell_valid,colorBlack,Candlecol));
SetBarFillColor(Cc1);
Plot(C,"cas-zig-VW_Pri [ "+ch+" ]",cc1,64,0,0,0,0);
pk=Zz>Ref(zz,-1);
tr=Zz<Ref(zz,-1);
z=Cum(1);
BLa =  ValueWhen( pk, z, 1);
BLb =  ValueWhen( pk,High, 1 );
SLa =  ValueWhen( tr, z, 1 );
SLb =  ValueWhen( tr, Low, 1 );
Plot(IIf(z>BLa,BLb,Null),"",31,1);
Plot(IIf(z>SLa,SLb,Null),"",31,1);
strWeekday = StrMid("SunMonTueWedThuFriSat", SelectedValue(DayOfWeek())*3,3);
Title = EncodeColor(colorWhite)+ "Valid Zz  : " + EncodeColor(colorTan)+
"[ Zig %  "+ch+" ]" +"   "+ "[ Pk-Tr Conf %  "+percentchange+" ]"+ EncodeColor(colorGold)+
"\n"+  Name() + " - " + EncodeColor(colorAqua)+ Interval(2) + EncodeColor(colorWhite) + 
"  #"+strWeekday +"  , "+ Date()+ "\n" +EncodeColor(colorYellow) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+ 
"Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+"\n"+
EncodeColor(colorPaleGreen)+WriteIf(Buy_valid, "Bottom confirmed :"+(SLb),"")+
EncodeColor(colorLightOrange)+WriteIf(Sell_valid, "Peak confirmed :"+(BLb),"");

GfxSetOverlayMode(0);GfxSetTextColor(10); 
GfxSelectFont("Old English Text MT", 12, 300, False, False, 0); 
GfxTextOut("  Casoni ", Status("pxwidth")-60 , Status("pxheight")-20 );
 

hir0406

Active Member
#14
Hello ,
all functions which looks into future are not bad , they are good
if used properly
here's the example

http://i.imgur.com/emu4eqE.png

black bar indicates peak is confirmed
Yellow bar indicates trough is confirmed

HTML:
ch=Param("% change",0.25,0.25,2,0.01);
zz=Zig(C,Ch);
az=C;
Plot(ZZ," ", 2,32|styleNoLabel);

Buy_valid=Sell_valid=0;
percentchange=Optimize("Pk-Tr Conf %",Param("P-T Conf %",0.5,0.3,4,0.1),0.3,4,0.1);
PivotHigh = Ref(IIf(Ref(ROC(ZZ,1),-1) > 0 AND ROC(ZZ,1) < 0, 1, 0),1);
PivotLow = Ref(IIf(Ref(ROC(ZZ,1),-1) < 0 AND ROC(ZZ,1) > 0, 1, 0),1);
Buy_Valid = IIf(az>(1+(LastValue(PercentChange)/100))*(ValueWhen(PivotLow, az, 1)) AND ROC(ZZ,1) > 0,1,0); 
Sell_Valid = IIf(az<(1-(LastValue(PercentChange)/100))*(ValueWhen(PivotHigh, az, 1)) AND ROC(ZZ,1) < 0,1,0); 
Buy_Valid = ExRem(Buy_Valid,Sell_Valid);
Sell_Valid = ExRem(Sell_Valid,Buy_Valid);
Candlecol=IIf(BarsSince(Buy_Valid)<BarsSince(Sell_Valid) AND BarsSince(Buy_Valid)!=0,5,
          IIf(BarsSince(Buy_Valid)>BarsSince(Sell_Valid) AND BarsSince(Sell_Valid)!=0,4,1));
cc1=IIf(Buy_valid,colorYellow,IIf(Sell_valid,colorBlack,Candlecol));
SetBarFillColor(Cc1);
Plot(C,"cas-zig-VW_Pri [ "+ch+" ]",cc1,64,0,0,0,0);
pk=Zz>Ref(zz,-1);
tr=Zz<Ref(zz,-1);
z=Cum(1);
BLa =  ValueWhen( pk, z, 1);
BLb =  ValueWhen( pk,High, 1 );
SLa =  ValueWhen( tr, z, 1 );
SLb =  ValueWhen( tr, Low, 1 );
Plot(IIf(z>BLa,BLb,Null),"",31,1);
Plot(IIf(z>SLa,SLb,Null),"",31,1);
strWeekday = StrMid("SunMonTueWedThuFriSat", SelectedValue(DayOfWeek())*3,3);
Title = EncodeColor(colorWhite)+ "Valid Zz  : " + EncodeColor(colorTan)+
"[ Zig %  "+ch+" ]" +"   "+ "[ Pk-Tr Conf %  "+percentchange+" ]"+ EncodeColor(colorGold)+
"\n"+  Name() + " - " + EncodeColor(colorAqua)+ Interval(2) + EncodeColor(colorWhite) + 
"  #"+strWeekday +"  , "+ Date()+ "\n" +EncodeColor(colorYellow) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+ 
"Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+"\n"+
EncodeColor(colorPaleGreen)+WriteIf(Buy_valid, "Bottom confirmed :"+(SLb),"")+
EncodeColor(colorLightOrange)+WriteIf(Sell_valid, "Peak confirmed :"+(BLb),"");

GfxSetOverlayMode(0);GfxSetTextColor(10); 
GfxSelectFont("Old English Text MT", 12, 300, False, False, 0); 
GfxTextOut("  Casoni ", Status("pxwidth")-60 , Status("pxheight")-20 );
dose this repaint ?
 
#16
Yes. it will repaint.
Because you are using Window. Underlying, it had to call the WM_PAINT command to refresh the screen periodically in microsecond.
Your eye cannot handle that fast, so you could not feel the re-paint. :D
:lol: good one . . .
 

mastermind007

Well-Known Member
#17
Its better to ask.. post only above 95% accuracy afls. khel katham.......

:clap::clapping::clap::clapping::clap::clapping:
Madhav

How much time and energy do you think would be required to write 95% accurate AFL?