CROSSES OVER Price issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #83812 quote
    MrCrous
    Participant
    Average

    Hello all,

    I try to use the function CROSSES OVER (or under, same issue).

    if close CROSSES OVER Bn1Pos then
    Div = 10000
    else
    div = 0
    endif

     

    note: in the RETURN statement I change the variable Bn1Pos and Div  names :

    Return Bn1Pos STYLE(dottedline,1) as"vB1Pos",div COLOURED(255,125,0) style(line,1) as "Déclenchement"

    Here attached the result.As you can see, the price closes higher than vB1Pos and still it sets Div to 10 000.

    Thank you 🙂

    #83822 quote
    Vonasi
    Moderator
    Master

    Please use the ‘Insert PRT Code’ button to make your post more readable. I have tidied up your post for you. 🙂

    Your image is not very clear. Crosses over is only true if on the last candle the close was under and on this close the close was above. Your image just shows close > Bn1Pos as we can not see when the actual cross happened.

    #83869 quote
    MrCrous
    Participant
    Average

    Hello,

     

    Thank you for your action Vonasi 🙂

     

    And what you said is interesting, and exact… The Déclenchement variable is set to 10 000 on the previous candle. I mean, the crossing happened on the previous candle.

     

    I need to see how to handle this …

     

    Thank you !!

     

    (topic closed, if any admin is around)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

CROSSES OVER Price issue


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
MrCrous @mrcrous Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by MrCrous
7 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/30/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...