Search found 19 matches

by monick
30 Dec 2017
Forum: MultiCharts
Topic: Perform calculation when my position changes [SOLVED]
Replies: 4
Views: 1427

Re: Perform calculation when my position changes [SOLVED]

ABC,

Thanks so much. That's all it needed.

Monick
by monick
29 Dec 2017
Forum: MultiCharts
Topic: Perform calculation when my position changes [SOLVED]
Replies: 4
Views: 1427

Perform calculation when my position changes [SOLVED]

This should be very simple. I just want to perform a calculation only when my position changes. I don't understand why the following wouldn't work. input: lambda(0.1); input: zeropoint(100); var: Centerpoint(zeropoint); if currentcontracts <> currentcontracts[1] then begin; centerpoint = centerpoint...
by monick
10 May 2016
Forum: MultiCharts
Topic: Hedging one instrument with another??? Portfolio Trader???
Replies: 2
Views: 1333

Re: Hedging one instrument with another??? Portfolio Trader?

Hmmm, Did you mean Post 19??? Post 18 doesn't seem relevant and Post 19 just gives the user manual for Portfolio Trader. Is this what you meant to provide????
by monick
04 May 2016
Forum: MultiCharts
Topic: Hedging one instrument with another??? Portfolio Trader???
Replies: 2
Views: 1333

Hedging one instrument with another??? Portfolio Trader???

Hi, I think what I would like to do should be possible, but having a lot of trouble getting started. Example: Trading 5 different charts with gold (symbol GCM6). So five different separate strategies with multiple data feeds, etc, that all trade in and out of Gold (so Gold is Data1 on all of these) ...
by monick
30 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Re: Sending an order in a signal before the market opens

Aah, Perhaps this is it. I had changed the instrument time to

Sunday-Monday 1700-1700
Monday-Tuesday 1700-1700
Tuesday-Wednesday 1700-1700
Wednesday-Thursday 1700-1700
Thursday-Friday 1700-1700

But I did not change the chart session time. It is set to default. I should try 24 hour I suppose.
by monick
30 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Re: Sending an order in a signal before the market opens

Here is the code running on CLF6 in rithmic with 2 hour bars. It doesn't send the order till the market opens at 6 pm est.

Code: Select all

[IntrabarOrderGeneration = true]
recalclastbarafter(1);
buy ("buy") 1 share next bar at 41.50 limit;
by monick
29 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Re: Sending an order in a signal before the market opens

Hi TJ, Thanks for your help. Still very stuck here. Just want to strip down the situation here and simplify as much as possible. Perhaps you could help. All I want to do is send an order in the pre-market via a strategy. 1) Send an order to buy 1 CLF6 (Jan crude future) at 44 limit at 545 pm est (15...
by monick
25 Nov 2015
Forum: MultiCharts
Topic: Storing a value
Replies: 12
Views: 3472

Re: Storing a value

Well I don't need to be more exact than a minute so I could just use currentime = 1200 and also I do use recalclastbarafter(1) but I guess I don't see how this is any different than my original code. Bottom-line, if there's a var that is calculated and then the conditions are no longer true for it t...
by monick
25 Nov 2015
Forum: MultiCharts
Topic: Storing a value
Replies: 12
Views: 3472

Re: Storing a value

input: checktime(120000) var: checkprice(0) if currenttime_s <= checktime then begin; checkprice = currentbid of data2; end; if currenttime_s > checktime then begin; checkprice = checkprice; end; I just want the value checkprice to remain constant after 120000 at the last value of the bid of data2 a...
by monick
25 Nov 2015
Forum: MultiCharts
Topic: Storing a value
Replies: 12
Views: 3472

Re: Storing a value

Tony,
Yes, that is what i want to do. Hold the value constant after the time has crossed over. Not exactly sure how you are suggesting to do it. Could you please give a simple example?
Thanks
by monick
25 Nov 2015
Forum: MultiCharts
Topic: Storing a value
Replies: 12
Views: 3472

Storing a value

This may be very simple and I think it should be, but it seems to be causing a little problem. I want to do the following to store a value If time_s <= checktime then begin; checkprice = currentbid of data2; end; if time_s > checktime then begin; checkprice = checkprice; end; Will this accomplish wh...
by monick
22 Nov 2015
Forum: MultiCharts
Topic: Data2 causing orders to be sent late
Replies: 6
Views: 2100

Re: Data2 causing orders to be sent late

No, I am not using the same instrument in data1 and data2.

As I said, Data1 is heavily traded and data2 is not. Here is a sample from the code

If time_s >= 093100 and currentbid of data2> 100 and bidsize of data > 2000 then buy ("buy") next bar at currentask limit;
by monick
22 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Re: Sending an order in a signal before the market opens

I misspoke when I said "Clearly IOG must be enabled or a tick will not occur. " I didn't mean that a tick will not occur. I meant that one will not send an order without a tick occurring. Well let's say you run a strategy WITHOUT IOG enabled. Two scenarios. 1) Run the strategy on 1 hour bars. As i u...
by monick
21 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Re: Sending an order in a signal before the market opens

My broker is CCQ. I can send orders manually on the trade bar or price ladder, so this is not the issue. I am trading crude oil CL and silver SI. Clearly IOG must be enabled or a tick will not occur. There are bars on the chart. The conditions to be met are based on the current bid and current ask o...
by monick
21 Nov 2015
Forum: MultiCharts
Topic: Sending an order in a signal before the market opens
Replies: 10
Views: 2400

Sending an order in a signal before the market opens

I am having difficulty in sending an order in the pre-market when the exchange allows orders, but before the market is open. Here are the steps I assumed would need to be taken. 1) Set the open time for the symbol earlier in the symbol definition (let's say 15 minutes) 2) Enable IOG 3) Start the cod...
by monick
21 Nov 2015
Forum: MultiCharts
Topic: Data2 causing orders to be sent late
Replies: 6
Views: 2100

Re: Data2 causing orders to be sent late

Yes, One of the conditionals is related to data2, but it only relates to the market (bid, bid size, ask, ask size), nothing to do with a trade occurring or not. So in many if not most cases, the conditions for data2 are met constantly, so i am only waiting for the time component condition to kick in...
by monick
21 Nov 2015
Forum: MultiCharts
Topic: Data2 causing orders to be sent late
Replies: 6
Views: 2100

Re: Data2 causing orders to be sent late

I have it checked. Should it be unchecked? This is on the backtest tab, so I didn't think this would influence live trading anyway?
by monick
20 Nov 2015
Forum: MultiCharts
Topic: Data2 causing orders to be sent late
Replies: 6
Views: 2100

Data2 causing orders to be sent late

I was running a strategy in TS without intra-bar order generation enabled. The strategy has a data1 and a data2. Data1 is heavily traded and Data2 is not. I was relying on the bidsize, bid, ask, and asksize of Data to make decisions about trading Data1 in a short time window (1-5 minutes). Data1 is ...

Go to advanced search