outsidebar trading code

Forums ProRealTime English forum ProBuilder support outsidebar trading code

Viewing 4 posts - 1 through 4 (of 4 total)
  • #248598
    Can someone help me, i get an error with outsidebar code: the following variable is not defined: Signalbarheight
    //SignalbarHeight=5
    if range>=SignalbarHeight*pipsize then
    if high>high[1] and close<low[1] then
      bear=1
      bull=0
    elsif low<low[1] and close>high[1] then
      bull=1
      bear=0
    else
      bear=0
      bull=0
    endif
    else
    bear=0
    bull=0
    endif
    offset=AverageTrueRange[14](close)*2
    if bear then
    DRAWARROWDOWN(barindex, high+offset) coloured(255,0,0)
    elsif bull then
    DRAWARROWUP(barindex, lowoffset) coloured(0,255,0)
    endif
    return
    #248599

    Uncomment line 1 (remove the two leading slashes).

     

    1 user thanked author for this post.
    #248600

    Hi,

    try deleting the // at beginning of the first line: //SignalbarHeight=5

    SignalbarHeight=5

    if range>=SignalbarHeight*pipsize then
    if high>high[1] and close<low[1] then
      bear=1
      bull=0
    elsif low<low[1] and close>high[1] then
      bull=1
      bear=0
    else
      bear=0
      bull=0
    endif
    else
    bear=0
    bull=0
    endif
    offset=AverageTrueRange[14](close)*2
    if bear then
    DRAWARROWDOWN(barindex, high+offset) coloured(255,0,0)
    elsif bull then
    DRAWARROWUP(barindex, lowoffset) coloured(0,255,0)
    endif
    return
    2 users thanked author for this post.
    #248602

    (Roberto was faster)

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login