A signal called by another

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16312 quote
    yanaphilyanaphil
    Participant
    New

    Hi, it’s a pleasure to post my first message here

    A setup found with average mobile give a value to signal S1

    I want to give a value to S2, if S1 was at least one time equal to 1 during the last 50 periods and condition3

    Here as I tried but i failed šŸ™

    If Setup1a then
    S1 = 1
    Elsif Setup1b then
    S1 = -1
    Else
    S1 = 0
    Endif
    
    if summation[50](S1=1)>0 and condition3 then
    S2 = 1
    elsif summation[50](S1=-1)> 0 and condition3 then
    S2 = -1
    else
    S2 = 0
    endif 
    #16323 quote
    NicolasNicolas
    Keymaster
    Legend

    Seems that you already answered to your own question in the same french topic, am I right?

    #16473 quote
    yanaphilyanaphil
    Participant
    New

    Right, the solution to “if S1 was at least one time equal to 1 during the last 50 periods and condition3″ is

    if summation[50](s1) >0 and condition3
Viewing 3 posts - 1 through 3 (of 3 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

A signal called by another


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
yanaphil @yanaphil Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by yanaphilyanaphil
9 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/10/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...