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

Re: [amibroker] Guppy Count Back Lines - VBscript HELP !!! - Type Mismatch



PureBytes Links

Trading Reference Links

Geoff,

Wasn't the formula for the count back line provided last year...I seem
to remember that it was....maybe a search of the archives might produce
it...

Anthony

"grmulhall " wrote:

>  Hi,
>
> In coding Guppy's count back lines (which I'll post in the AFL
> library when complete) I get a 'Type Mismatch' error. Presumably the
> datatype for the graph I'm creating doesn't match Ami's Low array
> type.
>
> The script is below if anyone can assist.
>
> Thanks,
>
> Geoff
>
> /* Guppy Count Back Lines */
> /* Geoff Mulhall 12-02-2003 */
>
> EnableScript("Vbscript");
>
> <%
>
> LowArray = AFL("low")
>
> CurrentLow = LowArray(UBound(LowArray))
>
> For I = UBound(LowArray) to LBound(LowArray) Step -1
>    J = I - 1
>    Hits = 0
>    While Hits < 3 AND J > 0
>       If LowArray (J) < CurrentLow then
>          Hits = Hits + 1
>          CurrentLow = LowArray (J)                  ' Type Mismatch
>       End If
>       J = J - 1
>    Wend
>    If Hits = 3 Then
>       StopArray(I) = CurrentLow
>    End If
> Next
>
> AFL.Var("CBLStop") = StopArray
>
> %>
>
> GraphXSpace = 5;
>
> /* Candlestick Chart */
>
> Plot(Close," ",1,64);
>
> Plot(CBLStop,"Count Back Line", colorBlue,styleLine);
>
>
>                    Yahoo! Groups Sponsor
                        ADVERTISEMENT


>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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