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;
no signal appearing on the chart with this simple code [SOLVED]
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: no signal appearing on the chart with this simple code
See post #7Hello !
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;
viewtopic.php?f=16&t=10811
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: no signal appearing on the chart with this simple code
thank USee post #7Hello !
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;
viewtopic.php?f=16&t=10811
I change my code to the following but still don t see any signal. I usually have no problem displaying sgnals
Code: Select all
if
time=933
then
sell 100 shares next bar at market;
Re: no signal appearing on the chart with this simple code
Not sure if this matters, didn't test, but try time = 0933, versus time = 933
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: no signal appearing on the chart with this simple code
A few questions:thank USee post #7Hello !
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;
viewtopic.php?f=16&t=10811
I change my code to the following but still don t see any signal. I usually have no problem displaying sgnalsCode: Select all
if
time=933
then
sell 100 shares next bar at market;
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).
Re: no signal appearing on the chart with this simple code
I tried but no change, thanks thoughNot sure if this matters, didn't test, but try time = 0933, versus time = 933
Re: no signal appearing on the chart with this simple code
It 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.
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.
Re: no signal appearing on the chart with this simple code
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 highly traded tickers
I imported the signal on the chart as I always do and the status is on
Re: no signal appearing on the chart with this simple code
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.
- Attachments
-
- Screen Shot 2015-10-26 at 8.17.55 PM.png
- (140.2 KiB) Downloaded 998 times
Re: no signal appearing on the chart with this simple code
I'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;
Try one more thing:
If marketposition=0
AND time = 0933
then begin
sellshort 100 shares next bar at market;
end;
Re: no signal appearing on the chart with this simple code
Make sure max bars back is sufficient, I can't tell from your screenshot.
Re: no signal appearing on the chart with this simple code
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;
- Attachments
-
- Screen Shot 2015-10-26 at 8.35.11 PM.png
- (104.22 KiB) Downloaded 995 times