Bonjour Nicolas,
Si tu as le temps je désirerais inverser cette ligne code à la baisse
Je désire inverser cette ligne de code qui est destinée qu’au harami en cassure haussière.
Donc la même chose mais à la baisse.
Merci pour cette aide.
CI JOINT LIGNE DE CODE
Defparam cumulateorders = false
REM inside bar
c1= high[0] < high[1]
c2= low[0] > low[1]
harami = c1 and c2
haramihaussier = harami and close > open
IF haramihaussier then
distanceaustop = high[1] - low[1]
buy at high[1] stop
ENDIF
Merci
Si j’ai bien compris, on cherche un harami baissier et on pose un ordre stop au bas de la bougie qui a vu le signal ? Si oui, je pense que cette version modifiée de ta stratégie doit fonctionner : (à tester)
Defparam cumulateorders = false
REM inside bar
c1= high[0] < high[1]
c2= low[0] > low[1]
harami = c1 and c2
haramibaissier = harami and close < open
IF haramibaissier then
distanceaustop = high[1] - low[1]
sellshort at low[1] stop
ENDIF