Automate placing limit orders 30 points below recent low

Dear friends,
Is it possible to set up an automated limit order 30 points below recent low (pair of red-green candles) every time a red-green candle is formed?

You could definitely do this by coding the strategy. You would just need to code your condition, the red then green candles (Close[1] < Open[1] && Close[0] > Open[0]), then define the low point, which I’m assuming is the lower of the two candles, so (LowPoint = Math.Min(Low[1], Low[0])). From there, you can figure out the level you want to enter at (LowPoint - 30 points) using EnterLimitLong(LowPoint - (30 * Instrument.MasterInstrument.PointValue))

2 Likes

One fix to the snippet above: PointValue is the dollar value of one point (20 on NQ), not a price distance, so LowPoint - 30 * PointValue would place the order 600 points lower on NQ. For 30 points use LowPoint - 30 (or 30 * 4 * TickSize if you think in ticks). Also decide when the order expires: by default a managed limit order is cancelled at the end of the bar unless you resubmit it each bar or set isLiveUntilCancelled. Happy to help build it out, feel free to DM me.