Search found 21 matches

by lewisthegood
19 Sep 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 864

Re: "Bars.Close" event in IOG mode

Is there a way to calculate the script at bar close (to check the conditions for sending orders) , but calculate the script with IOG mode once a trade is opened to take profit/ cut loss?
by lewisthegood
17 Sep 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 864

"Bars.Close" event in IOG mode

In default mode, i know that the script is calculated at the close of the bar, and "Bars.Close[0]" event means the close of the current bar. In IOG mode, i know that the script is calculated on each tick, but I need to confirm that "Bars.Close" in IOG mode means the close of the each tick instead of...
by lewisthegood
23 Mar 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1198

Re: 5 mins chart with IOG enabled

but if I have IOG enabled, the RSI/MACD would calculated on every tick which is not desired (I need them to calculated on every bar instead of every tick), and allow the order to in-and-out intra-bar.
by lewisthegood
23 Mar 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1198

Re: 5 mins chart with IOG enabled

thanks for the advice. It is possible to have the the particular part of the script calculated on each 5 min bar (Calculate on each bar close), and particular part to calculate on every tick( IOG enabled)?
by lewisthegood
22 Mar 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1198

5 mins chart with IOG enabled

I'm using 5 mins chart with IOG enabled. Is it possible to have the condition calculated in every bar close/open instead of every tick while orders can be sent intra-bar (IOG)?

e.g. Order will be sent on only on bar close if RSI > 70 (condition), and able to take profit on intra-bar.
by lewisthegood
07 Feb 2022
Forum: MultiCharts .NET
Topic: CurrentPosition.Side == EMarketPositionSide.Short
Replies: 2
Views: 917

Re: CurrentPosition.Side == EMarketPositionSide.Short

I was thinking about using "StrategyInfo.MarketPosition < 0" but it will not work as both short A and long B will net off the StrategyInfo.MarketPosition which will become 0
by lewisthegood
07 Feb 2022
Forum: MultiCharts .NET
Topic: CurrentPosition.Side == EMarketPositionSide.Short
Replies: 2
Views: 917

CurrentPosition.Side == EMarketPositionSide.Short

I have a short position x1 of an index Futures, and trying to use "CurrentPosition.Side == EMarketPositionSide.Short" condition to assign a variable to when a short position is opened. However, it appears that the scripts did not run the statement for this condition when I already have a short posit...
by lewisthegood
10 Nov 2021
Forum: MultiCharts .NET
Topic: Exit all open position in Portfolio Trader at once
Replies: 1
Views: 842

Exit all open position in Portfolio Trader at once

I am looking for a way/function/commend to exit all the open positions within the same account (interactive brokers) for Portfolio Trader at the same time, but I cannot find a perfect way to do so. For example, I have 1 long position of X and 1 short position of Y in the same account for Portfolio T...
by lewisthegood
22 Oct 2021
Forum: MultiCharts .NET
Topic: Open PnL of Portfolio trader
Replies: 2
Views: 1052

Re: Open PnL of Portfolio trader

thank you
by lewisthegood
21 Oct 2021
Forum: MultiCharts .NET
Topic: Open PnL of Portfolio trader
Replies: 2
Views: 1052

Open PnL of Portfolio trader

I have instrument "A" with Signal 1 assigned with it, and instrument "B" with Signal 2 assigned with it. instrument "B" will always enter into the opposite direction from instrument "A" in order to hedge the trade. However, I do not how to show the whole portfolio's open PnL in C# (MC.NET). I can on...
by lewisthegood
04 Aug 2021
Forum: MultiCharts .NET
Topic: CloseD function not working on 1 Tick chart?
Replies: 1
Views: 797

CloseD function not working on 1 Tick chart?

I have applied CloseD function and would like get the close of the previous day. I found that the result always return "-1" which is obviously wrong. May I ask if the CloseD function is not working on 1 Tick chart? and the reason why (programmatically) Code: CloseD previous_close; Create() { previou...
by lewisthegood
13 Jun 2021
Forum: MultiCharts .NET
Topic: Previous DMI+ / DMI - value
Replies: 1
Views: 818

Previous DMI+ / DMI - value

I am developing a new strategy that require the previous value of DMI+ / DMI- (previous available value). I am using IOG mode in my strategy. I can only locate simian topic below: https://www.multicharts.com/discussion/viewtopic.php?t=45332 However, the material mentioned that : m_dirmovement1 = new...
by lewisthegood
03 May 2021
Forum: MultiCharts .NET
Topic: CloseD gives the close of the first bar on trade date instead of previous close
Replies: 1
Views: 948

CloseD gives the close of the first bar on trade date instead of previous close

I’m trading with Futures which closed at 23:00, I found that CloseD gives the close of the first bar on trade date instead of previous close. Here’s my coding: ... Private CloseD ytd_close ... Create() { ... ytd_close = new CloseD } StartCal() { .... ytd_close.periodago = 1 } Calbar() { .... Value1 ...
by lewisthegood
15 Apr 2021
Forum: MultiCharts .NET
Topic: condition with no. of alerts sent within a period of time
Replies: 3
Views: 1174

Re: condition with no. of alerts sent within a period of time

or how to count total orders sent within 4 bars for eample
by lewisthegood
14 Apr 2021
Forum: MultiCharts .NET
Topic: condition with no. of alerts sent within a period of time
Replies: 3
Views: 1174

condition with no. of alerts sent within a period of time

Q1: Does MC.NET support the conditions using number of alerts generated within a period of time? For example, if there are more than 3 alerts objects (I have both turning up alert and turning down alert) generated with 4 bars, then orders will not be sent Q2: Does MC.NET support the no. of orders se...
by lewisthegood
11 Apr 2021
Forum: MultiCharts .NET
Topic: IOGMode vs MarketNextBar
Replies: 3
Views: 1184

Re: IOGMode vs MarketNextBar

im sure im not using [CalcAtOpenNextBarAttribute(true)], and the error message still pop-up
by lewisthegood
07 Apr 2021
Forum: MultiCharts .NET
Topic: IOGMode vs MarketNextBar
Replies: 3
Views: 1184

IOGMode vs MarketNextBar

I have IOGMode enable and using MarketNextBar to create long and short order as shown below. However, when I applied it to the chart, an error messgae is pop-ip "The Enabled Intra-bar Order Generation setting is incompatible with Open Next Bar type strategies." From my understanding, there is no Ope...
by lewisthegood
20 Mar 2021
Forum: MultiCharts .NET
Topic: Bid Ask data vs Trade data
Replies: 3
Views: 2293

Bid Ask data vs Trade data

I have subscribed Interactive Brokers' Level II data, and applying it the Multicharts. I inserted 3 instructments of same security into the same chart, i.e. 1. "1 tick" resolution with Quote Filed as "Trade" on same security (Green Dot) 2. "1 tick" resolution with Quote Filed as "Bid" on same securi...
by lewisthegood
12 Mar 2021
Forum: MultiCharts .NET
Topic: Not sure why Multichart cannot follow my logic on the following coding
Replies: 4
Views: 1364

Re: Not sure why Multichart cannot follow my logic on the following coding

1, But I’m using 1 tick chart, bar open and close should be the same? And Bars.OpenNextBar() means buy at the open of next bar ?

2, if I set bars back =1 , I cannot use the bar data more than 1..?
by lewisthegood
08 Mar 2021
Forum: MultiCharts .NET
Topic: Not sure why Multichart cannot follow my logic on the following coding
Replies: 4
Views: 1364

Not sure why Multichart cannot follow my logic on the following coding

Setting: - 1 tick bar - Dot on close bar - [IOGMode(IOGMode.Enabled)] Background: I have a bool "buySignal" variable, long order will be sent if 1.buySignal is true and 2. -0.03 < percentage change is < 0.03 and 3.Bars.Close[0] != Bars.Close[1] I have used "Output.WriteLine" to debug and try to see ...

Go to advanced search