AmiBroker supports assigning a position score to each signal using 
the PositionScore array. Just invent a scoring system to represent 
your categories along the lines of the following:

0 No signal
1 Strong sell
2 Moderate sell
3 Weak sell
4 Weak buy
5 Moderate buy
6 Strong buy

Then modify your code to assign a PositionScore to the signal along 
the lines of:

Buy = <buy test>
Sell = <sell test>
PositionScore = IIF(Buy,
                    IIF(<strong buy>, 6, IIF(<mod buy>, 5, 4)),
                    IIF(Sell,
                        IIF(<strong sell>, 1, IIF(<mod sell>, 2, 3))),
                        0);

You will need to replace all occurences of <...> with actual logic. 
Then, as answered by murthysuresh, you can just add Exploration code 
to print out an additional column (see 
http://www.amibroker.com/guide/h_exploration.html ) as follows:

Filter = (Buy OR Sell);
AddColumn(PositionScore, "Score", 1.0);

You can sort the resulting Exploration results table just by clicking 
on the "Score" column header.

--- In [email protected], "murthysuresh" <[EMAIL PROTECTED]> wrote:
>
> do a explore with your rules and you can print any kind of results 
that 
> u want. check teh documentation for explore options.
> 
> 
> --- In [email protected], "npgandhi1964" <npgandhi@> wrote:
> >
> > I want to provide different buy& Sell signals,like 
> > 1. Bullish buy
> > 2.Modreate buy
> > 3.weak buy
> > 
> > same for sellsignals also.
> > 
> > Any one can help to generate above signals inAmibroker software.
> > 
> > Nimish
> >
>


Reply via email to