Spiegazione riga codice

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #155663 quote
    danistutadanistuta
    Participant
    Senior

    Ho trovato questo codice in uno script, quale è il significato preciso?

    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0

    Grazie mille.

    #155667 quote
    GraHalGraHal
    Participant
    Master

    Nessuna negoziazione sarà aperta il sabato o la domenica

    robertogozzi thanked this post
    #155676 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Esatto, puoi usare:

    IF Not daysForbiddenEntry THEN

    è scritto in modo logicamente inverso a quanto dovrebbe essere più naturale, ovvero in una forma positiva, non negativa, tipo:

    DaysAllowed = OpenDayOfWeek >= 1 AND OpenDayOfWeek <= 5
    IF DaysAllowed THEN

    però funziona.

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

Spiegazione riga codice


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
danistuta @danistuta Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/30/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...