One Trade Per Bar on Condition - Failing.
-
The only condition to this is baffling me. I have a direction identified and I want to trade when the current candle low breaks lower than the prior candle low and vice versa for buys on prior candle high. The rules are right but it seems to only trigger trades every 5/6 bars. Help..
-
Could you please share your project? Probably some previous blocks must be set incorrectly.
-
You need to use the conditions block.
Left Parameter: "Market Properties" Then choose between "Ask, Mid, Bid"
Condition is "CROSS ABOVE" or "CROSS BELOW"
Right Parameter is Candle then Candle High and make sure its candle ID 1.
https://fxdreema.com/shared/cQJtiv7G
Do the same but opposite for the sell condition.
I personally use the MID for these types of crosses due to spreads but you're more experienced in trading so it's at your discretion.
Keep in mind, that this will BUY or SELL every time price crosses those points.
Make sure you have the correct "Once per Bar" or "Check Trade Count" blocks attached AFTER these.
-
I figured it out. What was stopping it was trade counter inadvertently. I'm getting the hang of how it works now. I was always spooked of code, reading it no problem. But I have had developers on staff for 15 years. Now I can thoroughly develop/test and implement projects before giving them the code to slim down and make high performance.
-
Glad you got it sorted out.