Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

NMN TradeMarks for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker, help

This is scriptlet to use with any price candles to see the immediate possibility of visualising the range of the trend. Mainly intended for DSE- Dhaka Stock Exchange trade-house members using Amibroker 5.0+ .

Just Copy & Paste on a new Formula editor and then drag & drop on your chart.

See how it works and comment your pits and falls on this script!

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn almost 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly almost 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago
Horizontal Live Priceline Tool
Submitted by northstar about 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN( "NMN-TradeMarking" );

SetFormulaName( "NMN-TradeMarking" );

Comm			= Param( "Buy-Sell Commission", 0.6, 0, 5, 0.001 );
DayProfit		= Param( "Profit per day (in %)", 1.25, 0.05, 15, 0.01 );
NMat			= Param( "Normal maturity (T+#days)", 4, 0, 365, 1 );
ZMat			= Param( "Z-Group maturity (T+#days)", 11, 0, 365, 1 );

// Indication colors & their toggles
ShowBuyLine	= ParamToggle( "Show BUY line", "Off,On", 1 );
BuyColor		= ParamColor( "Buy line color", colorAqua );
ShowTPLine		= ParamToggle( "Show 'Take Profit' line", "Off,On", 1 );
TPColor		= ParamColor( "TakeProfit line color", colorGreen );
ShowBELine		= ParamToggle( "Show 'Break Even' line", "Off,On", 1 );
BEColor		= ParamColor( "BreakEven line color", colorRose );
ShowSLLine		= ParamToggle( "Show 'Stop Loss' line", "Off,On", 1 );
SLColor		= ParamColor( "StopLoss line color", colorRed );
ShowVertical	= ParamToggle( "Show vertical limits", "Off,On", 0 );
CreateBand 	= ParamToggle( "Show band", "Off|On" );

// Nifty Calculations
Commission		= Comm / 100; // Percentage
PerDayProfit	= DayProfit / 100 ;
TradeDays		= IIf( GroupID( 1 ) == "Z", ZMat, NMat ) ;

TradePrice		= C;//Min( O, C );

TakeProfit		= TradePrice * ( 1 + Commission ) * ( 1 + PerDayProfit * TradeDays ) / ( 1 - Commission );
BreakEven		= TradePrice * ( 1 + Commission ) * ( 1 + PerDayProfit / ( 1 - Commission ) );
StopLoss		= TradePrice * ( 1 - Commission ) * ( 1 - PerDayProfit / ( 1 + Commission ) );

if ( Status( "action" ) == actionIndicator )
{
    // Running trade marking

    if ( ShowVertical == True )
    {
        bi = BarIndex();
        arrayitem = SelectedValue( bi ) - bi[ 0 ];
        bars = Tradedays;
        Line1 = //Cum( 1 ) == LastValue( Cum(1) ) - bars;
            //SelectedValue( BarIndex() ) - bars;
            arrayitem - bars;
        Plot( Line1, "Line is ( " + WriteVal( bars, 1 ) + " ) bars back", colorRose, styleHistogram | styleOwnScale );

        //Plot( IIf( Ref( C, -4 ), 1, 0 ), "", colorRose, styleHistogram | styleOwnScale | styleNoLabel );
    }

    // Buy line : if it is opted to not have shown
    if ( ShowBuyLine )
    {
        Plot( SelectedValue( TradePrice ), "\nBuy @", BuyColor, styleLine | styleThick );

        // TakeProfit/TP line

        if ( ShowTPLine )
        {
            Plot( SelectedValue( TakeProfit ), "\nTP @", TPColor, styleLine | styleThick );
        }

        // BE line
        if ( ShowBELine )
        {
            Plot( SelectedValue( BreakEven ), "\nBE @", BEColor, styleThick | styleDashed );
        }

        // StopLoss line
        if ( ShowSLLine )
        {
            Plot( SelectedValue( StopLoss ), "\nSL @", SLColor, styleLine | styleThick );
        }
    }

    // Create band effect
    if ( CreateBand )
    {
        PlotOHLC( SelectedValue( BreakEven ), SelectedValue( BreakEven ), SelectedValue( TakeProfit ), SelectedValue( TakeProfit ), "", ColorBlend( TPColor, colorWhite, 0.85 ), styleCloud | styleNoLabel | styleNoTitle );
        PlotOHLC( SelectedValue( TradePrice ), SelectedValue( TradePrice ), SelectedValue( BreakEven ), SelectedValue( BreakEven ), "", ColorBlend( BuyColor, colorWhite, 0.75 ), styleCloud | styleNoLabel | styleNoTitle );
        PlotOHLC( SelectedValue( StopLoss ), SelectedValue( StopLoss ), SelectedValue( TradePrice ), SelectedValue( TradePrice ), "", ColorBlend( SLColor, colorWhite, 0.85 ), styleCloud | styleNoLabel | styleNoTitle );
    }
}
_SECTION_END();

4 comments

1. sikandar

Nice looking one only for buy.Can you add codes for shorts also

2. sukas

Good efforts but compulsory need Sell entry and Tgt also. Pl try which will very usefull to all
Sukas

3. Shailendra-0

HI
VERY NICE AFL PLS. TELL ME HOW YOU POSTED IT I HAVE DONE SOME POSTING TOO BUT IN MY INDICATOR IT SHOWS "NOT APPROVED YET " PLS. HELP

4. kv_maligi

Please also following

1) short selling
2) scan/exploration
3) for which TF it gives best results

Thanks
Viswanath

Leave Comment

Please login here to leave a comment.

Back