Closes x times in a row above MA condition

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #141241 quote
    LohanLohan
    Participant
    New

    Hello i having problems coding a system

    I want to buy when price closes 6 times in a row above MA5

     

    Thanks

    #141253 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    IF summation[6](close > average[5,0](close)) = 6 THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
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

Closes x times in a row above MA condition


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Lohan @lohan Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 1 month ago.

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