Prüfen letzte 48 bars

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #81473 quote
    teddy58
    Participant
    Average

    Hallo zusammen, ich möchte bei Devisen prüfen, ob der Gleitende Durchschnitt 100 während der letzten 48 bars an keiner Stelle mehr als 400 pips von aktuellen close entfernt war. Hat jemand eine Idee wie das zu programmieren ist?

    #81648 quote
    Nicolas
    Keymaster
    Master

    Ich denke, dass der unten stehende Code nach Bedarf funktionieren sollte. Es sollte getestet werden, ob der gleitende Durchschnitt 100 Perioden in den letzten 40 Perioden mehr als 400 Mal gewesen ist. Bestätigst du?

    c = close
    test = summation[40](abs(c-average[100])>400*pointsize)>0
    
    return test
    teddy58 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Prüfen letzte 48 bars


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
teddy58 @teddy58 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 5 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 09/27/2018
Status: Active
Attachments: No files
Logo Logo
Loading...