Once in a Long trade, I would like to exit (market order) if there are two consecutive bars where the close of each bar is lower than the open, or ... once in a Short trade, I would like to exit (market order) if there are two consecutive bars where the close of each bar is higher than the open.
Can anyone tell me how to write that in the NinjaScript conditions and actions screen ?
Any help would be appreciated.
Comment