XJO 0.67% 8,150.0 s&p/asx 200

bit reluctant to wade in on conversationbut heres my take,bare...

  1. 1,374 Posts.
    bit reluctant to wade in on conversation
    but heres my take,

    bare in mind its a 'currency' based strategy
    so it may not work as well on other instruments...

    tends to work better the steeper the countdown
    as a bit of volatility or sideways movement tends
    to distort things abit...

    when i checked the TD COMBO buy signals the accuracy
    was even worse so the sell signals seem to work
    better...

    heres the code/script i have used but it uses a slightly
    diferent form of visual basic so not sure
    if u can transpose code to suit yur own softwares
    'operators'...


    Dim fTDSetup, fTDCountdown as Single

    Dim bTDSetupFound as Boolean



    If Not bTDSetupFound Then ' If we have not already found a setup, look for one

    If C < C[4] Then ' Look for a single bar setup for a long

    If fTDSetup < 0 Then fTDSetup = 0 ' Reset TDSetup count if we have changed direction

    fTDSetup += 1 ' If we have a bar setup,increment our counter by one.

    ElseIf C > C[4] Then ' Look for a single bar setup for a short

    If fTDSetup > 0 Then fTDSetup = 0 ' Reset TDSetup count if we have changed direction

    fTDSetup -= 1 ' If we have a bar setup, decrease our counter by one.

    Else

    fTDSetup = 0 ' Reset our counter if there are not consequtive bars

    End If



    If Abs(fTDSetup) = 9 Then bTDSetupFound = True ' We have found 9 consequtive setup bars.

    Else ' We have found a setup, start the countdown

    If fTDSetup > 0 And C <= L[2] Then ' If we have a long setup, count the number of bars where C <= L[2]

    fTDCountDown += 1

    ElseIf fTDSetup < 0 And C >= H[2] Then ' If we have a short setup, count the number of bars where C >= H[2]

    fTDCountDown += 1

    End If

    End If



    PlotHist("TD Setup", fTDSetup, 0)

    PlotHist("TD Countdown", fTDCountdown, 0)



    If fTDCountDown >= 13 Then ' We have 13 countdown bars

    If fTDSetup > 0 Then Signal = LongSignal ' If setup was long then fire long signal

    If fTDSetup < 0 Then Signal = ShortSignal ' If setup was short than fire short signal

    fTDSetup = 0 ' Reset our Setup count

    fTDCountDown = 0 ' Reset our countdown

    bTDSetupFound = False ' Reset our Setup Found flag

    End If







 
watchlist Created with Sketch. Add XJO (ASX) to my watchlist
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.