I'm having an issue with the strategy i'm building and any suggestions would be appreciated!
The following code will result in a green diamond
if (CurrentBearLeg.signalBar.CandleStick.Pattern == CandleStick.BarPatterns.PINBAR) { if (LongTrade == null) { Draw.Diamond(this, System.Guid.NewGuid().ToString(), true, 1, Low[1] - (TickSize * 15), Brushes.GreenYellow); EnterLongStopLimit(0, true, 1, High[1] + .25, High[1] + .25, "Test Trade - Long"); }
This is calculating pertick so this is under `firstickofbar`. so the stoporder should be placed on the previous day's high
EnterLongStopLimit(0, true, 1, High[1] + .25, High[1] + .25, "Test Trade - Long");
Note, I do not have anything that should cancel the order so in theory it should sit there until it gets hit.
any suggestions?
Thanks!
Comment