Close TRADE if there are 10 candles in a row below buy price.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #141101 quote
    Fran55Fran55
    Participant
    Veteran

    Close TRADE if there are 10 candles in a row below buy price.

     

    Need Code, please… Thanks!

    #141102 quote
    FrancescoFrancesco
    Participant
    Veteran

    Guessing that with “below buy price” you mean red candles:

    if summation[10](open>close)= 10 then
    #141107 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I think you need 10 candles in a loss:

    if summation[10](positionperf < 0)= 10 then
    #141113 quote
    Fran55Fran55
    Participant
    Veteran

    Sorry,

     

    For long and short operations?

     

    Thanks!

    #141123 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Both.

    #141126 quote
    Fran55Fran55
    Participant
    Veteran

    Perfect, thanks!!!

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

Close TRADE if there are 10 candles in a row below buy price.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fran55 @fran55 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Fran55Fran55
6 years, 2 months ago.

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