if touched

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5163 quote
    Real ProReal Pro
    Participant
    Average

    Is it possible to code “buy at market if indicator x is touched”?

    Thanks for the help

    #5166 quote
    AdolfoAdolfo
    Participant
    Senior

    As for as I know, if is touched buy inmediatly is not possible at the moment, system will wait until current candle finish.

    I found other ways to get similar or better price sometimes when this occours, just let us know wich indicators should be touched to code your premise.

    Cheers.

    #5168 quote
    Real ProReal Pro
    Participant
    Average

    Thanks for replying Adolfo.  The MA[5](high) of the previous bar.

    #5184 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes it’s possible. You have to test the OHLC values (at least 2 of them) of the previous period if it were above or below the indicator you’d like to test.

    #5196 quote
    Real ProReal Pro
    Participant
    Average

    Thanks Nicolas.

    Something like this?

    a = MA[5](high)

    b = L<=a AND H>=a

    What do I do next please?

    #5201 quote
    NicolasNicolas
    Keymaster
    Legend

    Almost good! Something like this :

    a = MA[5](high) 
    b = Low[1]<=a AND High[1]>=a
    #5215 quote
    Real ProReal Pro
    Participant
    Average

    Great …thank you.

Viewing 7 posts - 1 through 7 (of 7 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

if touched


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by Real ProReal Pro
10 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/10/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...