Current XXX versus actual XXX
Forums › ProRealTime English forum › ProBuilder support › Current XXX versus actual XXX
- This topic has 7 replies, 4 voices, and was last updated 1 year ago by PeterSt.
-
-
01/08/2023 at 10:00 PM #2070861234567Hello and thanks,I am coding an indicator and unfortunately is not possible to get the system time the moment you launch it.When you use currentXXX (example current month, you get the month of the candle being displayed)Is there a workaround for this (islastbarupdate is not a solution)Thanks in advance01/08/2023 at 11:09 PM #207090
Hi @fj_pastor
I don’t quite understand what you mean, just like with your indicator, everything is related to the price or the barindex…
When you use, for example; xMonth=Month[0] then you get the current month, xYear=Year[0] then you get the current year, and so on…01/09/2023 at 12:35 AM #20709101/09/2023 at 7:04 PM #2071291234567891011121314151617181920Hello, thanks to allLet me explain myself:If you write an indicator and youwant to perform something in the last candle but not before,you have no chance to identify it.Example. I want to draw something in the last candle after launching the indicator.I you test today a candle which opens and closes in December you get in the indicator:month returns 12currentmonth returns 12because currentmonth is referred to the candle, which is also the case for month.What I am looking for is an instruction that returns the system date and time,not the candle the indicator is calculating.Thanks01/09/2023 at 7:35 PM #20713201/09/2023 at 10:44 PM #20713701/10/2023 at 3:26 AM #207139No, I have never heard of any platform constant returning such info.
01/10/2023 at 5:39 AM #207142No, that is not possible. But I cannot imagine that what you functionally want is not accomplishable.
So what do you actually want to do, functionally ? If you, for example, want to show the date/time of when you launched the platform this can easily be done. Or when you started the System (algo) can be done too (hard-code it). When you created the Indicator – same thing (hard-code it).
-
AuthorPosts