Wrong Calculation with TRADEPRICE?

Forums ProRealTime English forum ProOrder support Wrong Calculation with TRADEPRICE?

Viewing 8 posts - 1 through 8 (of 8 total)
  • #131698

    Greetings all,

    maybe i’m missing something, but it seems that there’s a wrong calculation done in ProRealTime.

    I have a first value (close-tradeprice)/tradeprice =  0.05005

    I have a second value incdecfact/2 = 0.11831

    ProRealTime says the that first value is greater than the second one, see the screenshot.

    I’m making some mistakes?

    Thanks.

    Best regards.

    #131706

    Are you resetting the value to zero between bars?

    #131738

    Are you using multiple timeframes in your code? How are graphed your variables please?

    (Topic moved into the ProOrder forum for automated trading related questions).

    #131779

    Hi,


    @Vonasi
    : no, i’m not resetting it to 0, but i should not, because close and tradeprice are builtin variables and incdectfact is calculated each time: HistoricVolatility[60](close) * 1.5


    @Nicolas
    : i’m not using multitimeframe (i still don’t have tried it), the code for graph is this:

     

    Let me know if you need more information.

    #131782

    Please use the ‘Insert PRT Code’ button when posting code – even if it is only a few lines of code. 🙂

    1 user thanked author for this post.
    #131787

    Variable “incdecfact”, what is all about? CALLed from an indicator or?

    #131789

    Hi Nicolas,

    it store an built in indicator value.

     

    #131867

    Hi,

    i’ve found the error, it was the variable that a certain point of the code was named differently.

    Thanks for the support!

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

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