Define indicator condition

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203081 quote
    Traderfox06
    Participant
    Average

    Dear experts,

    I wonder, if you could help me to define a correct long condition for an indicator like the SMI.

    I tried the following, but I receive an error message, saying “squared bracket suits better than a comma”.

    However, in the following statement, I do not use a comma.

    LongCond21 = SMI[15,3,3,3] (Close[0]) >= (SMI[15,3,3,3] (Close[1])

    Wouldn’t it be good to have a “rising” and “falling” function instead of using conditions with “a<b” and “a>b”?

    Thanks and kind regards!

    #203082 quote
    JC_Bywan
    Moderator
    Master

    Hi, SMI needs 3 parameters, not 4. And next after that one is solved, there is a parenthesis mismatch with the one opened after >= but not closed at the end. All together, your line becomes:

    LongCond21 = SMI[15,3,3](Close[0]) >= SMI[15,3,3](Close[1])
    #203083 quote
    Traderfox06
    Participant
    Average

    Thank you very much. Perfect support :-).

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

Define indicator condition


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/26/2022
Status: Active
Attachments: No files
Logo Logo
Loading...