Opening Gap

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #117442 quote
    DavidB
    Participant
    Junior

    High I am interested in trying to code a simple trading strategy using the 5 minute time frame. That you would buy the Dax on the close of the first 5 minute candle if there was a opening gap  greater than 40 points. How do you bring the previous days close into the calculation.

    My thoughts?

    Dclose > open [40]

     

    David

    #117462 quote
    robertogozzi
    Moderator
    Master
    If (Open > (DCLOSE(1) + 40 * Pipsize)) and (IntraDayBarIndex = 0) then

    this (not tested) checks that the opening of a candle is 40+ pips higher than previous day’s close on the first bar of any new day.

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

Opening Gap


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
DavidB @davidb Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
6 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/21/2020
Status: Active
Attachments: No files
Logo Logo
Loading...