Crossover vs Greater

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #55305 quote
    Mansoor
    Participant
    Average

    Can someone explain why am I getting different results? There are other conditions too but they should not affect this result.

    • First picture is based on if k crosses over d.
    • Second picture is based on  if k > d.
    #55313 quote
    Nicolas
    Keymaster
    Master

    A crosses over or under implies that the crosses is done (previous bar, the indicator k was below d and current bar k is over d), while k>d is only a simple comparison on the same bar of these 2 values.

    #55323 quote
    Mansoor
    Participant
    Average

    I know but this does not explain this particular case. Plz read the question again and look at the pictures. The second strategy must buy at exactly the same bar as first strategy. (If k has crossed over d it means k > d)

    #55325 quote
    Nicolas
    Keymaster
    Master

    Without checking the code, I can’t help more sorry 😐 Did you check all other conditions? Did you made GRAPH of k and d variables to check if they are exactly the same as the indicator?

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

Crossover vs Greater


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mansoor @mansoor Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/11/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...