Noob Questions...
Noob Questions...
I'm enjoying the MC demo. As I go along, random questions pop up.
Using Maximum Adverse Excursion analysis for a backtested strategy; several hundred trades show a MAE > 100 dollar drawdown. When stop loss is set to 50 dollars, many losing trades still show up between MAE 50 dollars and 100 dollars.
Why is this? Bad data? Like gaps in the data (market close > market open)? I trade through IB and use IB backfill so their servers have down time and reflected in the historical data?
Using Maximum Adverse Excursion analysis for a backtested strategy; several hundred trades show a MAE > 100 dollar drawdown. When stop loss is set to 50 dollars, many losing trades still show up between MAE 50 dollars and 100 dollars.
Why is this? Bad data? Like gaps in the data (market close > market open)? I trade through IB and use IB backfill so their servers have down time and reflected in the historical data?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
Hello veritasig,
Using Maximum Adverse Excursion analysis for a backtested strategy; several hundred trades show a MAE > 100 dollar drawdown. When stop loss is set to 50 dollars, many losing trades still show up between MAE 50 dollars and 100 dollars.
- Please make a right-click on the chart -> Format Signals... -> Properties... -> make screenshot of the "Properties" tab.
- Please switch to "Backtesting" tab and make another screenshot.
- Please upload the screenshots for me.
- Do you use exactly Stop orders in the code (or https://www.multicharts.com/trading-sof ... etStopLoss that is also a stop type of order)?
Do you use IOG and Bar Magnifier in your backtesting?Why is this? Bad data? Like gaps in the data (market close > market open)? I trade through IB and use IB backfill so their servers have down time and reflected in the historical data?
Re: Noob Questions...
Thanks. I'll get back on that.
Another question - how can I simulate chart trading with my demo MC version, without sending live orders to IB TWS, from which I receive data?
I want to experiment and trial the trade-from-chart and ATS capabilities without placing live orders? But using live data?
Thanks
Another question - how can I simulate chart trading with my demo MC version, without sending live orders to IB TWS, from which I receive data?
I want to experiment and trial the trade-from-chart and ATS capabilities without placing live orders? But using live data?
Thanks
-
- Posts: 742
- Joined: 09 Apr 2010
- Location: Texas
- Has thanked: 483 times
- Been thanked: 274 times
- Contact:
Re: Noob Questions...
**********************************************************************Thanks. I'll get back on that.
Another question - how can I simulate chart trading with my demo MC version, without sending live orders to IB TWS, from which I receive data?
I want to experiment and trial the trade-from-chart and ATS capabilities without placing live orders? But using live data?
Thanks
* IB offers a "simulated Trading" account, have them set one up for you to test with..
I regularly use live Iqfeed data and my IB simulated account to test with..
Re: Noob Questions...
Seems there's a 1-5 second delay between change in last trade in IB TWS and chart update in Multicharts.....?
I've watched it for the past half hour. Multicharts lags TWS updates by around 1-5 seconds....
I've watched it for the past half hour. Multicharts lags TWS updates by around 1-5 seconds....
Re: Noob Questions...
Please Post screenshot showing the problem.Seems there's a 1-5 second delay between change in last trade in IB TWS and chart update in Multicharts.....?
I've watched it for the past half hour. Multicharts lags TWS updates by around 1-5 seconds....
I suggest in half screen show MC getting real time data, on other half screen show data in TWS - and show they are different. Also make sure your computer clock is fine.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
If the issue still persists, please come to our live chat during working hours (6:30 am – 2:45 pm EST) to let our operators connect to your computer remotely and help you.Seems there's a 1-5 second delay between change in last trade in IB TWS and chart update in Multicharts.....?
I've watched it for the past half hour. Multicharts lags TWS updates by around 1-5 seconds....
Re: Noob Questions...
It is not clear what lag you are referring to.Here's the pic. This particular lag between TWS and MC lasted more then 10 seconds... ?
I will check out the online help shortly.
Can you please open a tick chart in TWS and another tick chart in MC, each chart taking half of your monitor, and take a printscreen and paste here. That will make it easier to understand the lag that you are talking about.
Additionally,
1) You should check your PC time with time.gov, if your PC time is correct or not?
2) Also, check TWS time (displayed on top) against your PC time. Are they same or not.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
Here's the pic. This particular lag between TWS and MC lasted more then 10 seconds... ?
I will check out the online help shortly.
As far as i know, you haven't contacted our team in the live chat yet. In order to help you with the questions we will need remote connection to your PC.Another issue - opened an IB paper trading account. MC cannot connect to paper account. Trusted IP address is set to 127.0.0.1
Re: Noob Questions...
Okay, I will contact the live chat and sort it out.
Hilbert, check the picture. TWS is overlayed with MC. Last trade in TWS (symbol YM) shows xxx90. Tick chart in MC shows last trade as xxx91 === lag.
Hilbert, check the picture. TWS is overlayed with MC. Last trade in TWS (symbol YM) shows xxx90. Tick chart in MC shows last trade as xxx91 === lag.
Re: Noob Questions...
Programming question...
How to set a stoploss at the high or low of the entry bar?
I'm thinking:
variables:
stoplossvalue(0), entrystopdifference(0);
stoplossvalue = high(barssinceentry);
entrystopdifference = stoplossvalue - entryprice(0);
setstoploss(entrystopdifference*dollar tick multiplier for particular instrument);
thinking out loud here?
How to set a stoploss at the high or low of the entry bar?
I'm thinking:
variables:
stoplossvalue(0), entrystopdifference(0);
stoplossvalue = high(barssinceentry);
entrystopdifference = stoplossvalue - entryprice(0);
setstoploss(entrystopdifference*dollar tick multiplier for particular instrument);
thinking out loud here?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
Or...How to set a stoploss at the high or low of the entry bar?
I'm thinking:
variables:
stoplossvalue(0), entrystopdifference(0);
stoplossvalue = high(barssinceentry);
entrystopdifference = stoplossvalue - entryprice(0);
setstoploss(entrystopdifference*dollar tick multiplier for particular instrument);
thinking out loud here?
Code: Select all
Vars: MarketPositionVariable(0), HighOfEntryBar(0), StopLossValue(0);
MarketPositionVariable = marketposition;
If marketposition <> MarketPositionVariable then HighOfEntryBar = High[1];
StopLossValue = (HighOfEntryBar - EntryPrice) / BigPointValue;
SetStopLoss(StopLossValue);
Re: Noob Questions...
Thanks Andrew.
Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
I would check myself just having some issues getting my signal going.
MC customer service fixed the other issues great. No more lag (caused by Kaspersky Antivirus).
Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
I would check myself just having some issues getting my signal going.
MC customer service fixed the other issues great. No more lag (caused by Kaspersky Antivirus).
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
Not by a SetStopLoss for sure, but it is possiblte to put it as an entry order (however if you keep it after another entry order is filled, this stop order is turned into a reverse order, rather than exit order). If your goal is to put a stop order to exit a position before the entry order is put, unfortunately you cannot do this via EasyLanguage.Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
Re: Noob Questions...
Sorry Andrew. To clarify - after an entry has been made, can the stop loss be set at the high, low, close, or open of the bar prior to the entry bar? That's what I meant to say.Not by a SetStopLoss for sure, but it is possiblte to put it as an entry order (however if you keep it after another entry order is filled, this stop order is turned into a reverse order, rather than exit order). If your goal is to put a stop order to exit a position before the entry order is put, unfortunately you cannot do this via EasyLanguage.Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Noob Questions...
Anyone around ?
I would just add a "[1]" to whatever you are thinking, and give it a test.Programming question...
How to set a stoploss at the high or low of the entry bar?
I'm thinking:
variables:
stoplossvalue(0), entrystopdifference(0);
stoplossvalue = high(barssinceentry);
entrystopdifference = stoplossvalue - entryprice(0);
setstoploss(entrystopdifference*dollar tick multiplier for particular instrument);
thinking out loud here?
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Noob Questions...
Thanks TJ,
Sorry to belabor the point. I have yet to sit down at the computer and test it out.
My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?
I'm a technical/chart trader, and the strategies I want to autotrade will be a reflection of that. Technical chartists look at highs, lows and patterns prior to the entry bar to determine logical stop loss levels. Picking an arbitrary numerical stop loss doesn't work for us. I'm wondering if MC has this kind of functionality?
Sorry to belabor the point. I have yet to sit down at the computer and test it out.
My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?
I'm a technical/chart trader, and the strategies I want to autotrade will be a reflection of that. Technical chartists look at highs, lows and patterns prior to the entry bar to determine logical stop loss levels. Picking an arbitrary numerical stop loss doesn't work for us. I'm wondering if MC has this kind of functionality?
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Noob Questions...
Why not?Thanks TJ,
::
My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?
::
[1] is the reference.
MultiCharts is a powerful analytic tool; you can easily program your ideas into your strategies.
A good place to start is here:
viewtopic.php?f=16&t=6929
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Noob Questions...
The answer is "yes". TJ has given you correct recommendations (to use [1], [2], etc...)My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?