[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Displaying Stops



PureBytes Links

Trading Reference Links


place the "equity(1)" after the "sell" (last line)

And, make sure that you have this statement also;

SetChartOptions(0,chartShowArrows|chartShowDates);

walt

--- In amibroker@xxxxxxxxxxxxxxx, "graeme_oswin" <goswin@xxxx> wrote:
> 
> Thanks Walt for the response, but this doesn't appear to do 
> anything.  I'm obviously missing something.
> 
> Here is a simple Bollinger Oscillator System I have been playing.  
> Where and how do I apply the Equity(1)?  Currently using 4.7 RC2.
> 
> Warm regards,
> 
> Graeme
> 
> _SECTION_BEGIN("BBand Oscillator2");
> 
> /* CCT Bollinger Band Oscillator 
> **
> ** Originally developed by Steve Karnish 
> ** http://www.cedarcreektrading.com
> **
> ** AFL translation by Tomasz Janeczko
> **
> ** Set scaling: Automatic
> ** Grid: Middle, Level 0
> */
> 
> BBosc= 100 * ( C + 2*StDev( C, 21) - MA( C, 21 ) ) / ( 4 * StDev( 
C, 
> 21 ) );
> //bot=Optimize("Bottom",5,0,30,2);
> bot=25;
> //top=Optimize("Top",95,70,100,2);
> top=94;
> //per=Optimize("per",4,2,25,1);
> per=18;
> 
> 
> Plot(C,"",colorBlack,64|styleOwnScale);
> Plot(BBosc,"BolngerBand Oscillator",colorRed,styleLine|styleThick);
> Plot(EMA(BBosc,per), "EMA Per",1,styleLine|styleThick);
> PlotGrid(50,colorBlack);
> PlotGrid(bot,colorBlack);
> PlotGrid(top,colorBlack);
> 
> 
> //System Section
> SetFormulaName("Bollinger Oscillator");
> SetTradeDelays( 1, 1, 1, 1 );
> SetOption( "initialequity", 20000 );
> PositionSize = 4000;
> SetOption( "MaxOpenPositions", 10 );
> SetOption( "PriceBoundChecking", 1 );
> SetOption( "CommissionMode", 2 );
> SetOption( "CommissionAmount", 19.95);
> PositionScore = 100/C;
> //ApplyStop(stopTypeLoss, stopModePercent, Optimize( "max. loss 
stop 
> level", 10, 2, 30, 1 ), True ); 
> ApplyStop(stopTypeLoss, stopModePercent, 6, True ); 
> 
> 
> Buy=Cross(EMA(BBosc,per),bot) ;
> Scond1=Cross(EMA(BBosc,per),top);
> Sell = scond1  ;
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug" <WSCHWARZ@xxxx> wrote:
> > 
> > Graeme;
> > 
> > use the function;  equity(1)
> > and the arrows for "applystops" will be shown...
> > 
> > Walt
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "graeme_oswin" <goswin@xxxx> 
> wrote:
> > > 
> > > Dear all,
> > > 
> > > Can someone please show me how to plot a shape where stops have 
> > been 
> > > triggered in a system.
> > > 
> > > eg
> > > 
> > > ApplyStop(stopTypeLoss, stopModePercent, 10, True );
> > > Plot a shape where this stop was triggered.
> > > 
> > > Regards,
> > > 
> > > Graeme





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/