Held needed in AFL plz..for Josh or kelvin or any other

#2
We get all kinds of strange requests for coding, but some of them are just . . . hilarious . . . in an enjoyable way . . .

took a few minutes to code but enjoyed it thoroughly . . . hope it is useful for you . . . but hopefully this was what you wanted in the first place . . . . :D


Code:
_SECTION_BEGIN("THE INSIDE GANG :) ");
//Warning: Forward Looking Code
I1 = H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1);
I2 = H > Ref(HHV(H,2),2) AND L < Ref(LLV(L,2),2);
I3 = H > Ref(HHV(H,3),3) AND L < Ref(LLV(L,3),3);
I4 = H > Ref(HHV(H,4),4) AND L < Ref(LLV(L,4),4);
I5 = H > Ref(HHV(H,5),5) AND L < Ref(LLV(L,5),5);
I6 = H > Ref(HHV(H,6),6) AND L < Ref(LLV(L,6),6);
I7 = H > Ref(HHV(H,7),7) AND L < Ref(LLV(L,7),7);
I8 = H > Ref(HHV(H,8),8) AND L < Ref(LLV(L,8),8);
I9 = H > Ref(HHV(H,9),9) AND L < Ref(LLV(L,9),9);
PlotShapes(	IIf(I9, shapeDigit9,IIf(I8, shapeDigit8,IIf(I7, shapeDigit7,
				IIf(I6, shapeDigit6,IIf(I5, shapeDigit5,IIf(I4, shapeDigit4,
				IIf(I3, shapeDigit3,IIf(I2, shapeDigit2,IIf(I1, shapeDigit1, shapeNone))) ))) ))),
				colorWhite,0,H,10);
_SECTION_END();

:) Happy
 

Trader_PK

Well-Known Member
#3
We get all kinds of strange requests for coding, but some of them are just . . . hilarious . . . in an enjoyable way . . .

took a few minutes to code but enjoyed it thoroughly . . . hope it is useful for you . . . but hopefully this was what you wanted in the first place . . . . :D


Code:
_SECTION_BEGIN("THE INSIDE GANG :) ");
//Warning: Forward Looking Code
I1 = H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1);
I2 = H > Ref(HHV(H,2),2) AND L < Ref(LLV(L,2),2);
I3 = H > Ref(HHV(H,3),3) AND L < Ref(LLV(L,3),3);
I4 = H > Ref(HHV(H,4),4) AND L < Ref(LLV(L,4),4);
I5 = H > Ref(HHV(H,5),5) AND L < Ref(LLV(L,5),5);
I6 = H > Ref(HHV(H,6),6) AND L < Ref(LLV(L,6),6);
I7 = H > Ref(HHV(H,7),7) AND L < Ref(LLV(L,7),7);
I8 = H > Ref(HHV(H,8),8) AND L < Ref(LLV(L,8),8);
I9 = H > Ref(HHV(H,9),9) AND L < Ref(LLV(L,9),9);
PlotShapes(	IIf(I9, shapeDigit9,IIf(I8, shapeDigit8,IIf(I7, shapeDigit7,
				IIf(I6, shapeDigit6,IIf(I5, shapeDigit5,IIf(I4, shapeDigit4,
				IIf(I3, shapeDigit3,IIf(I2, shapeDigit2,IIf(I1, shapeDigit1, shapeNone))) ))) ))),
				colorWhite,0,H,10);
_SECTION_END();

:) Happy

Bro nothing is happening by this AFL?..yes this is what I want....I dont need fancy indicator..simple is very much fine..but its not working..please give me correct code... I dont have experience is coding so please bear this .....thanks
 
#5
bhaiya, isko price chart ke saath chipkao . . . :)

Code:
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );


One of our friends send me a modified version of above code . . . saying to many statements used in my code, can be done using just one . . . :rofl:
Seems like we have too much empty time on hand

Code:
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_BEGIN("THE INSIDE GANG :) ");
//Warning: Forward Looking Code
PlotShapes(	IIf(H > Ref(HHV(H,9),9) AND L < Ref(LLV(L,9),9),shapeDigit9,
				IIf(H > Ref(HHV(H,8),8) AND L < Ref(LLV(L,8),8),shapeDigit8,
				IIf(H > Ref(HHV(H,7),7) AND L < Ref(LLV(L,7),7),shapeDigit7,
				IIf(H > Ref(HHV(H,6),6) AND L < Ref(LLV(L,6),6),shapeDigit6,
				IIf(H > Ref(HHV(H,5),5) AND L < Ref(LLV(L,5),5),shapeDigit5,
				IIf(H > Ref(HHV(H,4),4) AND L < Ref(LLV(L,4),4),shapeDigit4,
				IIf(H > Ref(HHV(H,3),3) AND L < Ref(LLV(L,3),3),shapeDigit3,
				IIf(H > Ref(HHV(H,2),2) AND L < Ref(LLV(L,2),2),shapeDigit2,
				IIf(H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1),shapeDigit1,shapeNone))) ))) ))),colorWhite,0,H,10);
_SECTION_END();
Use this one also has price :thumb:

:) Happy
 

Trader_PK

Well-Known Member
#7
bhaiya, isko price chart ke saath chipkao . . . :)

Code:
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );


One of our friends send me a modified version of above code . . . saying to many statements used in my code, can be done using just one . . . :rofl:
Seems like we have too much empty time on hand

Code:
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_BEGIN("THE INSIDE GANG :) ");
//Warning: Forward Looking Code
PlotShapes(	IIf(H > Ref(HHV(H,9),9) AND L < Ref(LLV(L,9),9),shapeDigit9,
				IIf(H > Ref(HHV(H,8),8) AND L < Ref(LLV(L,8),8),shapeDigit8,
				IIf(H > Ref(HHV(H,7),7) AND L < Ref(LLV(L,7),7),shapeDigit7,
				IIf(H > Ref(HHV(H,6),6) AND L < Ref(LLV(L,6),6),shapeDigit6,
				IIf(H > Ref(HHV(H,5),5) AND L < Ref(LLV(L,5),5),shapeDigit5,
				IIf(H > Ref(HHV(H,4),4) AND L < Ref(LLV(L,4),4),shapeDigit4,
				IIf(H > Ref(HHV(H,3),3) AND L < Ref(LLV(L,3),3),shapeDigit3,
				IIf(H > Ref(HHV(H,2),2) AND L < Ref(LLV(L,2),2),shapeDigit2,
				IIf(H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1),shapeDigit1,shapeNone))) ))) ))),colorWhite,0,H,10);
_SECTION_END();
Use this one also has price :thumb:

:) Happy



Ohh bro got it thanks...my screen background was also white..so didnt able to see any mark...can't we change colour of bar?..
 
#8
Ohh bro got it thanks...my screen background was also white..so didnt able to see any mark...can't we change colour of bar?..
For white background just replace colorWhite in the above code with colorBlack

Yes color of bar also can be changed . . . will try after markets :)


:) Happy
 
#9
Code:
_SECTION_BEGIN("THE INSIDE GANG :) ");
//Warning: Forward Looking Code
PlotShapes(	IIf(H > Ref(HHV(H,9),9) AND L < Ref(LLV(L,9),9),shapeDigit9,
				IIf(H > Ref(HHV(H,8),8) AND L < Ref(LLV(L,8),8),shapeDigit8,
				IIf(H > Ref(HHV(H,7),7) AND L < Ref(LLV(L,7),7),shapeDigit7,
				IIf(H > Ref(HHV(H,6),6) AND L < Ref(LLV(L,6),6),shapeDigit6,
				IIf(H > Ref(HHV(H,5),5) AND L < Ref(LLV(L,5),5),shapeDigit5,
				IIf(H > Ref(HHV(H,4),4) AND L < Ref(LLV(L,4),4),shapeDigit4,
				IIf(H > Ref(HHV(H,3),3) AND L < Ref(LLV(L,3),3),shapeDigit3,
				IIf(H > Ref(HHV(H,2),2) AND L < Ref(LLV(L,2),2),shapeDigit2,
				IIf(H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1),shapeDigit1,shapeNone))) ))) ))),colorBlack,0,H,10);

Plot( C, "Close", IIf(H > Ref(HHV(H,1),1) AND L < Ref(LLV(L,1),1),colorBlue,IIf(O<C,colorGreen, colorRed)), styleNoTitle | ParamStyle("Style") | GetPriceStyle()); 


_SECTION_END();


:) Happy
 

Cubt

Algo Trader
#10
Happy,
You seriously enjoying coding man. Where did u learn this stuff?? Just by checking all ur posts, even I can also learn afl soon :)