|
omaha Nebraska
Experience: Intermediate
Platform: ninjatrader
Broker: Ninja
Trading: stocks, Futures ES, Options
Posts: 22 since Sep 2014
Thanks Given: 7
Thanks Received: 12
|
I am trying to pull in a variable from a custom indicator in to a new strategy.
I get the error "the name "trend" does not exist in the current context.
My code is as such:
PrintWithTimeStamp("," + MyCustomIndicator(trend)[1]);
Trend is a variable, and the indicator works fine. I'm just using the print statement to debug. I will ultimately want to use an IF statement such as:
IF (MyCustomIndicator(trend)[1] == 1)
{
make me money
}
TIA!
|