_SECTION_BEGIN("Value Trader");
_N(Title = StrFormat("{{NAME}}-{{INTERVAL}} {{DATE}} Open %g, High %g, Low %g, {{VALUES}} • © ValueTechnicals.com", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
ValProUp56(H,L,C,V);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
SetChartBkColor(ParamColor("Outer Panel",colorBlack));
SetChartBkGradientFill(ParamColor("Upper Chart",colorDarkTeal),ParamColor("Lower Chart",colorBlack));
ValPro1(O);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone), colorGreen, 0, Low, Offset=-15);
PlotShapes(IIf(Buy,shapeSmallCircle,shapeNone), colorGreen, 0, Low, Offset=-28);
PlotShapes(IIf(Sell, shapeDownArrow,shapeNone), colorRed, 0, High, Offset=-15);
PlotShapes(IIf(Sell, shapeSmallCircle,shapeNone), colorRed, 0, High, Offset= 28);
SetChartOptions(0,chartShowArrows|chartShowDates);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
YH = TimeFrameGetPrice("H", inDaily, -1);
YL = TimeFrameGetPrice("L", inDaily, -1);
YC = TimeFrameGetPrice("C", inDaily, -1);
YO = TimeFrameGetPrice("O", inDaily);
myama = AMA(AMA_VAL(O,H,L,C),0.5);
mywma = WMA(WMA_VAL(O,H,L,C,myama),10);
NW = Trail1(O,H,L,C,myama,mywma);
j = Trail2(O,H,L,C,myama,mywma);
Trail11 = IIf( NW < j, NW, Null );
Trail22 = IIf( NW > j, NW, Null );
Plot( IIf( NW < j, NW, Null ), "Trail-Long", colorGreen, styleStaircase | styleThick | styleNoTitle);
Plot( IIf( NW > j, NW, Null ), "Trail-Short", colorRed, styleStaircase | styleThick | styleNoTitle);
PP = Get_pp(YH,YC,YL);
R1 = Get_r1(PP,YL,YL);
R2 = Get_r2(PP,YH,YL);
R3 = Get_r3(YH,PP,YL);
S1 = Get_s1(PP,YH);
S2 = Get_s2(PP,YH,YL);
S3 = Get_s3(YL,YH,PP);
O1 = Get_val(O);
H1 = Get_val(H);
L1 = Get_val(L);
C1 = Get_val(C);
GfxSetOverlayMode( mode = 0 );
GfxSelectPen( colorLightBlue, 3 );
GfxSetBkMode( colorWhite );
GfxSelectSolidBrush( colorBlack );
GfxRoundRect( 5, 286, 102, 20, 0, 0 );
GfxSelectFont( "Arial", 10, 900, False );
GfxSetTextAlign(0);
GfxSetTextColor( colorLime );
GfxTextOut( WriteIf(R1, "T1: "+(R1),""), 17, 130);
GfxTextOut( WriteIf(R2, "T2: "+(R2),""), 17, 115);
GfxTextOut( WriteIf(R3, "T3: "+(R3),""), 17, 100);
GfxSetTextColor( colorWhite );
GfxTextOut( WriteIf(YH, "MID: "+(PP),""), 17, 145);
GfxSetTextColor( colorRed );
GfxTextOut( WriteIf(S1, "T1: "+(S1),""), 17, 160);
GfxTextOut( WriteIf(S2, "T2: "+(S2),""), 17, 175);
GfxTextOut( WriteIf(S3, "T3: "+(S3),""), 17, 190);
GfxSetTextColor( colorGold );
GfxTextOut( WriteIf(C1, "Cl: "+(C1),""), 17, 70);
GfxSetTextColor( colorRed );
GfxTextOut( WriteIf(L1, "Lo: "+(L1),""), 17, 55);
GfxSetTextColor( colorLime );
GfxTextOut( WriteIf(H1, "Hi: "+(H1),""), 17, 40);
GfxSetTextColor( colorGold );
GfxTextOut( WriteIf(O1, "Op: "+(O1),""), 17, 25);
GfxSetTextColor( colorLightBlue );
GfxRoundRect( 5, 94, 102, 93, 0, 0 );
GfxRoundRect( 5, 213, 102, 214, 0, 0 );
GfxRoundRect( 5, 258, 102, 259, 0, 0 );
GfxSetTextColor( colorLime );
GfxTextOut("TL: "+Trail11,17,220);
GfxSetTextColor( colorRed );
GfxTextOut("TS: "+Trail22,17,235);
GfxSetTextColor( colorGold );
GfxTextOut( ("ValueRT.com"),11,264);
_SECTION_END();
sir plese correct this afl
_N(Title = StrFormat("{{NAME}}-{{INTERVAL}} {{DATE}} Open %g, High %g, Low %g, {{VALUES}} • © ValueTechnicals.com", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
ValProUp56(H,L,C,V);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
SetChartBkColor(ParamColor("Outer Panel",colorBlack));
SetChartBkGradientFill(ParamColor("Upper Chart",colorDarkTeal),ParamColor("Lower Chart",colorBlack));
ValPro1(O);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone), colorGreen, 0, Low, Offset=-15);
PlotShapes(IIf(Buy,shapeSmallCircle,shapeNone), colorGreen, 0, Low, Offset=-28);
PlotShapes(IIf(Sell, shapeDownArrow,shapeNone), colorRed, 0, High, Offset=-15);
PlotShapes(IIf(Sell, shapeSmallCircle,shapeNone), colorRed, 0, High, Offset= 28);
SetChartOptions(0,chartShowArrows|chartShowDates);
AlertIf( Sell, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\ValueTrader\\alert1.wav", "Audio alert", 2 );
YH = TimeFrameGetPrice("H", inDaily, -1);
YL = TimeFrameGetPrice("L", inDaily, -1);
YC = TimeFrameGetPrice("C", inDaily, -1);
YO = TimeFrameGetPrice("O", inDaily);
myama = AMA(AMA_VAL(O,H,L,C),0.5);
mywma = WMA(WMA_VAL(O,H,L,C,myama),10);
NW = Trail1(O,H,L,C,myama,mywma);
j = Trail2(O,H,L,C,myama,mywma);
Trail11 = IIf( NW < j, NW, Null );
Trail22 = IIf( NW > j, NW, Null );
Plot( IIf( NW < j, NW, Null ), "Trail-Long", colorGreen, styleStaircase | styleThick | styleNoTitle);
Plot( IIf( NW > j, NW, Null ), "Trail-Short", colorRed, styleStaircase | styleThick | styleNoTitle);
PP = Get_pp(YH,YC,YL);
R1 = Get_r1(PP,YL,YL);
R2 = Get_r2(PP,YH,YL);
R3 = Get_r3(YH,PP,YL);
S1 = Get_s1(PP,YH);
S2 = Get_s2(PP,YH,YL);
S3 = Get_s3(YL,YH,PP);
O1 = Get_val(O);
H1 = Get_val(H);
L1 = Get_val(L);
C1 = Get_val(C);
GfxSetOverlayMode( mode = 0 );
GfxSelectPen( colorLightBlue, 3 );
GfxSetBkMode( colorWhite );
GfxSelectSolidBrush( colorBlack );
GfxRoundRect( 5, 286, 102, 20, 0, 0 );
GfxSelectFont( "Arial", 10, 900, False );
GfxSetTextAlign(0);
GfxSetTextColor( colorLime );
GfxTextOut( WriteIf(R1, "T1: "+(R1),""), 17, 130);
GfxTextOut( WriteIf(R2, "T2: "+(R2),""), 17, 115);
GfxTextOut( WriteIf(R3, "T3: "+(R3),""), 17, 100);
GfxSetTextColor( colorWhite );
GfxTextOut( WriteIf(YH, "MID: "+(PP),""), 17, 145);
GfxSetTextColor( colorRed );
GfxTextOut( WriteIf(S1, "T1: "+(S1),""), 17, 160);
GfxTextOut( WriteIf(S2, "T2: "+(S2),""), 17, 175);
GfxTextOut( WriteIf(S3, "T3: "+(S3),""), 17, 190);
GfxSetTextColor( colorGold );
GfxTextOut( WriteIf(C1, "Cl: "+(C1),""), 17, 70);
GfxSetTextColor( colorRed );
GfxTextOut( WriteIf(L1, "Lo: "+(L1),""), 17, 55);
GfxSetTextColor( colorLime );
GfxTextOut( WriteIf(H1, "Hi: "+(H1),""), 17, 40);
GfxSetTextColor( colorGold );
GfxTextOut( WriteIf(O1, "Op: "+(O1),""), 17, 25);
GfxSetTextColor( colorLightBlue );
GfxRoundRect( 5, 94, 102, 93, 0, 0 );
GfxRoundRect( 5, 213, 102, 214, 0, 0 );
GfxRoundRect( 5, 258, 102, 259, 0, 0 );
GfxSetTextColor( colorLime );
GfxTextOut("TL: "+Trail11,17,220);
GfxSetTextColor( colorRed );
GfxTextOut("TS: "+Trail22,17,235);
GfxSetTextColor( colorGold );
GfxTextOut( ("ValueRT.com"),11,264);
_SECTION_END();
sir plese correct this afl