Best way to Sim trade using IQFeed
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
Best way to Sim trade using IQFeed
I'm using IQFeed as datafeed and IB to trade. I want to replay market data, and make simulation trades which are locally simulated. However, it appears that for a rythmic local-sim account, I need to be subscribed to this datafeed! How do I go about locally simulating trades?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Best way to Sim trade using IQFeed
Hello AntiMatter,
It is not possible to do this if you are talking about manual trading. It is possible only for strategy trading.I want to replay market data, and make simulation trades which are locally simulated.
That is correct, the only local simulation is possible if you have Rithmic data feed. Please note that it is for real-time only (not for market data playback).However, it appears that for a rythmic local-sim account, I need to be subscribed to this datafeed!
I believe you are confusing some things.How do I go about locally simulating trades?
- There is no general tool for local simulation for trading (both automatically and manually) in MC. The only exception is Rithmic Local Sium broker profile, but it requires Rithmic data subscription to operate.
- Market Data Playback is for historical automated trading only (backtesting).
- If you want to place trades manually when you replay historical data, it is not yet possible in MC (even with Rithmic Local Sim those trades would be executed at real-time prices, not at historical prices on the chart).
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Best way to Sim trade using IQFeed
Uhm, I think it can be done Andrew.It is not possible to do this if you are talking about manual trading. It is possible only for strategy trading.I want to replay market data, and make simulation trades which are locally simulated.
Manual trades can be simulated through a trading strategy that is run on replayed market data. You just need to process mouse clicks on the chart such that these submit the buy and sell orders, and then use the Strategy Performance Report to see how you would have performed trading on sim data.
A basic example of that is:
Those three trades were placed through the code, but after I clicked on the chart with either the Control or Shift key.
The code is:
Code: Select all
[ProcessMouseEvents = true];
[IntrabarOrderGeneration = true];
if (LastBarOnChart_s = false) then
#return;
// Enter long positions
if (MarketPosition(0) = 0) then begin
if (MouseClickCtrlPressed = true) then
Buy ("EL Click") 1 contract next bar at market;
end;
// Exit long positions
if (MarketPosition(0) > 0) then begin
if (MouseClickShiftPressed = true) then
Sell ("XS Click") 1 contract next bar at market;
end;
- Attachments
-
- scr.16-12-2014 12.56.52.png
- (66.68 KiB) Downloaded 855 times
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Best way to Sim trade using IQFeed
Uhm, I think it can be done Andrew.
Manual trades can be simulated through a trading strategy that is run on replayed market data...
Yes, i agree, however in my opinion (based on my knoledge how MC is built and my experience) any trade that is generated by EL code is a "strategy trade". Though i have to admit, the idea is brilliant!Haha, very smart indeed!