I know there are a few posts around using ATR based targets & stops, none of them seem to cover the issue I'm having though sorry.
When I use the below code, the targets look to be getting set to the entry price & the trade is opening & closing immediately, clearly I'm doing something wrong but not sure what this is
// Long Entries if (rules are met) { // Setting stops & targets EnterLong(Convert.ToInt32(DefaultQuantity), @"Buy_1"); SetProfitTarget(@"Buy_1", CalculationMode.Ticks, ATR1[0]); SetStopLoss(@"Buy_1", CalculationMode.Ticks, ATR1[0], false);
I've tried all calculation methods, pips, ticks, & price & worked out the entry price - ATR value in ticks. Always the same, I'm not sure why this is happening, look forward to your help
Comment