allarme heikin ashi

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #205576 quote
    JS
    Participant
    Veteran

    Ciao @tommygabry

    Con la presente il sistema SMI / Heikin Ashin…

    DefParam CumulateOrders=False
    
    S1=SMI[14,3,5](Close)//Stochastic Momentum Index
    S2=Average[3](S1)//Signal line of SMI
    
    //Haikin-Ashin 
    If BarIndex = 0 then
    HAClose = TotalPrice
    HAOpen = (Open + Close)/2
    Else
    HAClose = TotalPrice
    HAOpen = (HAOpen[1] + HAClose[1])/2
    EndIf
    
    REM SMI is lower than -40 and SMI crosses over the signal line and Haikin-Ashin is green 
    If S1<-40 and S1 Crosses Over S2 and HAClose >= HAOpen then
    Buy 1 contract at Market
    EndIf
    
    REM SMI is higher than 40 and SMI crosses under the signal line and Haikin-Ashin is red
    If S1>40 and S1 Crosses Under S2 and HAOpen >= HAClose then
    SellShort 1 contract at Market
    EndIf
    
    Scherm­afbeelding-2022-12-10-om-20.53.27.png Scherm­afbeelding-2022-12-10-om-20.53.27.png
    #205578 quote
    JS
    Participant
    Veteran
    #205582 quote
    tommygabry
    Participant
    New
    grazie molte   pero’ non riesco a caricarlo mi dice linea 1 errore interno ordine sconosciuto poi errore anche nella 18-19-21
    #205584 quote
    JS
    Participant
    Veteran

    È strano, nessun problema con il codice qui …

    Forse funzionerà con il file itf …

    SMI-Haikin-Ashin.itf
Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

allarme heikin ashi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
tommygabry @tommygabry Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/10/2022
Status: Active
Attachments: 6 files
Logo Logo
Loading...