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
    Fran55
    Participant
    Veteran

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

     

    Need Code, please… Thanks!

    #141102 quote
    Francesco
    Participant
    Veteran

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

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

    I think you need 10 candles in a loss:

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

    Sorry,

     

    For long and short operations?

     

    Thanks!

    #141123 quote
    robertogozzi
    Moderator
    Master

    Both.

    #141126 quote
    Fran55
    Participant
    Veteran

    Perfect, thanks!!!

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

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

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