Code question

Viewing 3 posts - 1 through 3 (of 3 total)
  • #6228

    Hi,

    I am working on an automated strategy and I am running into a problem. I noticed that when I use an expression like:

     

    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.

    Thank you very much and have a nice weekend,

     

    Glen

    #36616

    Hi Glen

    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?

    https://www.prorealcode.com/topic/dax-intraday-scalping-strategy/

    Many Thanks
    GraHal

          

     

    #36655

    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 😥

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login