I have simple strategy which uses @Swing.cs indicator. I need to enter the trade when price crosses last valid swingLow - for short and swingHigh - for long trades.
I need to operate on Calculate.OnEachTick so that it enters inside candle:
Problem 1: how do I get values swing high and low (according to indicator dots?
To get swing High and Low i Use:
// How do I get last valid swing High?
double swingHigh = Swing1.SwingHigh[0];
// How do I get last valid swing Low?
double swingLow = Swing1.SwingLow[0];
But I get nonsense values :-/ What am I doing wrong?
Problem 2: I have check TickReplay in Data series settings so that I get accurate filling but when I add strategy to chart (Tick Replay checked, Timeframe 15) I see entries on bad levels see attachments.
Could you please help me in these two things. How properly refer to SwingHigh and SwingLow values on candle "actual - one" (preactual)
How to set data to see entries "on swing values" not on close of candles.
Thanks a lot Paul
Comment