I am working on an automated strategy and I am running into a problem. I noticed that when I use an expression like:
1
2
3
4
5
IFc1ANDc2ANDC3THEN
BUY2CONTRACTSATMARKET
ENDIF
that these three conditions need not be simultaneously true. It may be that C1 is met in the first candle, but the two other conditions are met two candles later. Meanwhile, the trend may have changed.
I am therefore looking for an expression that specifically demands that conditions 1, 2 and 3 have to be met simultaneously within the same candle.
Can anyone tell me if there exists such an expression or how I can achieve this.
Did you get this sorted? IF c1 AND c2 AND C3 THEN always works for me and is such a basic essential that we could not code without it working? Or maybe I’m not analysing results close enough and it doesn’t always work?? 🙂
I went to your profile to see if you have done any more Bots recently. I’m getting good results from your 1M scalper. I keep meaning to try and rework it to a short version also … did you try a short version of below please?
Your problem is how you have actually coded your c1, c2 and c3 conditions. Without the code, it is difficult to give a short and good tips to solve your issue 😥
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue