ciao cerco un codice che calcola il pull back in un trend in salita e discesa
il codice deve lavorare nel forex
Immagine
Ciao, questo è un rimbalzo su una media mobile di 20 periodi, giusto?
E ‘piuttosto complicato in codice, perché è qualcosa di molto visivo!
Una semplice rimbalzo media mobile può essere codificato in questo modo:
mm = average[20](close)
IF low<mm and close>mm then
BUY 1 SHARE AT MARKET
SET STOP LOSS (close-low)
SET TARGET PROFIT (highest[10]-close)
ENDIF
Questo è un esempio da esplorare! 🙂
THANK YOU
whitout moving average?
i’m looking for analysis candles code as:
mm= average[20](close)
c1= high[7] > high[6]
c2= high[6]>high[5]
c3= high[5]>high[4]
c4= high[4]>high[3]
c5= high[3]>high[2]
c6= high[2]>high[1]
c7= high[1]<high
c8= mm[1]<mm // for to establish up trand
if c1 and c2 and c3 and c4 and c5 and c6 and c7 and c8 then
buy 1 shares at market nextbaropen
endif
but this code analizes the continius descendig order high level
in differents cases we can have the not continius descendig order high level
Nicolas , which is for you the best analysis code for that case?