Jump to content


My Martingale Ranko EA project

  • Please log in to reply
1 reply to this topic

#1 Sunny



  • Members
  • PipPip
  • 20 posts

Posted 19 April 2017 - 07:53 AM

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.



The problem is, when rule1 place a trade and rule2 immediately close it when a new bar formed!

#2 tomas262


    Advanced Member

  • Moderators
  • 2,298 posts

Posted 21 April 2017 - 08:40 PM



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

Attached Files

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users