A signal called by another

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16312 quote
    yanaphil
    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
    Nicolas
    Keymaster
    Master

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

    #16473 quote
    yanaphil
    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.

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 yanaphil
9 years, 3 months ago.

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