Inside bar code conversion

Forums ProRealTime English forum ProOrder support Inside bar code conversion

Viewing 4 posts - 1 through 4 (of 4 total)
  • #124448

    Hello!

    I am working on an inside bar strategy and I´ve found som exit criterias, but I believe the code is from MetaStock and I wonder if it is possible to convert it to PRT code?

    Here is the code:

    tr = 0.75

    si = 0.75

    else if marketposition = 1 then begin
    sell next bar at entryprice + entryprice*tr/100 limit;
    sell next bar at entryprice – entryprice*si/100 stop;
    end

    else if marketposition = -1 then begin
    buy to cover next bar at entryprice – entryprice*tr/100 limit;
    buy to cover next bar at entryprice + entryprice*si/100 stop;

    end

     

    If someone could convert this it would be greatly appreciated!

    #124483

    I think that it could be converted this way:

     

    #124785

    The only thing not working in your code is “entryprice” PRT says the variable is undefined

    Thanks

     

    #124792

    Replace entryprice with tradeprice. I think it is a typo by Nicolas.

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

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