Custom Indicator variable values

Forums ProRealTime English forum ProBuilder support Custom Indicator variable values

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

    Hi.

    I’m new to prorealtime and need some help.

    I’ve come across the problem (not a new one, actually well documented) regarding proorder having limited stop loss functionality.

    I’m seen the post for how to “Complete trailing stop code function” http://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/ but I don’t understand the code.

    So I’ve tried to create an indicator than would show me what my stops would be. I’ve dumped the code at the bottom

    Basically

    1. assuming a long position entered @ 1.03
    2. want a maximum loss of 30bp
    3. want a trailing stop loss of 20bps with a 5bp step

    My question is

    1. how can I view results for variables I create, ie “mystep”?
    2. I know my code is poor, what could you recommend to enhance?

     

     

    #14414

    Hi All

     

    I figured it out, you just have to use the return function. I have done the majority of my coding in VBA so you can see the variable as you step through the code

    Have updated my code (for long positions only) to have an indicator that will show you you exit levels

     

     

    #14424

    Great! But in ProBacktest you can also use GRAPH which is likely a ‘return’ function into automated trading code.

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