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.
Are you resetting the value to zero between bars?
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).
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:
graph (close-tradeprice)/tradeprice > incdectfact/2
graph incdecfact/2
graph (close-tradeprice)/tradeprice
Let me know if you need more information.
Please use the ‘Insert PRT Code’ button when posting code – even if it is only a few lines of code. 🙂
Variable “incdecfact”, what is all about? CALLed from an indicator or?
Hi Nicolas,
it store an built in indicator value.
incdecfact = HistoricVolatility[60](close) * 1.5
Hi,
i’ve found the error, it was the variable that a certain point of the code was named differently.
Thanks for the support!