pro ordre date

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #77526 quote
    sublime06
    Blocked
    Senior

    Bonjour, je voudrais savoir comment ajouté une date de validité dans le programme. mise a l arrêt a une date défini . merci

    #77527 quote
    robertogozzi
    Moderator
    Master

    Cela arrêtera la stratégie après le 30/09/2018:

    IF time > 20180930 THEN
       QUIT
    ENDIF
    #77641 quote
    sublime06
    Blocked
    Senior

    grand merci :)Roberto

    #78514 quote
    sublime06
    Blocked
    Senior

    salut, si j insère dans le programe ok, merci. maintenant j essai dans un indicateur donchian, mais j ai une erreur. possible de trouvé une solution . merci

    IF BarIndex > N THEN
    upperBand = Highest[N](High)
    lowerBand = Lowest[N](Low)
    middleBand = (upperBand + lowerBand)/2
    ELSE
    upperBand = Undefined
    lowerBand = Undefined
    middleBand = Undefined
    ENDIF
    RETURN upperBand[1] AS “Upper band” , lowerBand[1] AS “Lower band” , middleBand[1] COLOURED(0,255,0) AS “Middle band”

    IF BarIndex > N THEN
    upperBand = Highest[N](High)
    lowerBand = Lowest[N](Low)
    middleBand = (upperBand + lowerBand)/2
    ELSE
    upperBand = Undefined
    lowerBand = Undefined
    middleBand = Undefined
    ENDIF
    RETURN upperBand[1] AS "Upper band" , lowerBand[1] AS "Lower band" , middleBand[1] COLOURED(0,255,0) AS "Middle band"
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

pro ordre date


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 08/04/2018
Status: Active
Attachments: No files
Logo Logo
Loading...