Author Topic: I want to help  (Read 3440 times)

impossibleman

  • Newbie
  • *
  • Posts: 3
    • View Profile
I want to help
« on: August 27, 2013, 03:16:38 pm »
This equation





_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("C?? C???CI?CE");
strength = Param("Strength",1,1,15,1);
prR=PeakBars(H,strength)==0;
psS =TroughBars(L,strength)==0;
rRf=ValueWhen(prR,H);
sSf=ValueWhen(psS,L);
Plot(rRf,"",colorGreen,styleDots,styleNoLabel);
Plot(sSf,"",colorRed,styleDots,styleNoLabel);
_SECTION_END();
_SECTION_END();


I want to add some condition which
Relating to the time Balavasl

If the price broke the resistance puts a green arrow mark provided that the penetration on the weekly interval

kelvinhand

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: I want to help
« Reply #1 on: September 21, 2013, 08:40:49 pm »
This equation





_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("C?? C???CI?CE");
strength = Param("Strength",1,1,15,1);
prR=PeakBars(H,strength)==0;
psS =TroughBars(L,strength)==0;
rRf=ValueWhen(prR,H);
sSf=ValueWhen(psS,L);
Plot(rRf,"",colorGreen,styleDots,styleNoLabel);
Plot(sSf,"",colorRed,styleDots,styleNoLabel);
_SECTION_END();
_SECTION_END();


I want to add some condition which
Relating to the time Balavasl

If the price broke the resistance puts a green arrow mark provided that the penetration on the weekly interval

Code: [Select]
_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("Weekly Sup/Res");
strength = Param("Strength",1,1,15,1);

TimeFrameSet(inWeekly);
 
prR=PeakBars(H,strength)==0;
psS =TroughBars(L,strength)==0;

rRf=ValueWhen(prR,H);
sSf=ValueWhen(psS,L);
TimeFrameRestore();


wrrf = TimeFrameExpand(rRf, inWeekly);
wssf = TimeFrameExpand(sSf, inWeekly);

Plot(wrrf,"",colorGreen,styleDots,styleNoLabel);
Plot(wssf,"",colorRed,styleDots,styleNoLabel);


Buy=Cross(H, wrrf);
Sell=Cross(wssf, L);

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;

PlotShapes( shape, IIf( Buy, colorLime, ColorRGB(255,0, 255) ), 0, IIf( Buy, Low, High) );


_SECTION_END();