As is typical for the way my brain works, I see a line of code in various examples or in threads or on NT help screens and think it should work in my code. So I study it and then place it in my code. But the following line produces an error which I do not understand.
EnterShortLimit(2, downTarget);
downTarget has already been defined as double and is working just fine. Since this is a limit order, downtarget the"worst" price I am willing to pay, but hope to be filled better. This line is only activated when trade conditions exist-- the same code that produces an audio alert that is also working just fine.
The error I receive is: The name "EnterShortLimit" does not exist in the current context.
I thought this was a command line, like DrawDiamond... I have received this error when something is not spelled correctly, but EnterShortLimit is spelled correctly.
I know I still have to set the profit target and stop but first things first. Can anyone tell me why this line is producing an error? Thanks.

Comment