General strategy structure

Questions about MultiCharts .NET and user contributed studies.
macs
Posts: 4
Joined: 06 Nov 2013
Has thanked: 3 times

General strategy structure

Postby macs » 24 Mar 2014

Hi all,

Im very new to Multicharts and looking to create a custom strategy with a couple of price channels, stop loss, trailing stop etc.
When creating my signal class that inherits from SignalObject, is it better practise to create one IOrderMarket instance and tell it to buy/sell etc from CalcBar, or would it be better to create 4 IOrderMarket instances (one for buy/sell/buytocover/sellshort) and execute them from CalcBar ?

I'm still struggling to get started with this. I guess I'm just after some general direction.

thanks!

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: General strategy structure

Postby Henry MultiСharts » 25 Mar 2014

Hello macs,

You need to create orders of all the types you need in Create method (4 IOrderMarket instances: one for buy/sell/buytocover/sellshort). Then you can use the orders in Calcbar method.

MultiCharts .NET Programming is the recommended "Getting started for programming in MultiCharts .Net": https://www.multicharts.com/downloads/M ... e-v1.0.pdf

Wiki format: https://www.multicharts.com/trading-sof ... ming_Giude

MC .NET FAQ: 
viewtopic.php?f=19&t=45848


Return to “MultiCharts .NET”