Strategy order type required  [SOLVED]

Questions about MultiCharts and user contributed studies.
faraz
Posts: 141
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 56 times

Strategy order type required

Postby faraz » 29 Nov 2012

Hi,

I have a End of Day strategy it place stop order like this;

Code: Select all

buy next bar at open +1 stop;
I want that if my buy order get FILLED, A stop order is immediately placed at x points below. Problem is I want it to be placed on the same bar & date when I get the buy order filled.

Possibilities could be;
a) I think there are order types which work like if filled place stop immediately. I need to use on of those orders in strategy.

b) Run EOD strategy on Intrabar and keep checking if we got fill and if fill then place stop order immediately. But that would require programing. Need some sort cut,,, if possible.

Thanks

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

Re: Strategy order type required  [SOLVED]

Postby Henry MultiСharts » 29 Nov 2012

Hello Faraz,

You can add the following commands to your EOD strategy:
SetStopLoss
SetProfitTarget
SetPercentTrailing
SetDollarTrailing
When they are not under condition they are evaluated intrabar.

faraz
Posts: 141
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 56 times

Re: Strategy order type required

Postby faraz » 29 Nov 2012

I think SetStopLoss will do the trick. Need one more thing, I want SetStopLoss to work on the same bar only on which the order is filled. As after that i have other conditions to exit it. How I can do this?

Thank you
Last edited by faraz on 01 Dec 2012, edited 1 time in total.

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

Re: Strategy order type required

Postby Henry MultiСharts » 30 Nov 2012

I think SetStopLoss will do the trick. Need one more thing, I want SetStopLoss to work on the same bar only on which the order is filled. As after that i have other conditions to exit it. How I can do this?
If you do not want to use IOG but need to put SetStopLoss under condition then you can use RecalcLastBarAfter to make your strategy recalculated and have necessary orders generated.


Return to “MultiCharts”