Grafico heikin ashi

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24446 quote
    Luigi5192
    Participant
    Average

    salve a tutti volevo sapere come indicare nel codice del backtest le candele heikin ashi.

    #24461 quote
    Nicolas
    Keymaster
    Master

    Troverete di seguito il codice Heikin candelieri ashi da integrare nella vostra strategia di trading.

    if barindex>1 then
     haclose=(open+close+low+high)/4
     haopen=(haopen[1]+haclose[1])/2
     xHigh = Max(haOpen, haClose)
     xLow = Min(haOpen, haClose)
     hahigh = Max(High,xHigh)
     halow = Min(Low,xLow)
    endif

    Ad esempio, se si desidera calcolare una media mobile con un Heikin Ashi vicino, farlo in questo modo:

    ma20 = average[20](haclose)

    Spero che vi aiuterà.

    #24473 quote
    Luigi5192
    Participant
    Average

    La ringrazio, quindi se mi serve la chiusura dell’heikin basta che utilizzo il valore haclose giusto?

    grazie

    #24489 quote
    Nicolas
    Keymaster
    Master

    Sì, è giusto!

    #24490 quote
    Luigi5192
    Participant
    Average

    La ringrazio, saluti.

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

Grafico heikin ashi


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Luigi5192 @luigi5192 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Luigi5192
9 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/08/2017
Status: Active
Attachments: No files
Logo Logo
Loading...