Noob Questions...

Questions about MultiCharts and user contributed studies.
veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Noob Questions...

Postby veritasig » 27 Oct 2014

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?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 28 Oct 2014

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.
  1. Please make a right-click on the chart -> Format Signals... -> Properties... -> make screenshot of the "Properties" tab.
  2. Please switch to "Backtesting" tab and make another screenshot.
  3. Please upload the screenshots for me.
  4. 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)?
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?
Do you use IOG and Bar Magnifier in your backtesting?

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 30 Oct 2014

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

sptrader
Posts: 742
Joined: 09 Apr 2010
Location: Texas
Has thanked: 483 times
Been thanked: 274 times
Contact:

Re: Noob Questions...

Postby sptrader » 30 Oct 2014

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..

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 30 Oct 2014

Thanks sp. Will do

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 03 Nov 2014

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....

hilbert
Posts: 224
Joined: 17 Aug 2011
Has thanked: 76 times
Been thanked: 64 times

Re: Noob Questions...

Postby hilbert » 03 Nov 2014

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....
Please Post screenshot showing the problem.
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.

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 03 Nov 2014

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....
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.

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 06 Nov 2014

Here's the pic. This particular lag between TWS and MC lasted more then 10 seconds... ?

I will check out the online help shortly.
Attachments
lag.JPG
(165.48 KiB) Downloaded 1545 times

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 06 Nov 2014

Another issue - opened an IB paper trading account. MC cannot connect to paper account. Trusted IP address is set to 127.0.0.1

hilbert
Posts: 224
Joined: 17 Aug 2011
Has thanked: 76 times
Been thanked: 64 times

Re: Noob Questions...

Postby hilbert » 06 Nov 2014

Here's the pic. This particular lag between TWS and MC lasted more then 10 seconds... ?

I will check out the online help shortly.
It is not clear what lag you are referring to.

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.

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 06 Nov 2014

Here's the pic. This particular lag between TWS and MC lasted more then 10 seconds... ?

I will check out the online help shortly.
Another issue - opened an IB paper trading account. MC cannot connect to paper account. Trusted IP address is set to 127.0.0.1
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.

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 06 Nov 2014

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.

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 07 Nov 2014

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?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 07 Nov 2014

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?
Or...

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);

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 14 Nov 2014

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).

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 14 Nov 2014

Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
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.

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 15 Nov 2014

Is it possible to apply a stop loss to [-1] bar since entry (read: the bar prior to the entry bar)?
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.
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.

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 17 Nov 2014

Anyone around ?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Noob Questions...

Postby TJ » 17 Nov 2014

Anyone around ?
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?
I would just add a "[1]" to whatever you are thinking, and give it a test.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Noob Questions...

Postby TJ » 17 Nov 2014

ps. [FAQ] How to Post Codes (that people can read)
viewtopic.php?f=16&t=11713

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 17 Nov 2014

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?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Noob Questions...

Postby TJ » 17 Nov 2014

Thanks TJ,
::
My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?
::
Why not?

[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

veritasig
Posts: 25
Joined: 09 Oct 2014
Has thanked: 10 times
Been thanked: 8 times

Re: Noob Questions...

Postby veritasig » 17 Nov 2014

Thanks TJ. I will experiment and get back :)

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Noob Questions...

Postby Andrew MultiCharts » 18 Nov 2014

My general question is this: can multicharts reference candles prior to the entry candle, to set a stop loss?
The answer is "yes". TJ has given you correct recommendations (to use [1], [2], etc...)


Return to “MultiCharts”