I’m using the Ichimoku and I’d like to exit a short position if the close price of the previous candle goes above the Tenkan or Kijun lines + a few pips (yellow and orange lines on the picture). The problem is that the stop is triggered even if the price never goes up those two lines (see picture). The problem is caused by “(close[1] > KijunSen1[1]+ExitTenkanKijun*pipsize”. If I change [1] to [0] it works and doesn’t trigger the stop. Why ? The Tenkan part of the code doesn’t cause any problem. Thanks
Thanks very much for having given your solution to conclude this topic. Just a quick moderation point, please do not double post, even in 2 different forum languages, in order to respect the publication rules given in the yellow box at the bottom of this page, thanks (we’ll delete the topic in french forum, second after current one in chronoligical order).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue