ExitLongMIT(Convert.ToInt32(Position.Quantity), (Position.AveragePrice - atrstop) , @"ATR Stop", "");
I am trying to create the above to send when I have a Long Position just opened
I tried this approach but will not compile
private ATR atr;
atr = ATR(7);
then create values for atrtarget and atrstop is my issue
this is what I tried
double atrnow = atr[0];
double atrtarget = atrnow * 2;
double atrstop = atrnow * 1;
Thanks

Comment