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

Re: [amibroker] Re: Plotting Signals



PureBytes Links

Trading Reference Links

try something like this, you have to be completely specific about what
set of conditions is wanted
PlotShapes((Sell and Sell1 and Sell2==0)*shapeDigit1, colorLightBlue,0,L);
PlotShapes((Sell and Sell1==0 and Sell2)*shapeDigit2, colorLightBlue,0,L);
PlotShapes((Sell and Sell1 and Sell2)*shapeDigit3, colorLightBlue,0,L);

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 29/02/2008, chorlton_c_hardy <chorlton-c-hardy@xxxxxxxxxxxxx> wrote:
>
>  UPDATE: Running some backtesting, there are times when both Sell
>  conditions are met at the same time and in these instances I would
>  like to plot this situation as well...probably using the number 3 ie:
>
>  PlotShapes(Sell3*shapeDigit3, colorLightBlue,0,L);
>
>  Thanks in advance,
>
>
>  --- In amibroker@xxxxxxxxxxxxxxx, "chorlton_c_hardy" <chorlton-c-
>
> hardy@xxx> wrote:
>  >
>  > Hello All,
>  >
>  > I currently have 2 seperate conditions (Sell1 & Sell2) which if
>  > activated individually creates a Sell Signal. Only one of the Sell
>  > conditions will ever activate the signal.
>  >
>  > In addition, to avoid redundant signals, I use the following code.
>  >
>  > buy = ExRem( buy, sell );
>  > sell = ExRem( sell, buy );
>  >
>  >
>  > What I would like to do now is at the point where a Sell Signal
>
> > actually appears on my chart, I want to plot a number which
>
> > represents which Sell Condition was used to exit the trade. The
>  code
>  > I have for this is:
>  >
>  > PlotShapes(Sell1*shapeDigit1, colorLightBlue,0,L);
>  > PlotShapes(Sell2*shapeDigit2, colorLightBlue,0,L);
>  >
>  > The problem I have at the moment, is that if I simply use the above
>  > code, the numbers are plotted each time the Sell conditions are
>  true
>  > even though most of them are redundant signals.
>  >
>  > Consequently, is there anyway to only plot them when a Sell signal
>  is
>  > also plotted?
>  >
>  >
>  > Kind Regards,
>  >
>  > Chorlton
>  >
>
>
>
>
>
>
>  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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>  http://www.amibroker.com/devlog/
>
>  For other support material please check also:
>  http://www.amibroker.com/support.html
>
>  Yahoo! Groups Links
>
>
>
>


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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/