ATR Strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175107 quote
    efahmyefahmy
    Participant
    Average

    edit:  this topic refers to https://www.prorealcode.com/topic/bar-colour-related-to-atr/

     

    Hi Rob,

    Could you please help in this code so that it can go long repetitively?

    AGBAR = AverageTrueRange[14](close) * 1.5
    IF Range > AGBAR AND close > open THEN
    BUY 10 CONTRACTS AT MARKET
    ENDIF

    #175137 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Do not append different questions to exixting topics in different support forums.

    I created a new topic in ProOrder support.

    Thank you 🙂

    There you go:

    DEFPARAM CumulateOrders = true
    AGBAR = AverageTrueRange[14](close) * 1.5
    IF Range > AGBAR AND close > open THEN
       BUY 10 CONTRACTS AT MARKET
    ENDIF
    set stop pLoss 100
    set target pProfit 300
    #175164 quote
    efahmyefahmy
    Participant
    Average

    Thanks mate

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

ATR Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
efahmy @efahmy Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by efahmyefahmy
5 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/11/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...