How To Limit Number Of "Same Direction" Trades Between A Specific Time Period Each Day
-
Hello. I want maximum 1 “same direction” trade opened in a specific time period within "each day". So, let’s say when 50ma crosses above 200ma between 10am and 2pm within a day, bot can only enter max 1 long position and likewise, when 50ma crosses below 200ma between 10am and 2pm within a day, bot can only enter max 1 short position.
Does anyone know how to make it? -
-
Above the trade have a no trade block to limit to 1, check a flag to make sure it is true, and under the trade block turn the flag false. In a separate tree use once per daily bar to turn the flag true
-
Thanks, I'll ty it
