Viewing 2 posts - 1 through 2 (of 2 total) Forums>EA Wizard>Make my EA>My Martingale Ranko EA project Sunny 4.19.2017 7:53am #116659 | Participant 21 Posts Trade rule 1: If the last bar was a bullish bar, enter a buy order when a new bar open. IF Close > Open, Then Enter Market buy. Trade rule 2: When a new bar open, close last opened trade. How? The problem is, when rule1 place a trade and rule2 immediately close it when a new bar formed! tomas262 4.21.2017 8:40pm #142680 Moderator 2349 Posts Hello, you can incorporate the “bars since order open” function to solve this. See the screenshot attached and let me know if you still have problems with it Attachments in this forum are visible only for registered users. Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.