Simple Coding Help - No Promise.

a1b1trader

Well-Known Member
Yes, you can do that. Data base settings - Intraday settings - check "Allow mixed EOD/ intraday data". Iimport your ASCII EOD data to the same symbol but skip time column. If you wanna shorten your intraday data history (as you said) then do that first.
Thanks trash for your help
After skipping/deleting time column, it worked.

I will do it today, so as to make space in my ami.

Thanks again for your kind help.
 

a1b1trader

Well-Known Member
Re: Is It Possible ???

Hi cellclinic
What I understood from your post is.
You want to increase the gap on y-axis

You can do it in the following manner
Just press Shift button
Place the cursor at y-axis reading -> press right button of the mouse and stretch cursor downwards (as you do for copying a text)

(And if anyone wants to decrease the gap then stretch upwards.)

Please excuse me if I misunderstood your post.
 

cellclinic

Well-Known Member
Re: Is It Possible ???

Thanks a1b1trader ... its working :) but after doing this chart gets stretched too ...is there any other way out where only i can adjust y axis area instead of stretching the whole chart ???

Hi cellclinic
What I understood from your post is.
You want to increase the gap on y-axis

You can do it in the following manner
Just press Shift button
Place the cursor at y-axis reading -> press right button of the mouse and stretch cursor downwards (as you do for copying a text)

(And if anyone wants to decrease the gap then stretch upwards.)

Please excuse me if I misunderstood your post.
 

amitrandive

Well-Known Member
the code u needed will look like as the following code.
i actually added one extra condition to it . if u don't like tht plz mark those conditions as comment by placcing // prior to tht line

Code:
_N(Title = StrFormat("{{NAME}} -"+ EncodeColor(colorBlue)+""+ EncodeColor(colorBlue)+" {{INTERVAL}} "+ EncodeColor(colorWhite)+"{{DATE}} \n Op=> %g, \n Hi=> %g, \n Lo=> %g, \n Cl=> %g 
 {{VALUES}}", O, H, L, C  ));
Plot( C, "", ParamColor("Color", colorBlack ),  ParamStyle("Style",styleCandle,maskAll)  ); 

Sell=Ref(C,-1)>Ref(O,-1)		//previous candle bullish candle 
AND Ref(C,-1)>Ref(C,-2)		//previous candle closed abv it's prior candle
.
.
.
People may differ with my views.
but this suits me.[/QUOTE]

[B][COLOR="Blue"]Added Exrem for removing excessive signals.[/COLOR][/B]

[CODE]
_N(Title = StrFormat("{{NAME}} -"+ EncodeColor(colorBlue)+""+ EncodeColor(colorBlue)+" {{INTERVAL}} "+ EncodeColor(colorWhite)+"{{DATE}} \n Op=> %g, \n Hi=> %g, \n Lo=> %g, \n Cl=> %g 
 {{VALUES}}", O, H, L, C  ));
Plot( C, "", ParamColor("Color", colorBlack ),  ParamStyle("Style",styleCandle,maskAll)  ); 

Sell=Ref(C,-1)>Ref(O,-1)		//previous candle bullish candle 
AND Ref(C,-1)>Ref(C,-2)		//previous candle closed abv it's prior candle
AND C<O 					//current candle bearish
AND Ref(H,-1)>C
AND C>Ref(L,-1)	                //current candle closes within the H-L range of previous candle
AND H>Ref(H,-1) ;			//current candle high crosses previous candle high


Buy=Ref(C,-1)<Ref(O,-1)	  //previous candle bearish candle
AND Ref(C,-1)<Ref(C,-2)    //previous candle closed bellow it's prior candle
AND C>O   			  //current candle bullish 
AND Ref(H,-1)>C
AND C>Ref(L,-1)	          //current candle closes within the H-L range of previous candle
AND L<Ref(L,-1) ;		  //current candle low crosses previous candle low
 Buy = ExRem(Buy, Sell);
  Sell = ExRem(Sell, Buy);
PlotShapes(Buy*shapeUpTriangle, colorBrightGreen, 0, C);
PlotShapes(Sell*shapeDownTriangle, colorRed, 0, C);
 

a1b1trader

Well-Known Member
Re: Is It Possible ???

Thanks a1b1trader ... its working :) but after doing this chart gets stretched too ...is there any other way out where only i can adjust y axis area instead of stretching the whole chart ???
Sorry
I do not know any other way

Perhaps some coding may help, but I do not know anything about it
 
Dear seniors

Want one cover condition

please help me on it

how to write in ami language if adx down 5 point from his peak level then we can cover my position

please help me

Abhishek
 

amitrandive

Well-Known Member
Dear All

Attached volume at Multi price code .Can we modify the code to draw a horizontal line as shown in the sketch at the max volume point?


Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("VAP");
segments = IIf( Interval() < inDaily, Day(), Month() );
segments = segments != Ref( segments , -1 );

PlotVAPOverlayA( segments , Param("Lines", 300, 100, 1000, 1 ), Param("Width", 80, 1, 100, 1 ), ParamColor("Color", colorGold ), ParamToggle("Side", "Left|Right" ) | 2 * ParamToggle("Style", "Fill|Lines", 0) | 4*ParamToggle("Z-order", "On top|Behind", 1 ) );
Plot(segments, "", colorLightGrey, styleHistogram | styleOwnScale );
_SECTION_END();
 

Similar threads