Any one can help in this afl ?

#1
I FOUND THIS AFL CODE ... but WHEN APPLYING IT SHOWS THE "SYNTAX ERRORS " IN THE LINES OF 27,64,74,89,123,129,205 ERROR NUMBER 30

CAN ANYONE FIX THIS PROBLEM ?

/*
ACE Nifty Futures Trading System - Version 1.1

Copyright : www.tradinganalysis.co.in, ACE Engravers

This system is written for Version 5.2 or 5.3 of AmiBroker Standard, Professional
or Ultimate Pack Pro Editions.

While every effort has been made for compatibility with previous versions,
some advanced features may be unavailable in previous Versions of AmiBroker.
If you are using versions prior to 5.20, kindly check the compatibility
and behaviour first.
*/


//============================Start of Chart Display Style=============================//
SetOption("EveryBarNullCheck", True);

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} - O : %g, H : %g, L : %g, C : %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
SetChartOptions(0,chartShowArrows|chartShowDates | chartWrapTitle | chartLogarithmic);

_SECTION_BEGIN("Chart Display Theme");
ChartDisplayTheme = ParamList("Chart Display Theme", "White background with B/W candles|Black background with R/G candles",1);
param_ShowSystemTitle = ParamToggle("Show System Title ?","No|Yes",1);
_SECTION_END();

TA_ChartDisplayTheme(ChartDisplayTheme);
//============================End of Chart Display Style=============================//


//============================Take User Inputs=============================//

_SECTION_BEGIN("Alerts");
Param_AudioAlert = ParamToggle("Audio / text Alert?","No|Yes",1);
Param_ManualVoiceAlerts = ParamToggle("Alert in human voice?","No|Yes",1);
Param_AlertFrequency = Param("Audio Alert / human voice alert frequency?",10,5,1000,1);
Param_ShowValuesBox = ParamToggle("Display values in Box?","No|Yes",1);
Param_BoxLocation = ParamList("Box Location?", "Left Top|Left Bottom|Right Top|Right Bottom",0);
Param_BoxBackgroundColour = ParamColor("Box background colour?",colorDarkGrey);
Param_HideBoxBehindChart = ParamToggle("Hide Box behind Chart?", "No|Yes");
_SECTION_END();

_SECTION_BEGIN("Money Management");
Param_Show_Equity = ParamToggle("Show Equity ?(Enter correct INITIAL EQUITY in AA Settings)","No|Yes");
Param_Margin = Param("Margin required (used for backtesting only)", 15,0.001,100,0.001);
Param_LotSize = Param("Lot Size (used for backtesting only)", 50,5,5000,5);
Param_NoOfLots = Param("No of lots normally traded (used for backtesting only)",2,1,10000,1);
Param_drawdown=ParamList("Trailing Stoploss Method", "% of total trade value|Fixed amount per share");
Param_Stoploss_percent = Param("Stoploss % per trade", 0.7,0.01,5,0.01);
Param_Stoploss_amount = Param("Stoploss Amount per share", 15, 0.01,50000,0.01);
_SECTION_END();
//============================End of User Inputs=============================//

//==========================Start of Show Resistance and Support Lines===============================//
_SECTION_BEGIN("Support-Resistance");
Param_ShowResSup = ParamToggle("Show Resistance / Support ?","No|Yes");
Param_HowManyRS = Param("How many Support / Resistance to show ?",2,0,10,1);
Param_ResSupVolatility = Param("Support / Resistance Volatility ",0.1,0.1,100,0.1);
Param_SupLineColor = ParamColor("Support Line Color",colorBrightGreen);
Param_SupLineStyle = ParamStyle("Support Line Style", styleLine|styleNoTitle);
Param_ResLineColor = ParamColor("Resistance Line Color",colorRed);
Param_ResLineStyle = ParamStyle("Resistance Line Style", styleLine|styleNoTitle);

if(Param_ShowResSup AND Param_HowManyRS>0) TA_ShowSupportResistance(Param_HowManyRS,Param_ResSupVolatility,Param_SupLineColor,Param_ResLineColor,Param_SupLineStyle,Param_ResLineStyle);
_SECTION_END();

//===========End of Resistance and Support Lines===========//


_SECTION_BEGIN("Trading System");
//====================Show Reversals ?====================//
Param_ShowReversals = ParamToggle("Show possible reversals ?","No|Yes");

if(Param_ShowReversals) TA_ShowReversals();
//====================End of Show Reversals ?====================//

//====================Start of Trading System====================//
Param_ShowArrows = ParamToggle("Show Buy/Sell/Short/Cover Arrows ?","No|Yes",1);
firstBarEntryExit = ParamToggle("First bar trade entry / exit ?","No|Yes");
CloseDailyPosition = ParamToggle("Close Daily Position?","No|Yes");
ExitOnCandleNo = Param("If yes, exit on Candle No?",76,5,500);

A = Param("A - DO NOT change any Values",14,2,25,1);
B = Param("B - DO NOT change any Values",5,2,25,1);
CC = Param("C - DO NOT change any Values",5,1,25,1);
D = Param("D - DO NOT change any Values",5,1,25,1);
E = Param("E - DO NOT change any Values",18,1,20,1);

TA_TradingSystemCheckEntry(A,B,CC,D,E,firstBarEntryExit,CloseDailyPosition,ExitOnCandleNo);

_SECTION_END();

//Settings for Backtester
SetOption("AllowSameBarExit", False);
SetOption("AllowPositionShrinking", False);
SetOption("FuturesMode", True);
SetOption("InterestRate",0);
SetOption("MaxOpenPositions",1);
RoundLotSize = Param_LotSize;
SetOption("MinShares",RoundLotSize);
SetOption("PriceBoundChecking",False);
//SetOption("CommissionMode",3);
//SetOption("CommissionAmount",12.5/RoundLotSize);
SetOption("AccountMargin",Param_Margin);
SetOption("ReverseSignalForcesExit",True);
SetOption("UsePrevBarEquityForPosSizing",True);
SetOption("GenerateReport",1);
SetOption("MaxOpenLong",1);
SetOption("MaxOpenShort",1);
SetOption("RefreshWhenCompleted",True);

PositionSize = C*RoundLotSize*Param_NoOfLots;
SetTradeDelays(0,0,0,0);
BuyPrice = Close;
SellPrice = Close;
ShortPrice = Close;
CoverPrice = Close;
//End of Settings for Backtester
//====================End of Trading System====================//

//===================Start of money management=============================//

TA_TradingSystemCheckExit(Param_drawdown,Param_NoOfLots,Param_Stoploss_Percent,Param_Stoploss_amount,Param_LotSize,firstBarEntryExit,CloseDailyPosition,ExitOnCandleNo);

//==========================end of money management=============================//

//==================Plot Equity, Arrows, AudioAlerts and box containing values================//

TA_PlotEquityArrowsAlertsValueBox(Param_BoxLocation, Param_Show_Equity,Param_ShowArrows,Param_AudioAlert,Param_ManualVoiceAlerts, Param_AlertFrequency, param_ShowSystemTitle,Param_ShowValuesBox, Param_HideBoxBehindChart,Param_BoxBackgroundColour);

//=================== End of Plot Arrows, AudioAlerts and box containing values================//

//=================== Start of Volume Display================//

_SECTION_BEGIN("Volume Selector");

showVolume = ParamToggle("Show Volume ?", "No|Yes",1);
displayStyle = ParamList("Volume Display Mode", "Normal Volume|Coloured Volume|Volume at Price|Volume at Price (grouped)|Volume at Price + Volume|Volume at Price + Coloured Volume|Volume at Price (grouped) + Volume|Volume at Price (grouped) + Coloured Volume|Customised VAP / candles");

Param_NormalVolumeColor = ParamColor("Normal Volume Colour", colorDarkBlue);
Param_NormalVolumeStyle = ParamStyle( "Normal Volume Style", styleHistogram | styleOwnScale | styleNoLabel, maskHistogram );

Param_UpVolumeColor = ParamColor("Up Volume Colour", colorGreen);
Param_DownVolumeColor = ParamColor("Down Volume Colour", colorRed);
Param_ColouredVolumeStyle = ParamStyle( "Coloured Volume Style", styleHistogram | styleOwnScale | styleNoLabel, maskHistogram);

Param_VAPLinesCount = Param("VAP Lines Count", 100, 5, 1000, 1 );
Param_VAPLinesWidth = Param("VAP Lines Width", 40, 1, 100, 1 );
Param_VAPVolumeColor = ParamColor("VAP Color", colorGold);
Param_VAPSide = ParamToggle("VAP Side", "Left|Right" );
Param_VAPOverlay = 4*ParamToggle("VAP Z-order", "On top|Behind", 1 );

Param_VAPStyle = 2 * ParamToggle("VAP(grouped) Style", "Fill|Lines",1);
Param_Segment = Param("No. of candles for Customized VAP",10,2,1000,1);

if(showVolume)
{
segmentValue = IIf( Interval() < inDaily, Day(), Month() );
segmentValue = segmentValue != Ref( segmentValue, -1 );

if(displayStyle =="Normal Volume")
{
Plot( Volume, "Vol ", Param_NormalVolumeColor, Param_NormalVolumeStyle, 2);
}

else if(displayStyle == "Coloured Volume")
{
Plot( Volume, "Vol ", IIf( C > O, Param_UpVolumeColor,Param_DownVolumeColor), Param_ColouredVolumeStyle, 2);
}

else if (displayStyle =="Volume at Price")
{
PlotVAPOverlay( Param_VAPLinesCount , Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPOverlay );
}

else if (displayStyle=="Volume at Price (grouped)")
{
PlotVAPOverlayA(segmentValue, Param_VAPLinesCount, Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPStyle | Param_VAPOverlay);
}

else if (displayStyle =="Volume at Price + Volume")
{
Plot( Volume, "Vol ", Param_NormalVolumeColor, Param_NormalVolumeStyle, 2);
PlotVAPOverlay( Param_VAPLinesCount , Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPOverlay );
}

else if (displayStyle =="Volume at Price + Coloured Volume")
{
Plot( Volume, "Vol ", IIf( C > O, Param_UpVolumeColor,Param_DownVolumeColor), Param_ColouredVolumeStyle, 2);
PlotVAPOverlay( Param_VAPLinesCount , Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPOverlay );
}

else if (displayStyle=="Volume at Price (grouped) + Volume")
{
Plot( Volume, "Vol ", Param_NormalVolumeColor, Param_NormalVolumeStyle, 2);
PlotVAPOverlayA(segmentValue, Param_VAPLinesCount, Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPStyle | Param_VAPOverlay);
}

else if (displayStyle=="Volume at Price (grouped) + Coloured Volume")
{
Plot( Volume, "Vol ", IIf( C > O, Param_UpVolumeColor,Param_DownVolumeColor), Param_ColouredVolumeStyle, 2);
PlotVAPOverlayA(segmentValue, Param_VAPLinesCount, Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide | Param_VAPStyle | Param_VAPOverlay);
}

else if(displayStyle=="Customised VAP / candles") TA_ShowCustomizedVAP(Param_Segment,Param_VAPLinesCount, Param_VAPLinesWidth, Param_VAPVolumeColor, Param_VAPSide,Param_VAPStyle,Param_VAPOverlay);
_SECTION_END();
}

//=================== End of Volume Display================//

 
Last edited:

rvlv

Active Member
#3
hi
it can be composed by adding following codes

It seem's some linked AFL's are missing which have these following function definations:

TA_ChartDisplayTheme

TA_ShowSupportResistance

TA_ShowReversals

TA_TradingSystemCheckEntry

TA_TradingSystemCheckExit

TA_PlotEquityArrowsAlertsValueBox

TA_ShowCustomizedVAP

Try to get these functions as AFL's or as includes for the above AFL to work.

except support resistance nothing else needed.
use support resistance by rsi as basis
use 5 min chart
that is all
what matters is price making a support or resistance close to an existing s or r
https://www.youtube.com/watch?v=Axj6b9XNRPU
 

rvlv

Active Member
#4
hi
support resistance code is as follows-based on RSI

HTML:
//Formula Name:	Support Resistance levels
/*
Author/Uploader:	Graham Kavanagh - gkavanagh [at] e-wire.net.au
Date/Time added:	2003-05-22 22:25:51
Origin:	
Keywords:	Support Resistance
Level:	medium
Flags:	indicator
DISCLAIMER: Most formulas present in AFL on-line library are submitted by the users AND are provided here on an "as is" AND "as available" basis. AmiBroker.com makes no representations OR warranties of any kind to the contents OR the operation of material presented here. We do NOT maintain nor provide technical support for 3rd party formulas. if you believe that formula has an error - contact the AUTHOR directly, NOT us. if you believe that you have copyright on that work (i.e. you have written this particular code yourself) please send us proper DMCA takedown notice. Please note that mathematical ideas/concepts can NOT be copyrighted, only actual AFL code if you wrote it yourself.

Description:

Indicator to show support AND resistance levels based on RSI indicator reversals

Formula:
*/

//Support and resistance levels using RSI.
//graham Kavanagh May 2003
//Load into Indicator Builder
//Sensitivity of the levels can be changed with the variables
//Can test different numbers live with the Param function ctrl-R with open pane
RSIperiod	= 5;	// Param("RSI p",3,14,30,1);
Percent 		= 5;	//	Param("ZIG %",8,9,15,1);
EMAperiod 	= 5;	//Param("EMA p",4,5,10,1);
HHVperiod 	= 5;	//Param("HHV p",3,5,10,1);
NumLine 		= 2;	//Param("Num Lines",3,1,20,1);

Base = DEMA(RSI(RSIperiod),EMAperiod);

GraphXSpace=0.5;
Plot(C,"",colorBlack,styleCandle);

for( i = 1; i <= numline; i++ )
{
ResBase = LastValue(Peak(Base,Percent,i));
SupBase = LastValue(Trough(Base,Percent,i));
Plot(ValueWhen( ResBase==Base, HHV(H,HHVperiod) ), "Resist Level", colorRed,
styleLine);
Plot(ValueWhen( supbase==Base, LLV(L,HHVperiod) ), "Support Level", colorGreen,
styleLine);
}
Title = Name() + "; " + Date() + ": Support & Resistance Levels using RSI: " +
/*EncodeColor(colorGreen)+ "Support Levels are Green; "+EncodeColor(colorRed)+
"Resistance Levels are Red: "+EncodeColor(colorBlack)+*/ "Num lines
="+WriteVal(numline,1) ;
 

rvlv

Active Member
#5
ACE NIFTY SYSTEM CODING in steps

FIRST
GET SUPPORT RESISTANCE and figure out support resistance volatility (may be sensitivity)
SECOND
GET PERCENT TRAILING STOP
THIRD
CONNECT TOP VOLUME AT PRICE
fourth figure out reversals(using what? s n r?)
HTML:
_SECTION_BEGIN("Long Short % Stop");
//---long var
Stoplong = 1 - Param("stop % Long", 7, 0.1, 20, 0.1)/100;
Plong = ParamField("Price Field Long");
Longcol= ParamColor( "Color Long Stop", colorCycle );
Buy = 1;//Change for your long signal eg Short=Cross(ma(c,10),ma(c,20));


Sell = 0;
traillongARRAY = Null;
trailstoplong = 0;

//----short var


StopLevel = 1 - Param("Stop Short %", 7, 0.1, 20, 0.1)/100;
P = ParamField("Price Field Short");
Shortcol=ParamColor( "Color Short Stop", colorCycle );
Short =1; // Change for your short signal eg Short=Cross(ma(c,20),ma(c,10));
Cover = 0;
trailARRAY = Null;
trailstop = 0;

//---calculate
for( i = 2; i < BarCount; i++ )
{
//---long
   if( trailstoplong == 0 AND Buy[ i ] ) 
   { 
      trailstoplong =Plong[ i ] * Stoplong;
   }
   else Buy[ i ] = 0; // remove excess buy signals

   if( trailstoplong > 0 AND Plong[ i ] < trailstoplong )
   {
      Sell[ i ] = 1;
      SellPrice[ i ] = trailstoplong;
      trailstoplong = 0;
   }

   if( trailstoplong > 0 )
   {   
      trailstoplong = Max( Plong[ i ] * Stoplong, trailstoplong );
      traillongARRAY[ i ] = trailstoplong;
   }


//---short


   if( trailstop == 0 AND Short[ i ] ) 
   { 
    
trailstop = P[ i ] / StopLevel;// set intinal % stop then trailing stop takes over

   }
   else Short[ i ] = 0; // remove excess short signals

   if( trailstop > 0 AND P[ i ] > trailstop )
   {
      Cover[ i ] = 1;
      CoverPrice[ i ] = trailstop;
      trailstop = 0;
   }

   if( trailstop > 0 )
   {   
      trailstop = Min(P[ i ]/ stoplevel, trailstop );
      trailARRAY[ i ] = trailstop;
   }

}

// ----display results

Plot( traillongARRAY,"Stop Long",Longcol );
Plot( trailARRAY,"Stop Short", shortcol );
FOR INTRADAY USE 0.7% STOPLOSS

next
Add VAP code volume at price

---------------------------------------------------------------------------
_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();
----------------------------------------------------------------------------------------------------
adjust vap lines settings 100 number of lines & 40 width (for intraday)as in ace nifty afl
------------------------------------------------------------
after this there is nothing much we can do.
just go to KELVIN HAND
and request him
show the way-oh kind one!!!!!!!!!
 
Last edited:

KelvinHand

Well-Known Member
#7
ACE NIFTY SYSTEM CODING in steps

FIRST
GET SUPPORT RESISTANCE and figure out support resistance volatility (may be sensitivity)
SECOND
GET PERCENT TRAILING STOP
THIRD
CONNECT TOP VOLUME AT PRICE
fourth figure out reversals(using what? s n r?)
HTML:
_SECTION_BEGIN("Long Short % Stop");
//---long var
Stoplong = 1 - Param("stop % Long", 7, 0.1, 20, 0.1)/100;
Plong = ParamField("Price Field Long");
Longcol= ParamColor( "Color Long Stop", colorCycle );
Buy = 1;//Change for your long signal eg Short=Cross(ma(c,10),ma(c,20));


Sell = 0;
traillongARRAY = Null;
trailstoplong = 0;

//----short var


StopLevel = 1 - Param("Stop Short %", 7, 0.1, 20, 0.1)/100;
P = ParamField("Price Field Short");
Shortcol=ParamColor( "Color Short Stop", colorCycle );
Short =1; // Change for your short signal eg Short=Cross(ma(c,20),ma(c,10));
Cover = 0;
trailARRAY = Null;
trailstop = 0;

//---calculate
for( i = 2; i < BarCount; i++ )
{
//---long
   if( trailstoplong == 0 AND Buy[ i ] ) 
   { 
      trailstoplong =Plong[ i ] * Stoplong;
   }
   else Buy[ i ] = 0; // remove excess buy signals

   if( trailstoplong > 0 AND Plong[ i ] < trailstoplong )
   {
      Sell[ i ] = 1;
      SellPrice[ i ] = trailstoplong;
      trailstoplong = 0;
   }

   if( trailstoplong > 0 )
   {   
      trailstoplong = Max( Plong[ i ] * Stoplong, trailstoplong );
      traillongARRAY[ i ] = trailstoplong;
   }


//---short


   if( trailstop == 0 AND Short[ i ] ) 
   { 
    
trailstop = P[ i ] / StopLevel;// set intinal % stop then trailing stop takes over

   }
   else Short[ i ] = 0; // remove excess short signals

   if( trailstop > 0 AND P[ i ] > trailstop )
   {
      Cover[ i ] = 1;
      CoverPrice[ i ] = trailstop;
      trailstop = 0;
   }

   if( trailstop > 0 )
   {   
      trailstop = Min(P[ i ]/ stoplevel, trailstop );
      trailARRAY[ i ] = trailstop;
   }

}

// ----display results

Plot( traillongARRAY,"Stop Long",Longcol );
Plot( trailARRAY,"Stop Short", shortcol );
FOR INTRADAY USE 0.7% STOPLOSS

next
Add VAP code volume at price

---------------------------------------------------------------------------
_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();
----------------------------------------------------------------------------------------------------
adjust vap lines settings 100 number of lines & 40 width (for intraday)as in ace nifty afl
------------------------------------------------------------
after this there is nothing much we can do.
just go to KELVIN HAND
and request him
show the way-oh kind one!!!!!!!!!

Oh !!! Someone mentioned my name. Then need to do some works.

Just to show your that these source functions come from either TJ, wisestock,or related.

PHP:
//#include <colors.afl>
clSilver = ColorRGB(192,192,192);  
_SECTION_BEGIN ( "TA_Functions" );

procedure TA_ChartDisplayTheme(opt)
{
   ThisColor=Null;
	switch (opt)
	{
	   case "White background with B/W candles":
	   
	    SetChartBkColor(clSilver);
		SetChartBkGradientFill( colorwhite,colorwhite);

	    ThisColor = IIf( C>O, colorWhite, IIf(C<O, colorBlack, colorblack));
        SetBarFillColor( ThisColor ); 
		ThisColor = IIf( C>O, colorblack, IIf(C<O, colorblack, colorblack));
		
	     break;
	     
	   default:
	    SetChartBkColor(colorblack);
	    SetChartBkGradientFill( colorBlack,colorBlack);
	    ThisColor = IIf( C>O, colorBlack, IIf(C<O, colorRed, colorGrey50)); 
	    SetBarFillColor( ThisColor );  
	    ThisColor = IIf( C>O, colorLime, IIf(C<O, colorRed, colorGrey50));
	    
	     break;
	}
	
	_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
	Plot( C, "", ThisColor, styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
	
} 


_SECTION_END ();


_SECTION_BEGIN ( "Chart Display Theme" );
ChartDisplayTheme = ParamList ( "Chart Display Theme", "White background with B/W candles|Black background with R/G candles", 1 );
param_ShowSystemTitle = ParamToggle ( "Show System Title ?", "No|Yes", 1 );
TA_ChartDisplayTheme (ChartDisplayTheme);
_SECTION_END ();
 

KelvinHand

Well-Known Member
#8
this is ACE system of trading analysis.co and needs a plugin from them with subscription to it
PHP:
These alien come from SPACE to TJ before, Drop the ACE and gone the SP.

_SECTION_BEGIN ( "TA_Functions" );
//#include <colors.afl>

procedure TA_ShowSupportResistance(NoLines,Sen, Scolor,Rcolor, Sstyle,Rstyle)
{
y=0;
x=0;

for( i = 1; i < NoLines+1 ; i++ )
{
	Y[i]=LastValue(Peak(H,Sen,i));
	x[i]=BarCount - 1 - LastValue(PeakBars(H,Sen,i));
	Line = LineArray( x[i], y[i], Null, y[i], 1 );
	Plot( IIf(SRswitch,Null,Line), "", Rcolor, Rstyle );

	Y[i]=LastValue(Trough(L,Sen,i));
	x[i]=BarCount - 1 - LastValue(TroughBars(L,Sen,i));
	Line = LineArray( x[i], y[i], Null, y[i], 1 );
	Plot( IIf(SRswitch,Null,Line), "", Scolor, Sstyle );
}

}



_SECTION_END ();
 

KelvinHand

Well-Known Member
#9
The rest of the functions no time to trace, i got no idea on it.

TA_ShowCustomizedVAP(), I think i cracked before did not recorded down.
somehow they use the simple the PlotVAPOverlay or PlotVAPOverlayA functions

You can ask respected and talented TRASH. may be he got some idea about it.
You let him scold scold a bit, usually come out some good thing

That all.
 
Last edited:

rvlv

Active Member
#10
Kelvin Hand

Thank you for the hints.

please clarify
what is volatility for support resistance,it has 0 to 100 range.
in the support resistance code I posted,How can I insert volatility provision.
PATTERN EXPLORER was having sensitivity adjustment in parameters.

regards
rvlv
 

Similar threads