Opening Gap

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #117442 quote
    DavidBDavidB
    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
    robertogozzirobertogozzi
    Moderator
    Legend
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
6 years, 8 months ago.

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