Wrong Calculation with TRADEPRICE?
Forums › ProRealTime English forum › ProOrder support › Wrong Calculation with TRADEPRICE?
- This topic has 7 replies, 3 voices, and was last updated 4 years ago by Pietro Fontana.
-
-
05/14/2020 at 6:41 PM #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.
05/14/2020 at 8:10 PM #13170605/15/2020 at 8:33 AM #13173805/15/2020 at 2:35 PM #131779Hi,
@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:123graph (close-tradeprice)/tradeprice > incdectfact/2graph incdecfact/2graph (close-tradeprice)/tradepriceLet me know if you need more information.
05/15/2020 at 3:19 PM #131782Please 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.
05/15/2020 at 3:55 PM #13178705/15/2020 at 3:57 PM #131789Hi Nicolas,
it store an built in indicator value.
1incdecfact = HistoricVolatility[60](close) * 1.505/16/2020 at 1:07 PM #131867Hi,
i’ve found the error, it was the variable that a certain point of the code was named differently.
Thanks for the support!
-
AuthorPosts
Find exclusive trading pro-tools on