cut loss concept

Questions about MultiCharts and user contributed studies.
lawrence124
Posts: 23
Joined: 11 Oct 2012
Has thanked: 1 time

cut loss concept

Postby lawrence124 » 11 Oct 2012

hi, i'm rather new to MC, and right now i'm using MC6, would like to make sure something before things go live (broker has no demo server)

right now, i use the following to stop loss:
SetStopContract;
SetStopLoss(200);

i can put these 2 lines anywhere in the signal script ??
how about i have multiple entries ?? so, every entry cut loss will be $200??

it will be wonderful if you can give me some code that will show me how to do multi entries/exits with stops (say, enter every bar for 5 bars...and exit all 10 bars later, with $200 stop for each entry...since, every entry price is supposed to be different, i assume the stop price is different too ??)

Thanks!

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: cut loss concept

Postby TJ » 11 Oct 2012

hi, i'm rather new to MC, and right now i'm using MC6, would like to make sure something before things go live (broker has no demo server)

right now, i use the following to stop loss:
SetStopContract;
SetStopLoss(200);

i can put these 2 lines anywhere in the signal script ??
how about i have multiple entries ?? so, every entry cut loss will be $200??

it will be wonderful if you can give me some code that will show me how to do multi entries/exits with stops (say, enter every bar for 5 bars...and exit all 10 bars later, with $200 stop for each entry...since, every entry price is supposed to be different, i assume the stop price is different too ??)

Thanks!
Multiple entries and exits?
You are talking about advanced level programming in EasyLanguage.

I would take one step at a time...
try to design a strategy with ONE contract first.
If that works, then expands to more complex logics.

There are over 150 strategy codes in MultiCharts, you can open them in PowerLanguageEditor and study their coding structures.


You can also check out the resources here:

FAQ
viewtopic.php?f=16&t=10811

lawrence124
Posts: 23
Joined: 11 Oct 2012
Has thanked: 1 time

Re: cut loss concept

Postby lawrence124 » 11 Oct 2012

yes, the 1 contract strategy works and running live now, that's why i'm trying to expand it to multi entries...would be nice if u can point me to a code example that has similar operations, thanks!

lawrence124
Posts: 23
Joined: 11 Oct 2012
Has thanked: 1 time

Re: cut loss concept

Postby lawrence124 » 11 Oct 2012

just found this:
http://www.investware.net/multicharts/v ... 9c334230b8

the tutorial is valid for MC6 ?? given the document was created in 2008, thanks!

lawrence124
Posts: 23
Joined: 11 Oct 2012
Has thanked: 1 time

Re: cut loss concept

Postby lawrence124 » 11 Oct 2012

moreover, is it possible to delay sending out orders? say, i use 1 minute bar, can i send out orders at 05 second, instead of 00 second ?? Thanks!

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: cut loss concept

Postby TJ » 11 Oct 2012

hi, i'm rather new to MC, and right now i'm using MC6, would like to make sure something before things go live (broker has no demo server)
...
Thanks!
You can use InteractiveBroker's Demo System. It is free.
It continuously stream old data all day long. You can use it to test your logic and execute your buy/sell order right on their system.
You do not have to be a client to use this facility, and there is no registration required.


Return to “MultiCharts”