How to trade on this?

Forums ProRealTime English forum ProOrder support How to trade on this?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #53307

    Im still fairly new and learning to code. So far i have not touched indicators, so im wondering:

    How do you code this: https://www.prorealcode.com/prorealtime-indicators/williams-highs-lows/

     

    So that it takes trade long and short on every ellipse? (edit: i mean Long on arroup + ellipse and Short on arrowdown + ellipse)

     

    Big thanks 🙂

     

    ps: i have tried, i just cant get it to work!

    #53318

    Use the “Insert/edit link” button to make a web reference clicky:https://www.prorealcode.com/prorealtime-indicators/williams-highs-lows/. You can either copy & paste it into your strategy (removing return and all graphical instructions), assigning each event a different value to a variable, or you may change the indicator to return a value according to what it detects, instead of displaying arrows and ellipses, something like this:

    #53381

    Big thanks Nicolas, i thought about the “return as value” i just didnt know how to code it correctly 🙂 My values was all over the place!

    Edit: Hmm doesnt seem to work correctly nicolas! 🙂 photo included

    #53407

    I am Roberto, not Nicolas.

    Line 2 of the above example needs to add “//” (double slashes to comment text) after “=0” or it will trigger an error message.

    If you want to use that indicator on the price chart, you don’t have to modify the original code, just use it as is.

    The example above was made to be CALLed or embedded in a strategy or, but it’s pretty ugly, displayed under your chart.

    To call it from inside your strategy:

     

    #53431

    Oh lol, sorry Roberto i think i was looking at 2 posts at the same time 😛

    I saw the error and added the // but as u can see in the photo i attached, the value of the indicator is alot slower then the arrows and ellipses on the pricechart!

    #53464

    I can’t really detect why it behaves like that. I hope Nicolas can help us.  

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

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