I have a strategy set to calculate per tick, and to help me visualize, I am painting the bars white where my condition is met.
As soon as the white bar presents itself, it should enter the long order immediately but this is not happening.
On the example, you will see that the low of the white bar is 5.98, yet the order is listed at 6.04 which appears to be the close of the entire white candle and not the tick..
What do I need to change so that the long is triggered on the very first tick of the white bar please and thank you kindly!
if (State == State.SetDefaults)
{
....
Calculate = Calculate.OnEachTick;
EntriesPerDirection = 1;
EntryHandling = EntryHandling.UniqueEntries;
IsExitOnSessionCloseStrategy = true;
ExitOnSessionCloseSeconds = 30;
IsFillLimitOnTouch = true;
MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
OrderFillResolution = OrderFillResolution.Standard;
Slippage = 0;
StartBehavior = StartBehavior.WaitUntilFlat;
TimeInForce = TimeInForce.Gtc;
TraceOrders = true;
RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
StopTargetHandling = StopTargetHandling.PerEntryExecution;
BarsRequiredToTrade = 20;
// Disable this property for performance gains in Strategy Analyzer optimizations
// See the Help Guide for additional information
IsInstantiatedOnEachOptimizationIteration = true;
....
when the time comes:
EnterLong(100, "HB");
Do I need to change the code and use a limit and hit the ask or something?
Here's another example. Expected to enter on the white candle, right at 5.65 where the crosshair is but it appears to enter after the close of the white candle at 5.67?
And on more example, the more data the better, right?
Expected to enter immediately on the 1st white candle tick, crosshair shows right around 6.38 BUT triggered at 6.41 on close of 1st white candle...
Comment