Not being able to figure this out has been quite the unsuccessful challenge as of late.
I am trying to create a strategy that has a simple enough EnterLong set up:
// Set 1 - Go Long
if ((Close[0] > Open[0])
&& (Close[0] > Close[1])
&& (Close[1] > Open[1])
&& (Open[2] > Close[2])
&& (EMA1[0] > (EMA2[0] + (8 * TickSize)) )
&& (EMA1[1] > (EMA2[1] + (8 * TickSize)) )
&& (EMA1[2] > (EMA2[2] + (8 * TickSize)) )
&& ( Math.Abs(Close[1] - Open[1] ) >= Math.Abs(Close[2] - Open[2] )*0.75
|| Math.Abs(Close[0] - Open[0] ) >= Math.Abs(Close[2] - Open[2] )*0.75 )
)
{
BackBrush = Brushes.CornflowerBlue;
SetStopLoss("", CalculationMode.Price, Low[BarsSinceEntryExecution()+1]-1*TickSize, false);
SetProfitTarget("", CalculationMode.Price, Position.AveragePrice + ( Position.AveragePrice - Low[BarsSinceEntryExecution()+2] ));
EnterLong(Convert.ToInt32(DefaultQuantity), "");
However, I am very obviously doing something wrong that my stops and Targets are way off, or just not working at all.
As wrong as my code is, I hope everyone can understand that I am wanting my SetStopLoss to be static (i.e. fixed price) at a Tick below Low of the Previous Signal Bar.
I would like to have my SetProfitTarget, be the my Position.AveragePrice Plus ( the Close of my Signal Bar minus the Low of the Previous bar to the Signal Bar), also a static (i.e. fixed price)
I would also like to have my Stop move to Breakeven when price reaches 50% of my target price.
In my 'simplistic', 'Gorilla Math' mind, I thought my attached strategy would work, but not a chance...haha.
Any help or insight to get this working the way I described would be GREATLY appreciated!
Hope everyone has a Great Holiday and Merry Christmas!

For my stop on my Long Entries, I simply want it to be 1 tick below the Low of the bar Before the Signal Bar.
Comment