JSParticipant
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
JSParticipant
Veteran
Ciao
@tommygabry
Il sistema dà belle cifre…
grazie molte
pero’ non riesco a caricarlo
mi dice
linea 1 errore interno ordine sconosciuto
poi errore anche nella 18-19-21
JSParticipant
Veteran
È strano, nessun problema con il codice qui …
Forse funzionerà con il file itf …