vendredi 2 septembre 2016

Can anyone combine these 2 afl please ?

can anyone help me ? thanks
PHP Code:

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title StrFormat(" -   Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteValV1.0 ) +" "OHLCSelectedValueROCC)) ));
PlotC"Close"ParamColor("Color"colorDefault ), styleNoTitle ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("MA");
ParamField("Price field",-1);
Periods Param("Periods"152200);
PlotMAPPeriods ), _DEFAULT_NAME(), ParamColor"Color"colorCycle ), ParamStyle("Style"styleLine styleNoLabel ) | styleNoRescale );
Buy CrossMAClose15 ), MAClose45 ) );
Sell CrossMAClose45 ), MAClose15 ) );
PlotShapes(IIf(Sell==1shapeDownArrowshapeNone), colorYellow0,HighOffset=-15);
PlotShapes(IIf(Buy==1shapeUpArrow shapeNone), colorYellow0,LowOffset=-15);
_SECTION_END();

_SECTION_BEGIN("Mid MA");
ParamField("Price field",-1);
Periods Param("Periods"452300);
PlotMAPPeriods ), _DEFAULT_NAME(), ParamColor"Color"colorCycle ), ParamStyle("Style"styleLine styleNoLabel ) | styleNoRescale );
_SECTION_END();

_SECTION_BEGIN("Long MA");
ParamField("Price field",-1);
Periods Param("Periods"1002400);
PlotMAPPeriods ), _DEFAULT_NAME(), ParamColor"Color"colorCycle ), ParamStyle("Style"styleLine styleNoLabel ) | styleNoRescale );
Buy CrossMAClose15 ), MAClose100 ) );
Sell CrossMAClose100 ), MAClose15 ) );
PlotShapes(IIf(Sell==1shapeDownArrowshapeNone), colorCustom110,HighOffset=-15);
PlotShapes(IIf(Buy==1shapeUpArrow shapeNone), colorCustom110,LowOffset=-15);

_SECTION_END();

_SECTION_BEGIN("MA 200");
ParamField("Price field",-1);
Periods Param("Periods"2002500);
PlotMAPPeriods ), _DEFAULT_NAME(), ParamColor"Color"colorCycle ), ParamStyle("Style"styleLine styleNoLabel ) | styleNoRescale );
_SECTION_END();

_SECTION_BEGIN("BBands");
ParamField("Price field",-1);
Periods Param("Periods"152100);
Width Param("Width"20100.05 );
Color ParamColor("Color"colorLightGrey );
Color ColorBlendColorGetChartBkColor(), 0.5 );
Style ParamStyle("Style"styleLine styleNoLabel ) | styleNoRescale;;
Plotbbt BBandTopPPeriodsWidth ), "BBTop" _PARAM_VALUES(), ColorStyle );
Plotbbb BBandBotPPeriodsWidth ), "BBBot" _PARAM_VALUES(), ColorStyle );
PlotOHLCbbtbbtbbbbbb""ColorBlendColorGetChartBkColor(), 0.7 ), styleNoLabel styleCloud styleNoRescaleNullNullNull, -);
_SECTION_END();

_SECTION_BEGIN("Volume");
Color ParamColor("Color"ColorRGB128128192 ) );
PlotVolume_DEFAULT_NAME(), ColorBlendColorGetChartBkColor(), 0.5 ), styleNoTitle ParamStyle"Style"styleHistogram styleOwnScale styleThick styleNoLabelmaskHistogram ), );
_SECTION_END();

_SECTION_BEGIN("SAR");
acc Param("Acceleration"0.02010.001 );
accm Param("Max. acceleration"0.2010.001 );
PlotSARaccaccm ), _DEFAULT_NAME(), ParamColor"Color"colorCycle ), ParamStyle("Style"styleDots styleNoLinemaskDefault styleDots styleNoLine ) );
_SECTION_END(); 

PHP Code:

_SECTION_BEGIN("day week hour all in one");
/*This will Plot monthly, weekly, daily, Hourly, 15 Minute, 5 Minute and 1 Minute charts in one chart but different panes. */
//================================================== ============================================
SetChartBkGradientFill(colorWhite,colorLightGrey,colorWhite);
PeriodParamList("Base","Monthly|Weekly|Daily|Hourly|15Mi nute|5Minute|1Minute",0);
  
if(
Period=="Monthly"){
TimeFrameSet(inMonthly);
PlotOHLC(OpenHighLowClose"Monthly Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="Weekly"){
TimeFrameSet(inWeekly);
PlotOHLC(OpenHighLowClose"weekly Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="Daily"){
TimeFrameSet(inDaily);
PlotOHLC(OpenHighLowClose"Daily Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="Hourly"){
TimeFrameSet(inHourly);
PlotOHLC(OpenHighLowClose"Hourly Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="15Minute"){
TimeFrameSet(in15Minute);
PlotOHLC(OpenHighLowClose"15Minute Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="5Minute"){
TimeFrameSet(in5Minute);
PlotOHLC(OpenHighLowClose"5Minute Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
if(
Period=="1Minute"){
TimeFrameSet(in1Minute);
PlotOHLC(OpenHighLowClose"1Minute Price Chart"colorBlackstyle styleCandle styleOwnScale);
Plot(V,"Volume",colorWhitestyleHistogram);
}
_SECTION_END(); 



Can anyone combine these 2 afl please ?

Aucun commentaire:

Enregistrer un commentaire