It's likely a pointless exercise but here goes:
A while ago a kind stranger online adapted an indicator for me to make it paly a sound when 2 dots were drawn.
This was in ninjatrader6.5
This (his updated) indicator doesn't work in NT7
However, there is an NT7 version of the indicator that I have, but obviously without the updates that were made for me (audio alerts)
I have tried to copy the area that he coded and put it into the plain NT76 version but it wont compile.
Either im doing it wrong, or the 'logic' has changed in NT7 and the command required is different?
This is the part that I think he added for me:
if ((HighestBar(diff, MoMoPeriod) == 0 && HighestBar(High, BarHiLo) <= BarLookback) || (LowestBar(diff, MoMoPeriod) == 0 && LowestBar(Low, BarHiLo) <= BarLookback))
{
DrawDot("Up Dot" + CurrentBar, 0, Difference, Color.Lime);
if (lastDot == CurrentBar-1)
{
Print(DateTime.Now+" "+CurrentBar+" "+lastDot+" alert2");
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Alert2.wav");
}
lastDot = CurrentBar;
would this logic work in NT7 or is there a small change that needs to be made??
Comment