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

[amibroker] Re: reg.Ichimoku Chart



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@xxx> 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 amibroker@xxxxxxxxxxxxxxx, "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
> >
>




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/