Closes x times in a row above MA condition

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

    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.

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 robertogozzi
5 years, 6 months ago.

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