ATR Strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175107 quote
    efahmy
    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
    robertogozzi
    Moderator
    Master

    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
    efahmy
    Participant
    Average

    Thanks mate

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

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 efahmy
4 years, 6 months ago.

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