Hello,
I have some questions:
1. Is it correct that in a Signal script (for the back-tester and live trading)
this.Bars.CloseValue == this.Bars.Close[0];
2. The same concerns Ticks: is it correct that
this.Bars.TicksValue == this.Bars.Ticks[0];
3. Why this.Bars.TicksValue returns 0.0 for historical data ( in the back-tester)? IOGMode is enable, Use bar magnifier is On (tick);
4. Can I use this.Bars.CloseValue as the current price in the back-tester and for live ticks?
5. How can I get current Ask and Bid in the back-tester? (Maybe there is a place where I can get a current spread?)
Thanks a lot.
Current Ask and Bid in the backtester [SOLVED]
-
- Posts: 5
- Joined: 12 Jan 2015
- Has thanked: 1 time
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Current Ask and Bid in the backtester [SOLVED]
Hello curiousMan,
Let me answer your questions in order:
1. Yes;
2. Yes;
3. Please try using TrueVolume;
4. Yes;
5. the easiest solution is adding ask and bid data series as data2 and data3 and accessing them from the code using BarsOfData(2).Close;
Let me answer your questions in order:
1. Yes;
2. Yes;
3. Please try using TrueVolume;
4. Yes;
5. the easiest solution is adding ask and bid data series as data2 and data3 and accessing them from the code using BarsOfData(2).Close;