Hi I am the author - I am not sure if you could use this in a strategy as it’s really just a utility to assist with time stuff. You could certainly flash the panel or emit a sound alert at 1 second before the end of the bar - that’s the core design principle - but in my experience you’re better setting it at say 3-5 seconds to give you time to react, etc.. By the way there is a version 9 out which is way better IMHO I will try and post it here but otherwise it’s in NexusFi dot com.
yes that’s possible but in real time getting say the last second of a bar is fraught with difficulty. racing conditions. Gaps, large orders etc all can mean the last second ‘disappears’. but let me see what i can do for you
I tried it myself in the editor, but when i try to change the string into int, it does not work. I always get an error. I do not have the skills for that i think
NT are sorting out the file for the latest version of BarTimerHybrid - apparently I exported it in the wrong format somehow.
Anyway if you want a numerical countdown change this region in the code and it will give you a string output. It does depend on you having some sort of trigger and I would not set it at less than 5 if you want it to be reliable.
#region FlashSwitcher
private int FlashSwitch()
{
flashon = 0;
if (Now.Second % 2 < 1)//not now
flashon= 1;
Print(counterstr);
if (int.TryParse(counterstr, out int result))
{
Print($"Converted: {result}");
}
else
{
Print("Invalid number");
}
return flashon;
}
#endregion
Unfortunately you still can’t access the contdown value in the alert.
I assume that the reason is that it is a string. I think in order to access the counter in the alerts, it must have values in the right scale.
At least that’s how it is with the other indicators if you want to access the numeric value. If that were possible, your HybridCounter would be the only indicator of this type that can do that at all.