Relative buy signal (Bollinger)

Forums ProRealTime English forum ProOrder support Relative buy signal (Bollinger)

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • #82968

    Hello!

    I’m a rookie when it comes to trading but I’m very interested in evolving within this area.

    I just started to use PRT and I would like to find a good automatic strategy (don’t we all?). The way I’m trying to configure my strategy isnt really working because I need to enter the code-console and modify the code to be a little bit more complex than the regular UI allows me to build.

    Is there any kind soul out there that would bother to help me with the code?

    Criterias (see attached picture for number examples [1224.35] / [1227.00]):

    • EXAMPLE: Go long WHEN; [Price (X)] / [Bolinger – (Y)] <= 0,99
    • EXAMPLE: Go short WHEN; [Price (X)] / [Bolinger + (Z)] >= 1,01

     

    I would very much appreciate help solving this!

    Thanks in advance,

    CJ

    #82974

    I assume Y and Z are in points/pips?

    Do you want a simple indicator that plot the signals on the price chart or a complete automatic trading system?

    #82976

    Hello Nicolas,

     

    Y and Z are points yes. Im trying to use this for backtesting as a start. I’ve tried to write some code by my own but it doesnt seem to do that I want.

    #82977

    For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    Well, firstly did you try to graph your conditions?

    So that you see clearly when a condition is met or not.

    #82981

    Oh thank you. I will do that in the future.

    Yes I have tried to backtest it. currently im trying out the long-position.

    As you can see in the attached picture you can see the code. Im trying to get -> IF price / bollinger down, in this example bollinger down is 1185 and price is 1183. 1183 / 1185 = 0,998. In the code im trying to specify so that take LONG position if the quote of price / bollinger down < 0.999 which would then go long in this example.. but it doesnt! Any clue why? Thank you for your fast replies btw!

     

     

    #82988

    Got hundreds of positions when I try your strategy. What timeframe and instrument did you test?

    #83045

    Hello,

    I was trying to apply it on Gold 15  min. But although my attached example above was not triggered.. So it seem to be something wrong with my code, dont you think when looking at the example above? Thank you for trying out the code in your system!

     

    #83062

    Hi again Nicolas,

     

    Basically what I want to do is a) Measure the difference between PRICE (not closing price) and BOLLDOWN. If the quota of these two variables (PRICE / BOLLDOWN) are for example <= 0,97 THEN I would like to go long with 1 contract. It feels like my code should do the work but when validating it by taking samples it doesnt take positions where I want it to.

     

    Thank you,

    CJ

    #83084

    Ok, I modify the logic of your code, I made 2 settings for the orders to trigger if the Close exceed the Bollinger Down (for a buy order) or the Bollinger Upper band (for a short order). The triggers are in percentage.

     

    #83167

    Thank you very much. It does what I want it to 🙂 Very very much appreciated! you’re a pro!

     

Viewing 10 posts - 1 through 10 (of 10 total)

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