Search found 28 matches
- 16 Jun 2016
- Forum: MultiCharts
- Topic: Minlist constantly returning 0 [SOLVED]
- Replies: 2
- Views: 2177
Re: Minlist constantly returning 0 [SOLVED]
Hi ! I've been programming a trailing value with the following code for long positions, it is working properly: vars: trailing(0); if marketposition=1 then Trailing= maxlist(trailing,H-2); However when trying to do the same for short, minlist is constantly returning 0 instead of returning the lowes...
- 16 Jun 2016
- Forum: MultiCharts
- Topic: Minlist constantly returning 0 [SOLVED]
- Replies: 2
- Views: 2177
Minlist constantly returning 0 [SOLVED]
Hi ! I've been programming a trailing value with the following code for long positions, it is working properly: vars: trailing(0); if marketposition=1 then Trailing= maxlist(trailing,H-2); However when trying to do the same for short, minlist is constantly returning 0 instead of returning the lowest...
- 05 Jan 2016
- Forum: MultiCharts
- Topic: displaying historical execution - "at market" vs "at inside"
- Replies: 5
- Views: 2511
Re: displaying historical execution - "at market" vs "at ins
Guys it obviously is a data connection problem as orders appear fine when i put the platform on in the morning, I m linked to IB, see the chart attached. I guess I'll see on their side
- 02 Jan 2016
- Forum: MultiCharts
- Topic: displaying historical execution - "at market" vs "at inside"
- Replies: 5
- Views: 2511
Re: displaying historical execution - "at market" vs "at ins
I'm having an issue displaying historical executions on the long side using "at inside bid", they're well displayed on the short side using "at insideask". `InsideBid` and `InsideAsk` are quote fields and cannot be referenced historically. When you do use them in a trading strategy that's calculate...
- 01 Jan 2016
- Forum: MultiCharts
- Topic: displaying historical execution - "at market" vs "at inside"
- Replies: 5
- Views: 2511
Re: displaying historical execution - "at market" vs "at ins
Basically I have 2 codes: - code #1 is going short ( 1 st chart in attached file ), everything is working and well displayed. I'm using this code for entry: sellshort sharesamount shares next bar at insideask -.7 limit; - code # 2 is doing the exact opposite, going long ( 2nd chart in attached file ...
- 01 Jan 2016
- Forum: MultiCharts
- Topic: displaying historical execution - "at market" vs "at inside"
- Replies: 5
- Views: 2511
displaying historical execution - "at market" vs "at inside"
Hello ! I'm having an issue displaying historical executions on the long side using "at inside bid", they're well displayed on the short side using "at insideask". When I'm using sellshort sharesamount shares next bar at insideask -.7 limit; The short order is well displayed. When I'm using buy shar...
- 09 Nov 2015
- Forum: MultiCharts
- Topic: limit the number of daily trades [SOLVED]
- Replies: 6
- Views: 17772
Re: limit the number of daily trades [SOLVED]
So here's what I did and it does seem to work ( limit the # of daily trades to 1): inputs:dailytradeslimit(1); vars:startnumtrades(0); If date>date[1] then startnumtrades = totaltrades; If TotalTrades - startnumtrades < dailytradeslimit then ... followed by strategy Thanks to everybody for helping !
- 05 Nov 2015
- Forum: MultiCharts
- Topic: limit the number of daily trades [SOLVED]
- Replies: 6
- Views: 17772
Re: limit the number of daily trades [SOLVED]
So the trick I found so far is to use : if totaltrades<1 then This allow the strategy to run if there was no trades on the chart so far. In my strategy, the trade is executed at the open, so I limited the number of bars back for the instruments so that the entry of the previous day doesn t show up o...
- 03 Nov 2015
- Forum: MultiCharts
- Topic: limit the number of daily trades [SOLVED]
- Replies: 6
- Views: 17772
Re: limit the number of daily trades [SOLVED]
You can try this: Inputs: Max_trades(2); If (EntriesToday(date) <= max_trades) then begin your code end; EntriesToday is a function in MC. With this example, you can have a max of 2 trades per day. Thank U. Is EntriesToday function still available though ? i don t see anything when I type in MC wik...
- 02 Nov 2015
- Forum: MultiCharts
- Topic: limit the number of daily trades [SOLVED]
- Replies: 6
- Views: 17772
limit the number of daily trades [SOLVED]
Hello !
I spent a whole week trying to find a way/keywords to limit the number of trades per day in my strategy and couldn t find a solution. Any help would be appreciated, thanks
I spent a whole week trying to find a way/keywords to limit the number of trades per day in my strategy and couldn t find a solution. Any help would be appreciated, thanks
- 27 Oct 2015
- Forum: MultiCharts
- Topic: unable to get atr of data2 [SOLVED]
- Replies: 6
- Views: 2598
Re: unable to get atr of data2 [SOLVED]
I do know that the basic definition shows numbers ( ex: setstoploss(60) ) however I found many codes with variables instead of numbers. SetStopLoss Closes out the entire position or the entry if the loss reaches the specified currency value ; eg. $500 $1000 Without the "$" of course The value can b...
- 27 Oct 2015
- Forum: MultiCharts
- Topic: unable to get atr of data2 [SOLVED]
- Replies: 6
- Views: 2598
Re: unable to get atr of data2 [SOLVED]
:: Study the definition and usage examples of the keyword: SetStopLoss Thank U but I still do not get it. The code compile correctly and the output gives a correct answer for the ATR. I don t get why the stop ends up a few cents away from my buys instead of the value of the ATR. Study again the def...
- 27 Oct 2015
- Forum: MultiCharts
- Topic: unable to get atr of data2 [SOLVED]
- Replies: 6
- Views: 2598
Re: unable to get atr of data2 [SOLVED]
Hello ! I have a 1 min chart of FB as data1 and a daily chart of FB as data2. Something is wrong with this code since it is not returning the ATR of data2 :I m being stopped a few cents below my buy while the ATR is 2,2. Not sure what s wrong. Thanks for the help in advance ! var: atr(0,data2); atr...
- 27 Oct 2015
- Forum: MultiCharts
- Topic: unable to get atr of data2 [SOLVED]
- Replies: 6
- Views: 2598
unable to get atr of data2 [SOLVED]
Hello ! I have a 1 min chart of FB as data1 and a daily chart of FB as data2. Something is wrong with this code since it is not returning the ATR of data2 :I m being stopped a few cents below my buy while the ATR is 2,2. Not sure what s wrong. Thanks for the help in advance ! var: atr(0,data2); atr=...
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
Re: no signal appearing on the chart with this simple code [SOLVED]
I finally got it right. I had to put a larger # for the barsback, this was the solutionI'm not trying these suggestions, my machine is off line.
Try one more thing:
If marketposition=0
AND time = 0933
then begin
sellshort 100 shares next bar at market;
end;
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
Re: no signal appearing on the chart with this simple code [SOLVED]
I tried, no success. I attached a picture if it can help figuring out what s going onIt time = 0933
then sellshort 100 shares next bar at market;
I assume you want to go short, by saying sell 100 shares, you are I believe saying exit a long position and you are flat. Try that.
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
Re: no signal appearing on the chart with this simple code [SOLVED]
A few questions: 1. Which Multicharts version you are using? 2. What is the symbol? 3. Is it a thinly traded instrument? ie. were there trades between 932 and 934? 4. Did you turn on autotrade? (I know it is a silly question, but you never know until you asked). I use MC9.1 Ticker: AAPL, only using...
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
Re: no signal appearing on the chart with this simple code [SOLVED]
I tried but no change, thanks thoughNot sure if this matters, didn't test, but try time = 0933, versus time = 933
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
Re: no signal appearing on the chart with this simple code [SOLVED]
Hello ! I am surprised to get no signal in my 1 minute chart when I type the simple code below, I should have a signal at 9:33. I ve been unable to understand why if time=933 then sell 100 shares this bar on close; See post #7 https://www.multicharts.com/discussion/viewtopic.php?f=16&t=10811 thank ...
- 26 Oct 2015
- Forum: MultiCharts
- Topic: no signal appearing on the chart with this simple code [SOLVED]
- Replies: 12
- Views: 3599
no signal appearing on the chart with this simple code [SOLVED]
Hello !
I am surprised to get no signal in my 1 minute chart when I type the simple code below, I should have a signal at 9:33. I ve been unable to understand why
if
time=933
then
sell 100 shares this bar on close;
I am surprised to get no signal in my 1 minute chart when I type the simple code below, I should have a signal at 9:33. I ve been unable to understand why
if
time=933
then
sell 100 shares this bar on close;
- 09 Nov 2013
- Forum: MultiCharts
- Topic: get data2 in market scanner [SOLVED]
- Replies: 8
- Views: 7232
Re: get data2 in market scanner [SOLVED]
Any advances on this at MC so that we can use calculation of multiple datas in the scanner ? That would to bad that I would have to move to MC.net and learn a new programming language just to have access to this
thanks
thanks
- 30 Oct 2013
- Forum: MultiCharts
- Topic: DOM not being saved in layout + showing only best bid/ask [SOLVED]
- Replies: 2
- Views: 1208
Re: DOM not being saved in layout + showing only best bid/as [SOLVED]
Hello ravel44, What do you mean exactly? Is the DOM window no longer present on the workspace after you open it? Or only the window position is lost? IB data subscription for IB TWS and for third party applications are two separate things. Please contact IB directly to get the Level 2 data into Mul...
- 29 Oct 2013
- Forum: MultiCharts
- Topic: DOM not being saved in layout + showing only best bid/ask [SOLVED]
- Replies: 2
- Views: 1208
DOM not being saved in layout + showing only best bid/ask [SOLVED]
Hi, I'm in MC 8.7. I can t get the DOM to be saved in my layout, each time I reload the workspace it's not here anymore How to fix this ? Also my DOM is only showing the best bid/ask. I'm connected to IB and the equivalent of the DOM in IB ( Book trader ) is showing other pending bids and asks witho...
- 29 Sep 2013
- Forum: MultiCharts
- Topic: average win/loss in optimization results ?
- Replies: 1
- Views: 1346
average win/loss in optimization results ?
Hello ! I 'd like to be able to see the average win/loss in the sheet results of my optimizations, I didn't manage to make it appear with Optimization criteria since I'm quite new to this language. I actually still want the 1st results to be sorted by net profit but want to see a column of average w...
- 19 Aug 2013
- Forum: MultiCharts
- Topic: Time based exit [SOLVED]
- Replies: 3
- Views: 3436
Re: Time based exit [SOLVED]
Thank U !
- 19 Aug 2013
- Forum: MultiCharts
- Topic: Time based exit [SOLVED]
- Replies: 3
- Views: 3436
Time based exit [SOLVED]
I'm trying to put a time based exit in my strategy, I want the strategy to exit a position 6 days after the entry, I didn't manage to find the vocabulary to do this. Basically it would say: IF marketposition(0)= 1 AND "it's been 6 days since the entry" THEN Sell This Bar Thank U for helping me to tr...
- 25 Jul 2013
- Forum: MultiCharts
- Topic: How to create a condition depending on the SPY trend
- Replies: 2
- Views: 1894
Re: How to create a condition depending on the SPY trend
Thank U very much !
- 25 Jul 2013
- Forum: MultiCharts
- Topic: How to create a condition depending on the SPY trend
- Replies: 2
- Views: 1894
How to create a condition depending on the SPY trend
Hi ! I created a simple trend following systems with 4 moving averages, I would like now to add a condition depending on if the SPY is trending ( 20 day moving average above the 50 day moving average for example ). I can not find how to refer to a specific stock or average like the SPY with EZL thou...