Buy if > 20 points movement

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104308 quote
    bullbear
    Participant
    Senior

    DAX 1 min timeframe.
    How to code the following?

    I want to take a long pos if the price moves above 20 points in the past candle.

    #104327 quote
    robertogozzi
    Moderator
    Master

    I think it’s quite difficult to have a range of more than 20 pips in a single 1-minute candle (it just happend a few time these last days, but it won’t happen that many times):

    EntryPrice = close + (20.1 * pipsize)
    IF Not OnMarket THEN
       BUY 1 CONSTRACT AT Entryprice STOP
    ENDIF
    #104341 quote
    bullbear
    Participant
    Senior

    Thanks Robert

    I will test the code on different timeframes.

    I want a more active algo and this code suitable for that.

    Will add other filters of course.

    #104469 quote
    Vonasi
    Moderator
    Master

    Topic moved to ProOrder forum. bullbear – please try to post in the correct forum with future topics. 🙂

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

Buy if > 20 points movement


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
bullbear @bullbear Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Vonasi
6 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/06/2019
Status: Active
Attachments: No files
Logo Logo
Loading...